/* ======================================================================
   Zoufalky — shared site styles
   Editorial Luxe · Truffle palette · Libre Bodoni + Inter
   ====================================================================== */

:root {
  /* Truffle palette */
  --ink:       #2C1F18;   /* chocolate — primary text + dark sections */
  --ink-soft:  #4A372B;
  --paper:     #DDD3C0;   /* warm sand — alt light */
  --cream:     #E9E2D2;   /* lightest — main light bg */
  --cream-2:   #EFEADD;
  --sand:      #B8A989;
  --accent:    #A88560;   /* camel gold */
  --accent-dk: #8C6A48;
  --line:      rgba(44,31,24,.16);
  --line-on-dark: rgba(233,226,210,.16);

  --serif: "Libre Bodoni", "Didot", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 160px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .005em;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { margin: 0; }

::selection { background: var(--accent); color: var(--cream); }

/* ---------- Type helpers ---------- */
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-dk);
  margin: 0;
}
.eyebrow.on-dark { color: var(--accent); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.kicker-rule {
  display: inline-flex; align-items: center; gap: 14px;
}
.kicker-rule::before {
  content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .6;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .lig { letter-spacing: -.08em; }
.wordmark-tag {
  font-family: var(--sans);
  font-size: .58em;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: .8;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(48px, 7vw, 96px); }

.bg-cream   { background: var(--cream); color: var(--ink); }
.bg-cream2  { background: var(--cream-2); color: var(--ink); }
.bg-paper   { background: var(--paper); color: var(--ink); }
.bg-ink     { background: var(--ink); color: var(--cream); }
.bg-ink .eyebrow { color: var(--accent); }
.bg-ink .lead { color: rgba(233,226,210,.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 0; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }

.btn.on-dark { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.on-dark:hover { background: transparent; color: var(--cream); }
.btn.ghost.on-dark { background: transparent; color: var(--cream); border-color: rgba(233,226,210,.5); }
.btn.ghost.on-dark:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: transparent; color: var(--accent); }

/* link with underline reveal */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; color: var(--accent-dk);
  transition: gap .25s;
}
.link-arrow:hover { gap: 14px; }

/* ======================================================================
   NAV
   ====================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .35s, padding .35s, box-shadow .35s, color .35s;
  color: var(--cream);
}
.nav.scrolled {
  background: var(--cream); color: var(--ink);
  padding-block: 14px;
  box-shadow: 0 1px 0 var(--line);
}
/* Subpages without a dark hero: nav is always solid (cream bg + ink text). */
body.solid-nav .nav { background: var(--cream); color: var(--ink); padding-block: 14px; }
body.solid-nav .nav .nav-burger span { background: var(--ink); }
body.solid-nav .nav .nav-cta { border-color: var(--ink); }
body.solid-nav .nav .nav-cta:hover { background: var(--ink); color: var(--cream); }
.nav .nav-mark { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  opacity: .9; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-current { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.nav-cta {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: 11px 20px; border: 1px solid currentColor; border-radius: 0;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav.scrolled .nav-cta:hover { background: var(--ink); color: var(--cream); }
.nav:not(.scrolled) .nav-cta:hover { background: var(--cream); color: var(--ink); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 32px; }
.mobile-menu .eyebrow { font-family: var(--sans); }

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,12,8,.42) 0%, rgba(20,12,8,0) 22%, rgba(20,12,8,0) 40%,
    rgba(20,12,8,.55) 64%, rgba(20,12,8,.88) 86%, #1b110b 100%);
}
.hero-inner { position: relative; width: 100%; padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(54px, 11vw, 150px); line-height: .94; letter-spacing: -.02em;
  margin: 18px 0 0; text-wrap: balance;
}
.hero .lead { color: rgba(233,226,210,.86); max-width: 540px; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 8vw, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .8;
}
.hero-scroll .line { width: 1px; height: 48px; background: var(--cream); animation: scrollPulse 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Editorial split hero (homepage) ---------- */
.hero-ed {
  display: flex; align-items: center; min-height: 100svh;
  padding-top: clamp(116px, 15vh, 190px); padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden; position: relative;
  background:
    radial-gradient(115% 80% at 88% 8%, rgba(201,160,112,.34) 0%, rgba(201,160,112,0) 52%),
    radial-gradient(90% 70% at 8% 100%, rgba(74,55,43,.55) 0%, rgba(74,55,43,0) 60%),
    linear-gradient(158deg, #2a1d16 0%, #382819 52%, #4a3729 100%);
}
.hero-ed-grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(38px, 6vw, 92px); align-items: center; }
.hero-ed-copy .kicker-rule { color: var(--accent); }
.hero-ed-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(54px, 8.4vw, 128px); line-height: .9; letter-spacing: -.022em;
  margin: 24px 0 0; text-wrap: balance;
}
.hero-ed-title em { font-style: italic; font-weight: 500; color: #E3B57E; }
.hero-ed .lead { color: rgba(233,226,210,.84); max-width: 520px; margin-top: 26px; }
.hero-ed .hero-cta { margin-top: clamp(30px, 4vw, 40px); }
.hero-ed-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
  margin-top: clamp(38px, 5vw, 56px); padding-top: 26px; border-top: 1px solid var(--line-on-dark);
  font-size: 12.5px; letter-spacing: .02em; color: rgba(233,226,210,.66);
}
.hero-ed-meta strong { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--cream); margin-right: 7px; }
.hero-ed-meta .div { width: 1px; height: 22px; background: var(--line-on-dark); }
.hero-ed-media { position: relative; }
.hero-ed-media::before {
  content: ""; position: absolute; z-index: 0;
  top: 30px; right: -30px; bottom: -26px; left: 44px;
  background: linear-gradient(165deg, var(--cream) 0%, var(--paper) 55%, var(--sand) 100%);
  border-radius: 200px 200px 10px 10px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.55);
}
.hero-ed-photo { position: relative; z-index: 1; aspect-ratio: 4/5; max-height: 78vh; margin: 0; box-shadow: 0 40px 90px -36px rgba(0,0,0,.7); }
.hero-ed-caption {
  position: relative; z-index: 1;
  display: block; margin-top: 18px; text-align: center;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
}

@media (max-width: 860px) {
  .hero-ed { min-height: auto; padding-top: clamp(108px, 22vh, 150px); }
  .hero-ed-grid { grid-template-columns: 1fr; gap: clamp(36px, 9vw, 52px); }
  .hero-ed-media { order: -1; max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-ed-media::before { right: -16px; left: 30px; }
  .hero-ed-photo { max-height: none; aspect-ratio: 4/5; }
}

/* ======================================================================
   GENERIC SECTION BUILDING BLOCKS
   ====================================================================== */
.section-head { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(32px, 5.2vw, 62px); }
.section-head .lead { margin-top: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.wide-text { grid-template-columns: 1.05fr .95fr; }

.fig { position: relative; overflow: hidden; }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig.arched { border-radius: 0; }
.fig.tall { aspect-ratio: 4/5; }

.pull {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -.01em;
  text-wrap: balance;
}

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.pillar { border-top: 1px solid var(--line); padding-top: 26px; }
.pillar .num { font-family: var(--serif); font-size: 16px; color: var(--accent-dk); letter-spacing: .1em; }
.pillar h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); margin: 14px 0 12px; }
.pillar p { color: var(--ink-soft); font-size: 16px; }

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer { background: var(--ink); color: var(--cream); padding-block: clamp(60px, 8vw, 110px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
.footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 15px; opacity: .82; transition: opacity .2s; }
.footer ul a:hover { opacity: 1; }
.footer .foot-mark { font-size: 30px; margin-bottom: 16px; }
.footer .foot-blurb { font-size: 15px; color: rgba(233,226,210,.72); max-width: 280px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(48px, 7vw, 90px); padding-top: 26px; border-top: 1px solid var(--line-on-dark);
  font-size: 12px; letter-spacing: .08em; color: rgba(233,226,210,.6); text-transform: uppercase;
}

/* ======================================================================
   REVEAL ON SCROLL
   ====================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-scroll .line { animation: none; }
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
  /* Logo centered, larger on mobile */
  .nav { justify-content: center; padding-block: 18px; }
  .nav .nav-mark { font-size: clamp(28px, 7vw, 36px); letter-spacing: .04em; }
  .split, .split.wide-text { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-scroll { display: none; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
