/* Postgroove — coming-soon page
   Colour tokens: Brandkit/developer/brand-tokens.css (source of truth).
   Desktop composition follows Brandkit/references/landing-page-concept.png. Sizes are given in
   --u, one unit = 1px of the concept's 1672px-wide page, so the whole layout scales together. */

:root {
  --pg-blue: #0995CA;
  --pg-yellow: #FEC904;
  --pg-orange: #FE751B;
  --pg-red: #E82F27;
  --pg-black: #111111;
  --pg-paper: #FBF6EE;
  --pg-white: #FFFFFF;

  --ink: var(--pg-black);
  --ink-muted: #55524B;          /* 7.4:1 on paper */
  --placeholder: #807C73;
  --error: #A93324;              /* 6.5:1 on paper */
  --focus: var(--pg-blue);
  --yellow-hover: #F0BC00;

  --font-display: "Montserrat PG", "Arial Black", sans-serif;
  --font-body: "Poppins PG", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mobile-first unit: scales the concept down for narrow screens. */
  --u: calc(min(100vw, 1023px) / 1672);
  --gutter: clamp(20px, 5vw, 48px);
}

/* Display face: Montserrat ExtraBold Italic (SIL OFL 1.1), with extra slant and tight tracking
   to match the concept lettering. Provisional until the wordmark typeface is approved. */
