/* ==========================================================================
   Novara Collective
   v1 was type on a black ground and it was flat. The builds that land — Villa
   Tasca, Solène, Plum Guide, Solaria — all work the same way: a full-bleed
   photograph carries the screen and the type sits over it. The warmth comes
   from the image, not from a colour choice. That is the correction here.
   Built to _docs/SVDM-BUILD-STANDARD.md.
   ========================================================================== */

:root {
  --ink: #1b1714;          /* warm near-black for text */
  --ink-2: #5b524a;
  --sand: #f4efe7;         /* page ground, warm paper */
  --sand-2: #e8e0d4;
  --clay: #b8734a;         /* the accent, warm terracotta */
  --deep: #241d18;         /* dark sections */
  --cream: #faf7f2;
  --rule: rgba(27, 23, 20, 0.14);
  --rule-light: rgba(250, 247, 242, 0.2);

  --display: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(1.15rem, 4vw, 4rem);
  --t: 0.3s;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --label: 0.6875rem;
  --track: 0.16em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }   /* no scroll-behavior — Lenis drives */

body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--sans); font-weight: 300; line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--cream); padding: .75rem 1rem; z-index: 300; }
.skip:focus { left: 0; top: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.02em; margin: 0; }
em { font-style: italic; }

.label, .eyebrow, .nav a, .cap, .btn, .foot a, .foot dt, .meta {
  font-family: var(--mono); font-size: var(--label); font-weight: 500;
  letter-spacing: var(--track); text-transform: uppercase;
}
.eyebrow { margin: 0; color: var(--clay); }
.eyebrow--light { color: rgba(250,247,242,.8); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.05rem 1.9rem; border: 1px solid currentColor; text-decoration: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--fill { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.btn--fill:hover { background: var(--ink); border-color: var(--ink); }
.btn--light { color: var(--cream); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* ------------------------------------------------------------------- nav -- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 1.15rem var(--pad); color: var(--cream);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), padding var(--t) var(--ease);
}
.nav__mark { font-family: var(--display); font-size: 1.3rem; text-decoration: none; }
.nav__links { display: flex; justify-content: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a { text-decoration: none; opacity: .82; transition: opacity var(--t) var(--ease); }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav__end { display: flex; justify-content: flex-end; }
.nav.scrolled { background: rgba(244,239,231,.92); backdrop-filter: blur(14px); color: var(--ink); border-bottom: 1px solid var(--rule); padding-block: .85rem; }
.theme-light .nav { color: var(--ink); }
.nav__burger { display: none; width: 40px; height: 32px; padding: 0; border: 0; background: none; color: inherit; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; }
.nav__burger span:nth-child(1) { top: 13px; } .nav__burger span:nth-child(2) { top: 20px; }
.mmenu {
  position: fixed; inset: 0; z-index: 200; background: var(--deep); color: var(--cream);
  display: grid; align-content: center; gap: .6rem; padding: var(--pad);
  transform: translate3d(0,-101%,0); transition: transform .55s var(--ease-out);
}
.mmenu.on { transform: none; }
.mmenu a { font-family: var(--display); font-size: clamp(2.25rem, 11vw, 3.5rem); text-decoration: none; }
.mmenu__close { position: absolute; top: .5rem; right: var(--pad); background: none; border: 0; color: inherit; font-size: 2.5rem; cursor: pointer; }

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

/* The photograph does the work. Type sits on it, scrim only where the words are. */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: var(--deep); color: var(--cream); }
.hero__fig { position: absolute; inset: 0; margin: 0; }
.hero__fig img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(36,29,24,.86) 0%, rgba(36,29,24,.3) 44%, rgba(36,29,24,.12) 72%);
}
.hero__copy { position: relative; z-index: 2; padding: var(--pad); padding-bottom: clamp(2.25rem, 7vh, 4.5rem); display: grid; gap: 1.3rem; max-width: 74rem; }
.hero__h { font-size: clamp(3rem, 10vw, 8.5rem); line-height: .93; letter-spacing: -.03em; }
.hero__h em { color: var(--clay); }
.hero__sub { margin: 0; max-width: 44ch; color: rgba(250,247,242,.82); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-light); color: rgba(250,247,242,.6); }

/* Page heroes on inner pages: shorter, same idea. */
.phero { min-height: 62svh; }
.phero .hero__h { font-size: clamp(2.5rem, 7vw, 5.5rem); }

/* ------------------------------------------------------------ statement -- */

.say { padding: clamp(4.5rem, 15vh, 9rem) var(--pad); max-width: 62rem; margin: 0 auto; }
.say p { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 3.3rem); line-height: 1.14; letter-spacing: -.02em; }
.say em { color: var(--clay); }

/* ------------------------------------------------------------- sections -- */

.sec { padding: clamp(3rem, 9vh, 5.5rem) 0; }
.sec__head { padding: 0 var(--pad); max-width: 74rem; margin: 0 auto clamp(2rem, 5vw, 3rem); display: grid; gap: .9rem; }
.sec__h { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 20ch; }
.sec__stand { margin: 0; max-width: 48ch; color: var(--ink-2); }

/* Full-bleed plate with caption tight underneath */
.plate { margin: 0; }
.plate__fig { position: relative; margin: 0; height: clamp(58svh, 76svh, 88svh); overflow: hidden; }
.plate__fig img { width: 100%; height: 100%; object-fit: cover; }
.plate__cap { padding: .8rem var(--pad) 0; max-width: 74rem; margin: 0 auto; display: flex; gap: 1rem; color: var(--ink-2); }

