/* ============================================================
   gobo.media — editorial one-page
   Palette: matte ink + warm bone + muted ember accent
   Type: Fraunces (display, soft modern serif) + Inter (UI)
   ============================================================ */

:root {
  /* Color — matte */
  --ink: #0e0d0b;         /* deep matte black */
  --ink-2: #1c1a17;
  --bone: #efeae0;        /* warm off-white */
  --bone-2: #e6e0d3;
  --paper: #f6f2e9;
  --muted: #6b6258;
  --rule: #d8d1c1;
  --ember: #b54a2a;       /* muted, oxidized accent */
  --ember-soft: #c96a47;

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --t-mono: 0.78rem;
  --t-body: 1.0625rem;     /* 17 */
  --t-lede: 1.5rem;        /* 24 */
  --t-pull: 2rem;          /* 32 */
  --t-h2:   3rem;
  --t-display: clamp(3.75rem, 11vw, 11rem);

  /* Layout */
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --max: 1440px;
  --measure: 36rem;
}

/* ------------------------------------ Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button { font: inherit; }
a { color: inherit; }

::selection { background: var(--ink); color: var(--bone); }

/* ------------------------------------ Base ------------------------------------- */
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain (procedural, no extra request) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(14,13,11,1) 1px, transparent 1px),
    radial-gradient(rgba(14,13,11,1) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

main { position: relative; z-index: 2; }

/* ------------------------------------ Nav -------------------------------------- */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad-x);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.brand .mark { width: 22px; height: 22px; color: var(--ink); }
.brand-name { letter-spacing: 0.005em; }
.brand-dot { color: var(--ember); }

.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-dot {
  width: 4px; height: 4px;
  background: var(--muted);
  border-radius: 999px;
  display: inline-block;
}

/* ------------------------------------ Hero ------------------------------------- */
.hero {
  padding: clamp(2rem, 6vw, 5rem) var(--pad-x) clamp(3rem, 7vw, 6rem);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.display .line { display: block; }
.display .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}

.hero-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule {
  width: clamp(40px, 6vw, 80px);
  height: 1px;
  background: var(--ink);
  display: inline-block;
}

.hero-portrait {
  position: relative;
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.9);
  border-radius: 0;
}
.hero-portrait figcaption {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------ Plates ----------------------------------- */
.plate {
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad-x);
}

.plate-wide figure {
  max-width: var(--max);
  margin: 0 auto;
}
.plate-wide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
}

.plate-pano figure {
  max-width: 100%;
  margin: 0;
}
.plate-pano img {
  width: 100%;
  aspect-ratio: 32 / 9;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.85);
}

.plate-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 800px) {
  .plate-duo {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
  .plate-duo-alt { grid-template-columns: 1fr 1.3fr; align-items: start; }
}
.plate-duo img {
  width: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.9);
}
.duo-a img { aspect-ratio: 4 / 5; }
.duo-b img { aspect-ratio: 3 / 2; }
.duo-c img { aspect-ratio: 3 / 2; }
.duo-d img { aspect-ratio: 4 / 5; }

/* ------------------------------------ Prose ------------------------------------ */
.prose {
  padding: clamp(3.5rem, 8vw, 7rem) var(--pad-x);
  max-width: calc(var(--measure) + var(--pad-x) * 2 + 6rem);
  margin: 0 auto;
}
.prose-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose-meta .num { color: var(--ember); font-weight: 500; }

.prose p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;        /* 22 */
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 1.4em;
  font-variation-settings: "opsz" 36;
}
.prose p:last-child { margin-bottom: 0; }
.prose em {
  font-style: italic;
  color: var(--ink-2);
}

.lede {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.015em !important;
  font-weight: 400 !important;
  margin-bottom: 1.6em !important;
}

.prose-pull .pull {
  font-size: clamp(1.9rem, 3.6vw, 3rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  font-weight: 300 !important;
  font-style: italic;
  color: var(--ink);
}

/* ------------------------------------ Close ----------------------------------- */
.close {
  padding: clamp(5rem, 10vw, 9rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.close-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.signoff {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.signoff-line {
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ------------------------------------ Footer ---------------------------------- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 1.5rem var(--pad-x);
  position: relative;
  z-index: 3;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 500;
}
.foot-brand .mark.sm { width: 16px; height: 16px; }
.foot-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* ------------------------------------ Reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ------------------------------------ Small screens --------------------------- */
@media (max-width: 600px) {
  .nav { padding: 1rem var(--pad-x); }
  .nav-meta .meta-item:last-child { display: none; }
  .nav-meta .meta-dot { display: none; }
  .hero-portrait img { aspect-ratio: 4 / 5; }
  .plate-pano img { aspect-ratio: 21 / 9; }
}