@font-face {
  font-family: "Montserrat PG";
  src: url("/fonts/montserrat-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: block; /* avoid flashing a generic Arial-style italic */
}
/* Secondary face: Poppins (SIL OFL 1.1). */
@font-face { font-family: "Poppins PG"; src: url("/fonts/poppins-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins PG"; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins PG"; src: url("/fonts/poppins-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins PG"; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pg-paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Display lettering: true italic plus 6° of extra slant. */
.display,
.button__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-synthesis: none;
  letter-spacing: -0.035em;
}
.hero__line,
.button__text,
.doc__title {
  display: inline-block;
  transform: skewX(-6deg);
  transform-origin: 0 100%;
}

/* ------------------------------------------------------------------ frame */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "header" "main" "art" "footer";
  overflow-x: clip;
}

/* ------------------------------------------------------------------ brand lockup */

.site-header {
  grid-area: header;
  position: relative;
  z-index: 1;
  padding: 24px var(--gutter) 0;
}

.lockup {
  /* Lockup unit: the concept's lockup is ~850u wide; fit it to narrow screens. */
  --lu: min(var(--u), calc((100vw - 2 * var(--gutter)) / 860));
  /* --H = height of the symbol's stripes. All lockup proportions are measured from the owner's
     lockup reference and expressed as fractions of --H. */
  --H: calc(46 * var(--lu));
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
}

/* Symbol: viewBox 735 × 302 with 257-unit stripes, never stretched. */
.lockup__symbol {
  flex: none;
  height: calc(var(--H) * 302 / 257);
  width: auto;
  aspect-ratio: 735 / 302;
}

/* Wordmark: the designer's lettering, traced to SVG. Letters are 0.63 H tall; gap 0.23 H.
   (The symbol and wordmark SVGs each carry ~0.04 H of padding, subtracted below.) */
.lockup__wordmark {
  flex: none;
  height: calc(var(--H) * 0.63 * 42.48 / 40.48);
  width: auto;
  aspect-ratio: 460.11 / 42.48;
  margin-left: calc(var(--H) * (0.234 - 0.039 - 0.016));
}

.lockup__divider {
  flex: none;
  width: max(1px, calc(var(--H) * 0.03));
  height: calc(var(--H) * 1.08);
  margin: 0 calc(var(--H) * 0.556) 0 calc(var(--H) * 0.54);
  background: var(--ink);
}

/* Tagline: caps 0.27 H tall, lines 0.40 H apart (Poppins caps ≈ 0.7 em). */
.lockup__tagline {
  font-size: calc(var(--H) * 0.274 / 0.7);
  line-height: calc(0.403 / 0.274 * 0.7);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ hero copy */

.hero {
  grid-area: main;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* Stacked: lockup → headline equals yellow bar → artwork (the extra 10px offsets the space
     above the headline's capitals). */
  --gap: clamp(40px, 9vw, 64px);
  padding: var(--gap) var(--gutter) calc(var(--gap) + 10px);
}

.hero__title {
  margin: 0;
  /* "Receive a record." measures 10.4em in this face; one line each, never clipped. */
  font-size: min(54px, calc((100vw - 2 * var(--gutter)) / 12.4));
  line-height: 0.93;
}
.hero__line { white-space: nowrap; }

.hero__lede {
  margin-top: 0.9em;
  max-width: 23.5em;
  font-size: clamp(1rem, 3.3vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.27;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ waitlist */

.waitlist { margin-top: 32px; width: 100%; max-width: 34rem; }

.waitlist__field {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 56px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
}
.waitlist__field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.waitlist__field[data-invalid] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }

.waitlist__field .icon--mail {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  pointer-events: none;
}

.waitlist__field input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 12px 0 52px;
  border: 0;
  border-radius: 9px 0 0 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem; /* ≥16px avoids iOS zoom on focus */
  font-weight: 400;
}
.waitlist__field input::placeholder { color: var(--placeholder); opacity: 1; }
.waitlist__field input:focus { outline: none; } /* ring is drawn on the field */

.button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  margin: -1.5px -1.5px -1.5px 0; /* button face sits on the field border, as in the concept */
  padding: 0 1.35em 0 1.5em;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--pg-yellow);
  color: var(--pg-black);
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color 120ms ease;
}
.button__text { font-weight: 800; letter-spacing: -0.02em; }
.button .icon--arrow { width: 1.35em; height: 1.35em; flex: none; }
.button:hover { background: var(--yellow-hover); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.button[aria-disabled="true"] { cursor: progress; }
.button[aria-busy="true"] .icon--arrow { animation: pg-nudge 900ms ease-in-out infinite; }
@keyframes pg-nudge { 50% { transform: translate(3px, -3px); } }

.waitlist__status { margin-top: 12px; font-size: 0.9375rem; font-weight: 500; }
.waitlist__status:empty { display: none; }
.waitlist__status[data-state="error"] { color: var(--error); }
.waitlist__status[data-state="success"] {
  padding: 10px 14px;
  border-left: 4px solid var(--pg-yellow);
  background: var(--pg-white);
}

.waitlist__tagline {
  margin-top: 20px;
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}
.waitlist__tagline::after {
  content: "";
  display: block;
  width: 4.85em;
  height: 0.23em;
  margin-top: 0.7em;
  background: var(--pg-yellow);
}

.waitlist__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Honeypot: present for bots, invisible and unreachable for people. */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ artwork */
/* Always scaled uniformly (height: auto), anchored bottom-right; only band ends above get cropped.
   Disc, label and hole therefore stay circular and concentric at every size. */

/* Stacked layouts (below 1024px): the art row takes all leftover height, so on tall screens the
   stripes rise further up instead of leaving an empty gap. The art is full-bleed to the right
   edge (the record runs to the edge, as on desktop) and never wider than 680px. */
.page--home { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.hero-art {
  --art-w: min(100vw, 680px);
  grid-area: art;
  position: relative;
  overflow: hidden;
  min-height: calc(var(--art-w) * 0.74);   /* whole record + the start of the stripes */
  max-height: calc(var(--art-w) * 1.3);    /* never show the stripes' top ends */
  align-self: end;
  height: 100%;
  pointer-events: none;
}
.art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--art-w);
  height: auto;
  max-width: none;
}
.art--wide { display: none; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  grid-area: footer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 var(--gutter);
  padding: 18px 0 22px;
  border-top: 1px solid var(--ink);
  font-size: 0.875rem;
}
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none; line-height: 1.4; }
.site-footer__links li { display: flex; }
.site-footer a { text-decoration: none; }
/* 44px tap areas (Apple HIG) without changing the visual layout. */
.site-footer a, .doc__links a { padding-block: 12px; margin-block: -12px; }
.doc__links a { display: inline-block; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 0.6em; }
.site-footer__mail .icon { width: 1.4em; height: 1.4em; }

/* ------------------------------------------------------------------ stacked layouts */

/* Same lockup size on all phones and tablets; with the tagline it fits from 520px up. */
@media (max-width: 1023px) {
  .lockup { --H: min(30px, calc((100vw - 2 * var(--gutter)) / 14)); }
  .lockup__tagline { font-size: max(12px, calc(var(--H) * 0.274 / 0.7)); }
}

/* ------------------------------------------------------------------ small phones */

/* The tagline would be unreadably small next to the wordmark: show symbol + wordmark only. */
@media (max-width: 519px) {
  .lockup { --H: min(30px, calc((100vw - 2 * var(--gutter)) / 10.5)); }
  .lockup__divider, .lockup__tagline { display: none; }
}

@media (max-width: 359px) {
  .waitlist__field { flex-direction: column; height: auto; }
  .waitlist__field input { height: 52px; }
  .waitlist__field .icon--mail { top: 26px; }
  .button { min-height: 50px; margin: 0 -1.5px -1.5px; }
}