/* -------------------------------------------------------------- episodes -- */

.eps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.ep { background: var(--sand); padding: 0 0 clamp(1.5rem, 3vw, 2.25rem); text-decoration: none; display: grid; align-content: start; }
.ep__fig { margin: 0 0 1.4rem; aspect-ratio: 4/3; overflow: hidden; background: var(--sand-2); }
.ep__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.ep:hover .ep__fig img { transform: scale(1.045); }
.ep__body { padding: 0 clamp(1.15rem, 2.4vw, 2rem); display: grid; gap: .5rem; }
.ep__n { font-family: var(--mono); font-size: var(--label); font-weight: 500; letter-spacing: var(--track); color: var(--clay); }
.ep__h { font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.08; }
.ep__p { margin: .2rem 0 0; color: var(--ink-2); font-size: .9375rem; max-width: 42ch; }
.ep__meta { font-family: var(--mono); font-size: var(--label); letter-spacing: var(--track); text-transform: uppercase; color: #9d9186; margin-top: .3rem; }

/* ------------------------------------------------------------------ split -- */

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(3rem, 9vh, 6rem) var(--pad); max-width: 84rem; margin: 0 auto; }
.split--flip .split__fig { order: 2; }
.split__fig { margin: 0; overflow: hidden; aspect-ratio: 4/5; }
.split__fig img { width: 100%; height: 100%; object-fit: cover; }
.split__copy { display: grid; gap: 1.1rem; max-width: 44ch; }
.split__copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.split__copy p { margin: 0; color: var(--ink-2); }
.split__copy .btn { justify-self: start; margin-top: .4rem; }

/* ------------------------------------------------------------------ dark -- */

.dark { background: var(--deep); color: var(--cream); }
.dark .sec__stand, .dark p { color: rgba(250,247,242,.76); }
.dark .eyebrow { color: var(--clay); }

.what__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-light); border-block: 1px solid var(--rule-light); }
.card { background: var(--deep); padding: clamp(1.75rem, 3.5vw, 2.75rem); display: grid; gap: .6rem; align-content: start; }
.card__n { font-family: var(--mono); font-size: var(--label); font-weight: 500; letter-spacing: var(--track); color: var(--clay); }
.card h3 { font-size: 1.6rem; }

/* ------------------------------------------------------------------ pull -- */

.pull { padding: clamp(4rem, 12vh, 7rem) var(--pad); max-width: 58rem; margin: 0 auto; text-align: center; }
.pull blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.75rem); line-height: 1.16; letter-spacing: -.02em; }
.pull cite { display: block; margin-top: 1.3rem; font-family: var(--mono); font-size: var(--label); letter-spacing: var(--track); text-transform: uppercase; font-style: normal; color: var(--clay); }

/* ------------------------------------------------------------------ prose -- */

.prose { max-width: 44rem; margin: 0 auto; padding: clamp(2.5rem, 7vh, 4rem) var(--pad) clamp(3rem, 9vh, 5rem); display: grid; gap: 1.15rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-top: 1.2rem; }
.prose p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

/* ------------------------------------------------------------------ join -- */

.join { position: relative; padding: clamp(4.5rem, 14vh, 8rem) var(--pad); overflow: hidden; isolation: isolate; color: var(--cream); text-align: center; background: var(--deep); }
.join__fig { position: absolute; inset: 0; margin: 0; }
.join__fig img { width: 100%; height: 100%; object-fit: cover; }
.join::after { content: ''; position: absolute; inset: 0; background: rgba(36,29,24,.72); z-index: 1; }
.join__in { position: relative; z-index: 2; max-width: 44rem; margin: 0 auto; display: grid; gap: 1.3rem; justify-items: center; }
.join__h { font-size: clamp(2.25rem, 6.5vw, 4.5rem); line-height: .98; }
.join__h em { color: var(--clay); }

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

.foot { background: var(--deep); color: var(--cream); padding: clamp(2.5rem, 6vh, 4rem) var(--pad) 1.5rem; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.75rem; max-width: 74rem; margin: 0 auto; }
.foot dt { color: rgba(250,247,242,.42); margin-bottom: .7rem; }
.foot dd { margin: 0 0 .4rem; color: rgba(250,247,242,.8); }
.foot a { text-decoration: none; }
.foot__rule { max-width: 74rem; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--rule-light); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: var(--label); letter-spacing: var(--track); text-transform: uppercase; color: rgba(250,247,242,.45); }

/* ---------------------------------------------------------------- motion -- */

html.motion [data-rise] { opacity: 0; transform: translate3d(0,22px,0); }
@media (prefers-reduced-motion: reduce) { html.motion [data-rise] { opacity: 1 !important; transform: none !important; } }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .eps, .what__grid, .split { grid-template-columns: 1fr; }
  .split--flip .split__fig { order: 0; }
  .split__fig { aspect-ratio: 3/2; }
}
@media (max-width: 700px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__end { display: none; }
  .nav__burger { display: block; justify-self: end; }
  .hero__h { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .hero__meta { gap: .35rem 1.5rem; }
  .plate__fig { height: 58svh; }
  .ep__fig { aspect-ratio: 3/2; }
  .foot__rule { flex-direction: column; gap: .4rem; }
}
