/* Placeholder faces (OFL, Google Fonts), self-hosted. Rubik is one variable file covering 500 and 900. */
@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --klein-blue: #002FA7;
  --paper: #F4F1EA;
  --ink: #0A0A0A;

  --nav-h: 64px;
  --nav-pad: 40px;
  --nav-size: 15px;
  --mark-size: clamp(64px, min(15.5vw, 30svh), 280px);
  /* gaps are glyph-to-glyph (cap/baseline), measured off the Figma frames */
  --gap-note: 50px;
  --label-size: 14px;
  --gap-title: 25px;
  --title-size: 44px;
}

@media (max-width: 700px) {
  :root {
    --nav-h: 52px;
    --nav-pad: 20px;
    --nav-size: 14px;
    --mark-size: 23.5vw;
    --gap-note: 27px;
    --label-size: 11px;
    --gap-title: 17px;
    --title-size: 26px;
  }
}

/* very small phones (iPhone SE 1st gen etc.): keep both nav items on one line */
@media (max-width: 359px) {
  :root { --nav-pad: 14px; --nav-size: 12px; }
}

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

html { background: var(--paper); }

body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--klein-blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Nav ---------- */
.nav {
  height: var(--nav-h);
  padding: 0 var(--nav-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--klein-blue);
  color: var(--paper);
  font-weight: 500;
  font-size: var(--nav-size);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.nav__tag { margin: 0; }
.nav__ig {
  color: inherit;
  text-decoration: none;
  /* bigger tap target without moving the text */
  padding: 12px 0;
}
.nav__ig:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav__ig:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero__photo,
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__photo img {
  object-fit: cover;
  object-position: 50% 50%;
}
@media (orientation: portrait) {
  .hero__photo img { object-position: 33.5% 50%; }
}

.hero__content {
  position: relative;
  /* extra bottom padding nudges the optical centre up, as in the Figma frames */
  padding: 24px 16px calc(24px + 0.075 * var(--mark-size));
}

.wordmark {
  margin: 0;
  font-weight: 900;
  font-size: var(--mark-size);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flow-root;
}
.wordmark span { display: block; }

.release {
  margin: var(--gap-note) 0 0;
}
.release__label {
  display: flow-root;
  font-weight: 500;
  font-size: var(--label-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  /* faint paper glow: lifts the sky behind the small label just past 4.5:1 without visibly changing the look */
  text-shadow: 0 0 6px rgba(244, 241, 234, 0.55), 0 0 14px rgba(244, 241, 234, 0.35);
}
.release__title {
  display: flow-root;
  margin-top: var(--gap-title);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--title-size);
  line-height: 1;
}

/* Figma trims text boxes to cap height / baseline. text-box support is still patchy (no Firefox),
   so trim with negative margins from the fonts' measured metrics instead ("capsize").
   Rubik: ascent .93, descent .25, cap .70. Instrument Serif: ascent .99, descent .31, cap .735.
   trim-top = (lh - ascent - descent)/2 + ascent - cap;  trim-bottom = (lh - ascent - descent)/2 + descent */
.wordmark::before,
.wordmark::after,
.release__label::before,
.release__label::after,
.release__title::before,
.release__title::after { content: ""; display: block; height: 0; }
.wordmark::before       { margin-bottom: -0.07em; }  /* lh .86 */
.wordmark::after        { margin-top: -0.09em; }
.release__label::before { margin-bottom: -0.14em; }  /* lh 1 */
.release__label::after  { margin-top: -0.16em; }
.release__title::before { margin-bottom: -0.105em; } /* lh 1 */
.release__title::after  { margin-top: -0.16em; }