/* ------------------------------------------------------------------ tablet */

@media (min-width: 600px) and (max-width: 1023px) {
  .site-header { padding-top: 40px; }
  .waitlist__field { height: 60px; }
  .button { font-size: 1.0625rem; }

}

/* ------------------------------------------------------------------ desktop: the concept composition */

@media (min-width: 1024px) {
  :root { --u: calc(min(100vw, 2200px) / 1672); }

  .page--home {
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "header" "main" "footer";
  }

  /* Art spans header + main, behind the copy; its bottom edge is the footer rule. */
  .page--home .hero-art {
    grid-row: 1 / 3;
    grid-column: 1;
    min-height: 0;
    max-height: none;
    align-self: stretch;
    z-index: 0;
  }
  .art--stack { display: none; }
  .art--wide { display: block; width: calc(1672 * var(--u)); }
  .page--home .hero-art { height: auto; }

  .site-header { padding: calc(56 * var(--u)) 0 0 calc(72 * var(--u)); }
  .lockup { --lu: var(--u); }

  /* At the concept's proportions the copy sits exactly as in the concept. Extra viewport
     height is shared above and below the copy; moving copy up only increases its clearance
     from the bands, which lean right as they rise. */
  .page--home .hero {
    min-height: calc(780 * var(--u) - 133 * var(--u));
    justify-content: center;
    /* Bottom padding is larger by the headline's built-in space above the capitals, so the gap
       lockup → headline equals the gap yellow bar → footer rule. */
    padding: calc(32 * var(--u)) 0 calc(48 * var(--u)) calc(78 * var(--u));
  }

  .hero__title { font-size: calc(70 * var(--u)); line-height: 0.95; }
  .hero__line { display: block; width: max-content; }

  .hero__lede {
    margin-top: calc(44 * var(--u));
    max-width: calc(640 * var(--u));
    font-size: max(15px, calc(24 * var(--u)));
    line-height: 1.26;
  }

  .waitlist { margin-top: calc(56 * var(--u)); max-width: none; width: calc(590 * var(--u)); }
  .waitlist__field { height: calc(56 * var(--u)); min-height: 46px; border-radius: calc(9 * var(--u)); }
  .waitlist__field .icon--mail { left: calc(20 * var(--u)); width: calc(27 * var(--u)); height: calc(27 * var(--u)); min-width: 20px; min-height: 20px; }
  .waitlist__field input { padding-left: calc(62 * var(--u)); font-size: max(16px, calc(20 * var(--u))); }
  .button { width: calc(236 * var(--u)); padding: 0; gap: calc(20 * var(--u)); font-size: max(14px, calc(20 * var(--u))); border-radius: calc(9 * var(--u)); }
  .button .icon--arrow { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }

  .waitlist__tagline { margin-top: calc(20 * var(--u)); font-size: max(15px, calc(21 * var(--u))); }
  .waitlist__tagline::after { width: calc(100 * var(--u)); height: calc(5 * var(--u)); margin-top: calc(20 * var(--u)); }
  .waitlist__note { margin-top: calc(12 * var(--u)); font-size: max(13px, calc(16 * var(--u))); }

  .site-footer {
    margin: 0 calc(57 * var(--u)) 0 calc(57 * var(--u));
    padding: calc(24 * var(--u)) 0 calc(26 * var(--u));
    font-size: max(13px, calc(17.5 * var(--u)));
  }
  .site-footer__links { gap: calc(40 * var(--u)); }
}

/* ------------------------------------------------------------------ document pages */

.page--doc { grid-template-rows: auto 1fr auto; grid-template-areas: "header" "main" "footer"; }

.doc {
  grid-area: main;
  width: 100%;
  max-width: calc(42rem + 2 * var(--gutter));
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 96px);
}
@media (min-width: 1024px) {
  .doc { margin-left: calc(78 * var(--u) - var(--gutter)); }
}
.doc__title { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1; }
.doc__meta { margin: 0 0 32px; color: var(--ink-muted); font-size: 0.875rem; }
.doc p { margin: 1em 0; }
.doc h2 { margin: 2.25em 0 0.5em; font-size: 1.125rem; font-weight: 500; line-height: 1.3; }
.doc p, .doc li { max-width: 66ch; font-weight: 300; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 0.35em; }
.doc--message { align-self: center; }
.doc__action { margin: 28px 0 8px; }
.doc__action .button { height: 52px; margin: 0; }
.doc__links a { margin-right: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .hero-art, .waitlist__form { display: none; }
}
