@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --red: #c8161d;
  --chrome: linear-gradient(
    180deg,
    #fff 0%,
    #f1f1f1 38%,
    #bdbdbd 50%,
    #e2e2e2 62%,
    #8e8e8e 100%
  );
  /* Line 2 is deliberately greyer (matches how line 1 reads against the red). Don't "fix". */
  --chrome-2: linear-gradient(
    180deg,
    #f6f6f6 0%,
    #e4e4e4 38%,
    #aeaeae 50%,
    #d2d2d2 62%,
    #7c7c7c 100%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #000;
  color: #ededed;
}

body {
  margin: 0;
  font-family: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
}

main {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-x: clip; /* full-bleed slash */
  text-align: center;
}

/* 1. Photo: pre-rendered as grayscale(1) contrast(1.6) brightness(0.55) */
.photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* 2. Vignette */
main::before,
main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

main::before {
  z-index: -2;
  background: radial-gradient(
    ellipse 80% 78% at 50% 45%,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

/* 3. Film grain */
main::after {
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.7;
}

/* Logo size drives the slash too (em units). Capped by height for short landscape screens. */
.logo {
  position: relative;
  font-size: clamp(2.75rem, 16vw, 21rem);
  font-size: clamp(2.75rem, min(16vw, 32svh), 21rem);
}

/* 4. Torn red slash, vertically centred on the two-line logo (between the lines) */
.logo::before {
  content: "";
  position: absolute;
  top: 50%; /* = 0.6em + 0.35em on the 1.9em block; stays centred if the name wraps */
  left: 50%;
  width: 110vw;
  height: 0.7em;
  background: var(--red);
  opacity: 0.92;
  transform: translate(-50%, -50%) rotate(-6deg);
  clip-path: polygon(
    0 14%,
    8% 4%,
    22% 10%,
    37% 0,
    52% 8%,
    66% 2%,
    81% 9%,
    100% 3%,
    100% 88%,
    90% 97%,
    74% 90%,
    58% 100%,
    43% 92%,
    27% 99%,
    12% 91%,
    0 98%
  );
}

/* 5. Chrome wordmark */
h1 {
  position: relative;
  margin: 0;
  font-size: 1em;
  font-weight: 400;
  line-height: 0.95;
  transform: skewX(-8deg);
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 3px #000)
    drop-shadow(0 0.05em 0.065em rgba(0, 0, 0, 0.95));
}

h1 span {
  display: block;
  padding: 0 0.03em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 span + span {
  background-image: var(--chrome-2);
}

/* 6. Coming soon */
.soon {
  position: relative;
  margin: 1.5em 0 0;
  font-size: clamp(1rem, 0.7rem + 1.2vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.35em;
  text-indent: 0.35em; /* re-centre: offsets trailing letter-spacing */
  text-transform: uppercase;
  text-shadow: 0 0 0.4em #000;
}

.soon::before {
  content: "";
  display: block;
  width: 2.5em;
  height: 3px;
  margin: 0 auto 1em;
  background: var(--red);
}

/* 7. Live photo */
.show {
  display: block;
  position: relative;
  width: min(22rem, 100%);
  height: auto;
  margin-top: 3rem;
  box-shadow: 0 0 2rem #000;
}

@media (min-width: 48rem) {
  .show {
    width: min(44rem, 100%);
  }
}

/* For future links (socials, mail) */
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .logo::before {
    display: none;
  }

  h1 {
    filter: none;
  }

  h1 span,
  h1 span + span {
    color: CanvasText;
    background: none;
  }
}
