/* =========================================================
   FONTS  — put your font files in the "fonts" folder
   ========================================================= */
@font-face {
  font-family: "DiGrotesk";
  src: url("fonts/DiGrotesk-Regular.woff2") format("woff2"),
       url("fonts/DiGrotesk-Regular.woff")  format("woff"),
       url("fonts/DiGrotesk-Regular.otf")   format("opentype"),
       url("fonts/DiGrotesk-Regular.ttf")   format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TorGrotesk";
  src: url("fonts/TorGrotesk-Bold.woff2") format("woff2"),
       url("fonts/TorGrotesk-Bold.woff")  format("woff"),
       url("fonts/TorGrotesk-Bold.otf")   format("opentype"),
       url("fonts/TorGrotesk-Bold.ttf")   format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   SETTINGS — the numbers you may want to tweak
   Sizes use "min(width-based, height-based)" so everything
   always fits the screen, whatever its shape.
   ========================================================= */
:root {
  /* DESKTOP (wider than 1024px) */
  --headline-size: min(17vw, 24vh);   /* size of the big title */
  --headline-leading: 0.76;           /* space between title lines (smaller = tighter) */
  --headline-spacing: -2em;
  --pad: 1.2vw;                       /* space around the page edges */
  --text-size: clamp(12px, min(1.3vw, 2.3vh), 28px);   /* small text */
  --underline-rest: 4pt;              /* underline thickness normally */
  --underline-hover: 2pt;             /* underline thickness on mouse hover */
}

/* TABLET (601px – 1024px) */
@media (max-width: 1024px) {
  :root {
    --headline-size: min(15vw, 15vh);
    --pad: 3.6vw;
    --text-size: clamp(12px, min(2.8vw, 2.3vh), 28px);
  }
}

/* PHONE (600px and narrower) */
@media (max-width: 600px) {
  :root {
    --headline-size: min(15.5vw, 12vh);
    --pad: 3.3vw;
    --text-size: clamp(12px, min(3.7vw, 2.4vh), 20px);
    --underline-rest: 4pt;
    --underline-hover: 1pt;
  }
}

/* =========================================================
   BASE — page never scrolls, always fits the screen
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  transition: none !important;   /* every interaction is instant */
  animation: none !important;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #fff;
  color: #000;
  font-family: "DiGrotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: var(--text-size);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* title on top, form at the bottom */
  padding: var(--pad);
  overflow: hidden;
}

/* =========================================================
   HEADLINE
   ========================================================= */
.headline {
  margin: 0;
  font-family: "TorGrotesk", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: var(--headline-size);
  line-height: var(--headline-leading);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.headline span { display: block; }

/* =========================================================
   TEXT + FORM
   ========================================================= */
.intro { margin: 0 0 0.8em; }

.signup {
  display: flex;
  gap: 0.7em;
  margin: 0 0 0.7em;
}

.signup input[type="email"] {
  width: 16.5em;
  height: 2.6em;
  padding: 0 1.3em;
  border: 1px solid #000;
  border-radius: 0.8em;
  background: #fff;
  color: #000;
  font: inherit;
  outline: none;               /* no extra line when typing */
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.signup input:focus,
.signup input:focus-visible { outline: none; box-shadow: none; }
.signup input::placeholder { color: #000; opacity: 1; }

.signup button {
  width: 10em;
  height: 2.6em;
  border: 0;
  border-radius: 0.8em;
  background: #000;
  color: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.signup button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.signup button:disabled { cursor: default; opacity: 0.7; }

/* Hide Mailchimp's anti-bot field from humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.links { margin: 0; }
.links a { color: inherit; }
.links a.plain { text-decoration: none; }

/* =========================================================
   INSTAGRAM LINK — instant underline change
   Mouse leaves: thick (8pt; 4pt on phone)
   Mouse enters: thin  (2pt; 1pt on phone)
   ========================================================= */
a.underlined {
  text-decoration-line: underline;
  text-decoration-color: #000;
  text-decoration-thickness: var(--underline-rest);
  text-decoration-skip-ink: none;
  text-underline-offset: 0.06em;
}
@media (hover: hover) {
  a.underlined:hover { text-decoration-thickness: var(--underline-hover); }
}
a.underlined:focus-visible,
a.underlined:active { text-decoration-thickness: var(--underline-hover); }

/* =========================================================
   PHONE LAYOUT — form stacks, text centered inside fields
   ========================================================= */
@media (max-width: 600px) {
  .br-wide { display: none; }
  .signup { flex-direction: column; }
  .signup input[type="email"],
  .signup button { width: 100%; height: 2.5em; border-radius: 1em; text-align: center; }
}

/* =========================================================
   TEXT SELECTION — highlighted text: white on black
   ========================================================= */
::selection {
  background: #000;
  color: #fff;
}
::-moz-selection {      /* older Firefox */
  background: #000;
  color: #fff;
}
.signup button::selection { background: #fff; color: #000; }  /* button is already black, so invert it */
