/* Life of Pun — typography-led, weathered, oceanic. Not a survival-game template. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sea: #0c1a22;
  --sea-2: #13232c;
  --ink: #f3ead8;
  --ink-dim: #c9bba3;
  --muted: #8d816c;
  --gold: #c4a574;
  --gold-dim: #8a734d;
  --paper: #efe4d0;
  --paper-ink: #2a2318;
  --paper-muted: #5c5346;
  --rule: rgba(243, 234, 216, 0.18);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Serif 4", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--sea);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  font-optical-sizing: auto;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background-image: url("images/grain.png");
  background-size: 160px 160px;
  opacity: 0.10;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper-ink); text-decoration-color: var(--gold-dim); text-underline-offset: 0.18em; }
a:hover { color: #000; }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--sea);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 50;
}
.skip:focus { top: 0.75rem; }

/* masthead in the sky of the hero */
.hero {
  position: relative;
  background: #1a1712;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.hero .photo {
  position: absolute;
  inset: 0;
}
.hero .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero .photo::after {
  /* a soft, even scrim at the top for the title — not frosted glass */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 26, 34, 0.38) 0%, rgba(12, 26, 34, 0.08) 38%, rgba(12, 26, 34, 0.0) 55%, rgba(12, 26, 34, 0.45) 100%);
}
.mast {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter) 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}
.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 var(--gutter) clamp(2rem, 6vh, 3.5rem);
  max-width: 54rem;
}
.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(12, 26, 34, 0.35);
}
.tagline {
  margin: 1.15rem 0 0;
  max-width: 26rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.3;
  color: var(--ink);
}

/* paper body — like a book opened after the still */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
  position: relative;
}
.paper::before {
  /* faint aged edge, not a gradient blob */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 18px 40px rgba(42, 35, 24, 0.06);
}
.wrap {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.paper section { padding: 3.75rem 0; }
.paper section + section {
  border-top: 1px solid rgba(42, 35, 24, 0.16);
}

.pitch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem 4rem;
  align-items: start;
}
.pitch h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.pitch p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 38rem;
}
.pitch p + p { margin-top: 1rem; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.feature {
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid rgba(42, 35, 24, 0.16);
}
.feature:nth-child(odd) { padding-right: 2.4rem; }
.feature:nth-child(even) { padding-left: 2.4rem; }
.feature .idx {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2rem;
  margin: 0.2rem 0 0.5rem;
  line-height: 1.1;
}
.feature p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* stills — back to the sea */
.stills-band {
  background: var(--sea);
  color: var(--ink);
  padding: 3.5rem 0 4rem;
}
.stills-band .sec-label,
.paper .sec-label {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.paper .sec-label { color: var(--gold-dim); }
.stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.15rem;
}
.stills figure { margin: 0; }
.stills figure.wide { grid-column: 1 / -1; }
.stills img {
  width: 100%;
  border: 1px solid rgba(243, 234, 216, 0.12);
}
.stills figcaption {
  padding: 0.55rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-dim);
}
.stills figcaption span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.steam {
  max-width: 34rem;
}
.steam h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.7rem;
}
.steam p { margin: 0; color: var(--paper-muted); }
.steam-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.55rem 1.1rem 0.5rem;
  border: 1px solid var(--paper-ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-ink);
  background: transparent;
  cursor: default;
}
.steam .note {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
}

footer {
  background: var(--sea);
  color: var(--muted);
  padding: 1.4rem var(--gutter) 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
}

@media (max-width: 800px) {
  .pitch, .features { grid-template-columns: 1fr; }
  .feature:nth-child(odd),
  .feature:nth-child(even) { padding-left: 0; padding-right: 0; }
  .stills { grid-template-columns: 1fr; }
  .stills figure.wide { grid-column: auto; }
  h1 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
  .hero { min-height: 92vh; }
}
