@charset "UTF-8";
/* ==========================================================================
   droupadimurmu.com — Core stylesheet
   Design system: "Parchment & Ceremony"
   Palette derived from the supplied photographic collection:
   Rashtrapati Bhavan sandstone, ceremonial wine drapery, handloom ivory,
   antique brass of the State Emblem.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink & ceremonial darks */
  --ink-900:      #170D10;
  --wine-950:     #200910;
  --wine-900:     #2B0D16;
  --wine-800:     #3D111E;
  --wine-700:     #5A1527;
  --wine-600:     #742033;
  --wine-500:     #8C3145;

  /* Sandstone — Rashtrapati Bhavan */
  --sand-700:     #8E4A2E;
  --sand-600:     #A65E3E;
  --sand-400:     #C69172;
  --sand-200:     #E4CBB6;

  /* Antique brass */
  --brass-700:    #7F6230;
  --brass-600:    #9C7A3C;
  --brass-500:    #B08D57;
  --brass-400:    #C6A672;
  --brass-300:    #D8C199;

  /* Parchment & ivory */
  --ivory:        #F8F3E9;
  --ivory-hi:     #FDFAF3;
  --parchment:    #EFE6D4;
  --parchment-2:  #E5D9C2;
  --parchment-3:  #D9CBB0;

  /* Text */
  --text:         #3A3129;
  --text-strong:  #241B18;
  --text-muted:   #6B6055;
  --text-on-dark: #EFE4D3;
  --text-on-dark-muted: #C4B3A0;

  /* Functional */
  --focus:        #B08D57;
  --danger:       #9B2033;

  /* Typography */
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display:  clamp(2.55rem, 1.15rem + 5.3vw, 5.75rem);
  --fs-h1:       clamp(2.05rem, 1.25rem + 3.1vw, 4.05rem);
  --fs-h2:       clamp(1.68rem, 1.16rem + 2.05vw, 2.95rem);
  --fs-h3:       clamp(1.28rem, 1.07rem + 0.85vw, 1.8rem);
  --fs-h4:       clamp(1.08rem, 1.0rem + 0.34vw, 1.25rem);
  --fs-lead:     clamp(1.075rem, 1.01rem + 0.34vw, 1.3rem);
  --fs-body:     clamp(1rem, 0.975rem + 0.13vw, 1.075rem);
  --fs-small:    0.875rem;
  --fs-eyebrow:  0.72rem;

  --lh-tight:    1.08;
  --lh-heading:  1.16;
  --lh-body:     1.78;

  /* Layout */
  --maxw:        1320px;
  --maxw-narrow: 1080px;
  --maxw-text:   68ch;
  --gutter:      clamp(1.25rem, 0.6rem + 2.6vw, 3.75rem);

  --space-2xs:   0.5rem;
  --space-xs:    0.875rem;
  --space-s:     1.5rem;
  --space-m:     2.5rem;
  --space-l:     4rem;
  --space-xl:    clamp(3.5rem, 2rem + 5vw, 7rem);
  --space-2xl:   clamp(5rem, 2.5rem + 8vw, 10rem);

  --hairline:    1px solid rgba(124, 96, 52, 0.28);
  --hairline-dk: 1px solid rgba(214, 186, 140, 0.20);

  --radius:      2px;
  --shadow-s:    0 1px 2px rgba(35, 20, 12, .06), 0 6px 18px rgba(35, 20, 12, .06);
  --shadow-m:    0 2px 4px rgba(35, 20, 12, .07), 0 18px 46px rgba(35, 20, 12, .12);
  --shadow-l:    0 4px 8px rgba(35, 20, 12, .08), 0 34px 80px rgba(35, 20, 12, .18);

  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --header-h:    76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(198, 166, 114, .10), transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(166, 94, 62, .07), transparent 52%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The off-canvas mobile menu sits outside the viewport when closed. `clip`
   contains it without creating a scroll container, so the sticky header and
   in-page anchors continue to work; `hidden` above is the fallback. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--text-strong);
  letter-spacing: 0.005em;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; }

p  { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

/* The UA stylesheet gives figure and blockquote a 40px inline margin.
   Both are used as layout elements here, so the margin is removed globally. */
figure, blockquote { margin: 0; }

a {
  color: var(--wine-700);
  text-decoration: none;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color .25s var(--ease);
}
a:hover { color: var(--sand-700); text-decoration: underline; }

img, picture, video, svg { max-width: 100%; }
img { height: auto; border: 0; }

ul, ol { margin: 0 0 1.35em; padding-left: 1.25em; }
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--text-strong); }
em, i { font-style: italic; }

hr { border: 0; border-top: var(--hairline); margin: var(--space-m) 0; }

button { font: inherit; color: inherit; }

::selection { background: var(--wine-700); color: var(--ivory-hi); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: .75rem 1.25rem;
  background: var(--wine-800);
  color: var(--ivory-hi);
  font: 600 var(--fs-small)/1 var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--ivory-hi); text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap      { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.measure   { max-width: var(--maxw-text); }
.measure--center { max-width: var(--maxw-text); margin-inline: auto; }

.section   { padding-block: var(--space-xl); position: relative; }
.section--tight { padding-block: var(--space-l); }
.section--tall  { padding-block: var(--space-2xl); }

.section--parchment { background: var(--parchment); }
.section--wine {
  background: var(--wine-900);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(176, 141, 87, .16), transparent 48%),
    radial-gradient(circle at 88% 92%, rgba(140, 49, 69, .30), transparent 50%);
  color: var(--text-on-dark);
}
.section--ink {
  background: var(--ink-900);
  background-image: radial-gradient(circle at 50% 0%, rgba(90, 21, 39, .55), transparent 62%);
  color: var(--text-on-dark);
}

.section--wine h1, .section--wine h2, .section--wine h3,
.section--ink  h1, .section--ink  h2, .section--ink  h3 { color: var(--ivory-hi); }
.section--wine h4, .section--ink h4 { color: var(--brass-300); }
.section--wine a, .section--ink a { color: var(--brass-300); }
.section--wine a:hover, .section--ink a:hover { color: var(--ivory-hi); }
.section--wine .lead, .section--ink .lead { color: var(--text-on-dark); }
.section--wine .eyebrow, .section--ink .eyebrow { color: var(--brass-400); }
.section--wine .eyebrow::before, .section--ink .eyebrow::before { background: var(--brass-500); }

.grid { display: grid; gap: var(--space-m); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: var(--space-s); }

/* --------------------------------------------------------------------------
   4. Editorial type components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sand-700);
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: var(--brass-600);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  margin: 0;
}

.lead {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 1.62;
  font-weight: 500;
  color: var(--text);
}
.lead--muted { color: var(--text-muted); }

.subtitle {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chapter-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2rem + 6vw, 7rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(156, 122, 60, .55);
  margin-bottom: .35em;
  user-select: none;
}
.section--wine .chapter-num, .section--ink .chapter-num {
  -webkit-text-stroke-color: rgba(214, 186, 140, .5);
}

.pullquote {
  margin: var(--space-m) 0;
  padding: 0 0 0 clamp(1.25rem, 3vw, 2.5rem);
  border-left: 2px solid var(--brass-500);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.05rem + 1.15vw, 2.05rem);
  line-height: 1.42;
  font-weight: 300;
  font-style: italic;
  color: var(--wine-800);
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-style: normal;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section--wine .pullquote, .section--ink .pullquote { color: var(--ivory-hi); border-left-color: var(--brass-500); }
.section--wine .pullquote cite, .section--ink .pullquote cite { color: var(--brass-400); }

.rule {
  height: 1px;
  border: 0;
  margin: var(--space-m) 0;
  background: linear-gradient(90deg, var(--brass-500), rgba(176,141,87,.12) 72%, transparent);
}
.section--wine .rule, .section--ink .rule {
  background: linear-gradient(90deg, var(--brass-500), rgba(214,186,140,.14) 72%, transparent);
}

/* Jaali — restrained architectural lattice motif */
.jaali {
  height: 26px;
  width: 100%;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 26px 26px;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(156,122,60,.42) 46%, rgba(156,122,60,.42) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(156,122,60,.42) 46%, rgba(156,122,60,.42) 54%, transparent 54%);
  opacity: .55;
}
.jaali--light {
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(214,186,140,.5) 46%, rgba(214,186,140,.5) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(214,186,140,.5) 46%, rgba(214,186,140,.5) 54%, transparent 54%);
}

.emblem-mark {
  display: block;
  width: 46px; height: 1px;
  background: var(--brass-500);
  position: relative;
  margin: 0 0 var(--space-s);
}
.emblem-mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--ivory);
  border: 1px solid var(--brass-500);
}
.section--wine .emblem-mark::after, .section--ink .emblem-mark::after { background: var(--wine-900); }
.emblem-mark--center { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.9rem;
  border: 1px solid var(--wine-700);
  background: var(--wine-700);
  color: var(--ivory-hi);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover {
  background: var(--wine-900);
  border-color: var(--wine-900);
  color: var(--ivory-hi);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--ghost { background: transparent; color: var(--wine-700); }
.btn--ghost:hover { background: var(--wine-700); color: var(--ivory-hi); }
.btn--light { background: transparent; border-color: var(--brass-500); color: var(--brass-300); }
.btn--light:hover { background: var(--brass-500); border-color: var(--brass-500); color: var(--wine-950); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--wine-700);
  border-bottom: 1px solid rgba(90, 21, 39, .28);
  padding-bottom: .35rem;
}
.link-arrow::after {
  content: "→";
  transition: transform .3s var(--ease);
  font-size: 1.05em;
}
.link-arrow:hover { text-decoration: none; border-bottom-color: var(--wine-700); }
.link-arrow:hover::after { transform: translateX(5px); }
.section--wine .link-arrow, .section--ink .link-arrow {
  color: var(--brass-300);
  border-bottom-color: rgba(214, 186, 140, .35);
}
.section--wine .link-arrow:hover, .section--ink .link-arrow:hover { color: var(--ivory-hi); border-bottom-color: var(--brass-300); }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(248, 243, 233, .90);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: var(--hairline);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 243, 233, .98);
  box-shadow: 0 1px 0 rgba(124,96,52,.16), 0 12px 30px rgba(35,20,12,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; padding: .4rem 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  flex: none;
  border: 1px solid var(--brass-500);
  display: grid;
  place-items: center;
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(176, 141, 87, .4);
}
.brand-mark span {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--wine-700);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: .045em;
  color: var(--text-strong);
}
.brand-role {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-top: .2rem;
}

/* Primary nav */
.nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, .1rem + .9vw, 1.35rem);
  margin: 0; padding: 0;
  list-style: none;
}
.nav-list > li { margin: 0; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 0;
  font-family: var(--font-sans);
  font-size: .795rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: .15rem;
  width: 100%; height: 1px;
  background: var(--wine-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--wine-700); text-decoration: none; }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--wine-700); }
.nav-link.is-current::after { transform: scaleX(1); background: var(--brass-500); }

.nav-caret {
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .3s var(--ease);
  flex: none;
}
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(-135deg) translate(-2px, -2px); }

/* Dropdown panel */
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -1.5rem;
  min-width: 300px;
  padding: 1.35rem 1.5rem;
  background: var(--ivory-hi);
  border: 1px solid rgba(124, 96, 52, .26);
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  list-style: none;
  margin: 0;
  z-index: 10;
}
.nav-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass-500), var(--wine-700));
}
.nav-item.is-open > .nav-panel,
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-panel li { margin: 0; }
.nav-panel li + li { margin-top: .15rem; }
.nav-panel a {
  display: block;
  padding: .6rem .75rem;
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .045em;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), padding-left .25s var(--ease);
}
.nav-panel a small {
  display: block;
  font-size: .715rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--text-muted);
  margin-top: .18rem;
  line-height: 1.45;
}
.nav-panel a:hover, .nav-panel a:focus-visible, .nav-panel a.is-current {
  background: var(--parchment);
  border-left-color: var(--wine-700);
  color: var(--wine-700);
  text-decoration: none;
  padding-left: 1rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(124, 96, 52, .32);
  border-radius: var(--radius);
  cursor: pointer;
  flex: none;
}
.nav-toggle-bars { position: relative; width: 20px; height: 12px; display: block; }
.nav-toggle-bars i {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--text-strong);
  transition: transform .32s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 5.25px; }
.nav-toggle-bars i:nth-child(3) { top: 10.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(23, 13, 16, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  z-index: 890;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   7. Figures & images
   Default behaviour: natural aspect ratio, never cropped, never distorted.
   -------------------------------------------------------------------------- */
.fig { margin: 0; }
.fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.fig--framed img {
  border: 1px solid rgba(124, 96, 52, .3);
  box-shadow: var(--shadow-m);
}
.fig--plate {
  padding: clamp(.6rem, 1.4vw, 1.1rem);
  background: var(--ivory-hi);
  border: 1px solid rgba(124, 96, 52, .26);
  box-shadow: var(--shadow-m);
}
.section--wine .fig--plate, .section--ink .fig--plate {
  background: rgba(255, 253, 249, .06);
  border-color: rgba(214, 186, 140, .28);
}
.fig figcaption {
  margin-top: .95rem;
  padding-left: .9rem;
  border-left: 1px solid var(--brass-500);
  font-family: var(--font-sans);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.section--wine .fig figcaption, .section--ink .fig figcaption { color: var(--text-on-dark-muted); }
.fig figcaption b { font-weight: 600; color: var(--text-strong); }
.section--wine .fig figcaption b, .section--ink .fig figcaption b { color: var(--brass-300); }

/* Deliberate ratio-controlled band: only used where the subject sits safely
   inside the frame. object-position is set per instance. */
.fig--band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.fig--band {
  position: relative;
  overflow: hidden;
  background: var(--wine-950);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--wine-950);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(140, 49, 69, .42), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(127, 98, 48, .30), transparent 55%);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  min-height: clamp(520px, 78vh, 780px);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.hero-copy { align-self: center; max-width: 40rem; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 1.6rem;
}
.hero-eyebrow::before { content: ""; width: 2.75rem; height: 1px; background: var(--brass-500); flex: none; }
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.02;
  color: var(--ivory-hi);
  margin: 0 0 1.1rem;
  letter-spacing: -0.008em;
}
.hero-role {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 1.15vw, 2.05rem);
  font-weight: 300;
  font-style: italic;
  color: var(--brass-300);
  margin: 0 0 1.75rem;
  letter-spacing: .01em;
}
.hero-statement {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-on-dark);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-portrait {
  position: relative;
  align-self: center;
  width: 100%;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(214, 186, 140, .35);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%; height: 62%;
  border-right: 1px solid rgba(214, 186, 140, .35);
  border-bottom: 1px solid rgba(214, 186, 140, .35);
  pointer-events: none;
}
.hero-caption {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--text-on-dark-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  padding-block: 1.6rem;
  border-top: var(--hairline-dk);
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: .4rem;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--ivory-hi);
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--wine-900);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(140, 49, 69, .45), transparent 55%),
    radial-gradient(circle at 92% 100%, rgba(127, 98, 48, .28), transparent 52%);
  color: var(--text-on-dark);
  padding-block: clamp(3.25rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.05;
  color: var(--ivory-hi);
  margin: 0 0 1.15rem;
  max-width: 22ch;
}
.page-hero__lead {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--text-on-dark);
  max-width: 56ch;
  margin: 0;
}
.page-hero__eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 1.35rem;
}
.page-hero__eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--brass-500); flex: none; }

.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.page-hero--split .fig img {
  border: 1px solid rgba(214, 186, 140, .32);
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}

/* Breadcrumbs */
.breadcrumb {
  padding-block: 1rem;
  border-bottom: var(--hairline);
  background: var(--parchment);
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .55rem;
  margin: 0; padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .55rem; }
.breadcrumb li + li::before { content: "/"; color: var(--brass-600); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--wine-700); }
.breadcrumb [aria-current] { color: var(--wine-700); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Editorial modules
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split--wide-left  { grid-template-columns: 1.18fr .82fr; }
.split--wide-right { grid-template-columns: .82fr 1.18fr; }
.split--top { align-items: start; }
.split__media--first { order: -1; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, .5rem + 2.5vw, 3rem);
  align-items: start;
}
.chapter__index {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand-700);
  padding-top: .5rem;
  border-top: 1px solid var(--brass-500);
}
.section--wine .chapter__index, .section--ink .chapter__index { color: var(--brass-400); }

.callout {
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  background: var(--parchment);
  border: 1px solid rgba(124, 96, 52, .24);
  border-top: 2px solid var(--brass-500);
}
.callout h3 { margin-bottom: .6rem; }
.callout--dark {
  background: rgba(255, 253, 249, .05);
  border-color: rgba(214, 186, 140, .24);
}

.fact-list { margin: 0; padding: 0; list-style: none; }
.fact-list li {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12rem) minmax(0, 1fr);
  gap: 1rem;
  padding: .95rem 0;
  margin: 0;
  border-bottom: var(--hairline);
}
.fact-list li:first-child { border-top: var(--hairline); }
.fact-list dt, .fact-list .k {
  font-family: var(--font-sans);
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: .28rem;
}
.fact-list dd, .fact-list .v {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text-strong);
}
.section--wine .fact-list li, .section--ink .fact-list li { border-color: rgba(214,186,140,.2); }
.section--wine .fact-list dt, .section--ink .fact-list dt,
.section--wine .fact-list .k, .section--ink .fact-list .k { color: var(--brass-400); }
.section--wine .fact-list dd, .section--ink .fact-list dd,
.section--wine .fact-list .v, .section--ink .fact-list .v { color: var(--ivory-hi); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(124, 96, 52, .24);
  border: 1px solid rgba(124, 96, 52, .24);
}
.stat {
  padding: clamp(1.4rem, 1rem + 1.2vw, 2.25rem);
  background: var(--ivory);
  text-align: left;
}
.section--wine .stat, .section--ink .stat { background: var(--wine-900); }
.section--wine .stat-row, .section--ink .stat-row { background: rgba(214,186,140,.22); border-color: rgba(214,186,140,.22); }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.9rem);
  line-height: 1;
  color: var(--wine-700);
  margin-bottom: .55rem;
}
.section--wine .stat__value, .section--ink .stat__value { color: var(--brass-300); }
.stat__label {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.55;
  color: var(--text-muted);
}
.section--wine .stat__label, .section--ink .stat__label { color: var(--text-on-dark-muted); }

/* Card — used sparingly */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  background: var(--ivory-hi);
  border: 1px solid rgba(124, 96, 52, .22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: rgba(124,96,52,.4); }
.card h3 { font-size: var(--fs-h4); font-family: var(--font-display); font-weight: 400; }
.card__num {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--sand-700);
  margin-bottom: .9rem;
}
.section--wine .card__num, .section--ink .card__num { color: var(--brass-300); }
.section--wine .card, .section--ink .card {
  background: rgba(255,253,249,.045);
  border-color: rgba(214,186,140,.22);
}
.section--wine .card p, .section--ink .card p { color: var(--text-on-dark-muted); }

/* Index / navigation grid at the foot of pages */
.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: rgba(124, 96, 52, .22);
  border: 1px solid rgba(124, 96, 52, .22);
}
.next-card {
  display: block;
  padding: clamp(1.6rem, 1.1rem + 1.3vw, 2.35rem);
  background: var(--ivory);
  color: var(--text);
  transition: background .3s var(--ease);
}
.next-card:hover { background: var(--parchment); text-decoration: none; }
.next-card__k {
  display: block;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-bottom: .8rem;
}
.next-card__t {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-strong);
  margin-bottom: .55rem;
}
.next-card__d { display: block; font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   10. Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: .35rem; bottom: .35rem;
  width: 1px;
  background: linear-gradient(180deg, var(--brass-500), rgba(176,141,87,.25));
}
.timeline > li {
  position: relative;
  margin: 0;
  padding: 0 0 clamp(2.25rem, 1.5rem + 2vw, 3.5rem) clamp(1.75rem, 1rem + 2.4vw, 3.25rem);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -4.5px; top: .55rem;
  width: 10px; height: 10px;
  transform: rotate(45deg);
  background: var(--ivory);
  border: 1px solid var(--brass-600);
}
.section--wine .timeline > li::before { background: var(--wine-900); }
.section--ink .timeline > li::before { background: var(--ink-900); }
.section--parchment .timeline > li::before { background: var(--parchment); }
.timeline > li.is-major::before { background: var(--wine-700); border-color: var(--wine-700); }

.tl-year {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-bottom: .55rem;
}
.section--wine .tl-year, .section--ink .tl-year { color: var(--brass-400); }
.tl-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem);
  line-height: 1.25;
  color: var(--text-strong);
  margin: 0 0 .6rem;
}
.section--wine .tl-title, .section--ink .tl-title { color: var(--ivory-hi); }
.tl-body { max-width: 62ch; }
.tl-body p { margin-bottom: .8em; }
.tl-meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: .9rem;
}
.tag {
  display: inline-block;
  padding: .3rem .7rem;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wine-700);
  background: rgba(90, 21, 39, .07);
  border: 1px solid rgba(90, 21, 39, .16);
}
.section--wine .tag, .section--ink .tag {
  color: var(--brass-300);
  background: rgba(214, 186, 140, .1);
  border-color: rgba(214, 186, 140, .28);
}

/* Horizontal milestone rail */
.rail-shell { position: relative; }
.rail-shell::after {
  content: "";
  position: absolute;
  top: 1px; right: 1px; bottom: 1px;
  width: clamp(28px, 6vw, 72px);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248,243,233,0), var(--ivory));
}
.section--parchment .rail-shell::after { background: linear-gradient(90deg, rgba(239,230,212,0), var(--parchment)); }
.rail-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .9rem 0 0;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rail-hint::after { content: "→"; font-size: 1.05em; }

.rail {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: rgba(124, 96, 52, .22);
  border: 1px solid rgba(124, 96, 52, .22);
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: var(--parchment-2); }
.rail::-webkit-scrollbar-thumb { background: var(--brass-500); }
.rail__item {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  background: var(--ivory);
}
.rail__year {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--wine-700);
  line-height: 1;
  margin-bottom: .8rem;
  display: block;
}
.rail__title { font-family: var(--font-sans); font-weight: 600; font-size: .95rem; margin-bottom: .5rem; color: var(--text-strong); }
.rail__body { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* --------------------------------------------------------------------------
   11. Constitutional diagrams (pure CSS/HTML)
   -------------------------------------------------------------------------- */
.diagram {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  border: 1px solid rgba(124, 96, 52, .28);
  background: var(--ivory-hi);
}
.section--wine .diagram, .section--ink .diagram {
  background: rgba(255,253,249,.04);
  border-color: rgba(214,186,140,.26);
}
.diagram__caption {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-bottom: 1.75rem;
}
.section--wine .diagram__caption, .section--ink .diagram__caption { color: var(--brass-400); }

.node {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(124, 96, 52, .35);
  background: var(--ivory);
  text-align: center;
}
.node strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-strong);
  margin-bottom: .3rem;
}
.node span { font-size: .78rem; color: var(--text-muted); line-height: 1.5; display: block; }
.node--primary { background: var(--wine-800); border-color: var(--wine-800); }
.node--primary strong { color: var(--ivory-hi); font-size: 1.25rem; }
.node--primary span { color: var(--brass-300); }
.section--wine .node, .section--ink .node { background: rgba(255,253,249,.05); border-color: rgba(214,186,140,.3); }
.section--wine .node strong, .section--ink .node strong { color: var(--ivory-hi); }
.section--wine .node span, .section--ink .node span { color: var(--text-on-dark-muted); }

.node-tree { display: grid; gap: 0; justify-items: center; }
.node-tree__top { width: min(360px, 100%); }
.node-tree__stem { width: 1px; height: 2.25rem; background: var(--brass-600); }
.node-tree__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  width: 100%;
  position: relative;
}
.node-tree__row::before {
  content: "";
  position: absolute;
  top: -2.25rem;
  left: 12.5%; right: 12.5%;
  height: 1px;
  background: var(--brass-600);
}
.node-tree__row > * { position: relative; }
.node-tree__row > *::before {
  content: "";
  position: absolute;
  top: -2.25rem; left: 50%;
  width: 1px; height: 2.25rem;
  background: var(--brass-600);
}

.flow {
  display: grid;
  gap: 1.15rem;
  counter-reset: flowstep;
}
.flow__step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding-bottom: 1.15rem;
  border-bottom: var(--hairline);
}
.flow__step:last-child { border-bottom: 0; padding-bottom: 0; }
.flow__step::before {
  counter-increment: flowstep;
  content: counter(flowstep, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brass-600);
  padding-top: .35rem;
}
.flow__step h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
  margin-bottom: .35rem;
}
.flow__step p { font-size: .93rem; margin-bottom: 0; color: var(--text-muted); }
.section--wine .flow__step, .section--ink .flow__step { border-color: rgba(214,186,140,.2); }
.section--wine .flow__step p, .section--ink .flow__step p { color: var(--text-on-dark-muted); }

.article-ref {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand-700);
  background: rgba(166, 94, 62, .09);
  border: 1px solid rgba(166, 94, 62, .22);
  padding: .18rem .5rem;
  margin-left: .5rem;
  vertical-align: middle;
  white-space: nowrap;
}
.section--wine .article-ref, .section--ink .article-ref {
  color: var(--brass-300);
  background: rgba(214,186,140,.1);
  border-color: rgba(214,186,140,.28);
}

/* --------------------------------------------------------------------------
   12. Archive lists (speeches, engagements, awards)
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--space-m);
  padding-bottom: var(--space-s);
  border-bottom: var(--hairline);
}
.filter-btn {
  padding: .55rem 1.05rem;
  background: transparent;
  border: 1px solid rgba(124, 96, 52, .3);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--wine-700); color: var(--wine-700); }
.filter-btn[aria-pressed="true"] {
  background: var(--wine-700);
  border-color: var(--wine-700);
  color: var(--ivory-hi);
}

.archive { margin: 0; padding: 0; list-style: none; }
.archive > li { margin: 0; }
.entry {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  gap: clamp(1rem, .5rem + 1.6vw, 2.5rem);
  padding: clamp(1.5rem, 1rem + 1.2vw, 2.25rem) 0;
  border-bottom: var(--hairline);
  align-items: start;
}
.archive > li:first-child .entry { border-top: var(--hairline); }
.entry__date {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand-700);
  padding-top: .35rem;
}
.entry__place {
  display: block;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--text-muted);
  margin-top: .4rem;
  font-size: .8rem;
}
.entry__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.02rem + .55vw, 1.5rem);
  line-height: 1.3;
  color: var(--text-strong);
  margin: 0 0 .6rem;
}
.entry__body { color: var(--text); max-width: 66ch; }
.entry__body p { margin-bottom: .7em; font-size: .96rem; }
.entry.is-hidden { display: none; }

/* Archive lists and emphasis on the ceremonial dark grounds */
.section--wine strong, .section--wine b,
.section--ink  strong, .section--ink  b { color: var(--brass-300); }

.section--wine .entry, .section--ink .entry,
.section--wine .archive > li:first-child .entry,
.section--ink  .archive > li:first-child .entry { border-color: rgba(214, 186, 140, .22); }

.section--wine .entry__date,  .section--ink .entry__date  { color: var(--brass-400); }
.section--wine .entry__place, .section--ink .entry__place { color: var(--text-on-dark-muted); }
.section--wine .entry__title, .section--ink .entry__title { color: var(--ivory-hi); }
.section--wine .entry__body,  .section--ink .entry__body  { color: var(--text-on-dark); }

.section--wine .filters, .section--ink .filters { border-color: rgba(214, 186, 140, .22); }
.section--wine .filter-btn, .section--ink .filter-btn {
  border-color: rgba(214, 186, 140, .32);
  color: var(--text-on-dark-muted);
}
.section--wine .filter-btn:hover, .section--ink .filter-btn:hover {
  border-color: var(--brass-400);
  color: var(--brass-300);
}
.section--wine .filter-btn[aria-pressed="true"], .section--ink .filter-btn[aria-pressed="true"] {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: var(--wine-950);
}
.section--wine .subtitle, .section--ink .subtitle { color: var(--text-on-dark-muted); }
.section--wine .rail-shell::after, .section--ink .rail-shell::after { display: none; }

.source-note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(124, 96, 52, .06);
  border-left: 2px solid var(--brass-500);
  font-size: .8rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.section--wine .source-note, .section--ink .source-note {
  background: rgba(214,186,140,.07);
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   13. Gallery
   -------------------------------------------------------------------------- */
/* Masonry archive: CSS columns pack plates of differing proportions without
   forcing a crop or leaving ragged gaps. */
.gallery-grid {
  column-count: 4;
  column-gap: clamp(1rem, .6rem + 1.2vw, 1.85rem);
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(1rem, .6rem + 1.2vw, 1.85rem);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  padding: 0;
  border: 1px solid rgba(124, 96, 52, .22);
  background: var(--ivory-hi);
  cursor: zoom-in;
  text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.gallery-item:hover, .gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: rgba(124, 96, 52, .45);
}
.gallery-item__media { overflow: hidden; background: var(--parchment-2); display: block; }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .8s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item__cap {
  display: block;
  padding: .95rem 1.1rem 1.1rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  line-height: 1.55;
  color: var(--text);
  border-top: 1px solid rgba(124, 96, 52, .16);
}
.gallery-item__cat {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-bottom: .4rem;
}
.gallery-item.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, .5rem + 2vw, 3rem);
  background: rgba(15, 8, 10, .975);
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0;
  max-width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  width: auto; height: auto;
  object-fit: contain;
  border: 1px solid rgba(214, 186, 140, .3);
  background: var(--wine-950);
}
.lightbox__cap {
  max-width: 70ch;
  text-align: center;
  font-family: var(--font-sans);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-on-dark);
}
.lightbox__count {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-top: .55rem;
}
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: rgba(248, 243, 233, .08);
  border: 1px solid rgba(214, 186, 140, .34);
  color: var(--ivory-hi);
  cursor: pointer;
  border-radius: 50%;
  transition: background .25s var(--ease), transform .25s var(--ease);
  font-size: 1.1rem;
  line-height: 1;
}
.lightbox__btn:hover { background: rgba(214, 186, 140, .28); }
.lightbox__close { top: clamp(1rem, 2vw, 2rem); right: clamp(1rem, 2vw, 2rem); }
.lightbox__prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-card {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: rgba(124, 96, 52, .24);
  border: 1px solid rgba(124, 96, 52, .24);
}
.contact-cell {
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  background: var(--ivory-hi);
}
.contact-cell__k {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-bottom: .9rem;
}
.contact-cell__v {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  line-height: 1.35;
  color: var(--text-strong);
  word-break: break-word;
}
.contact-cell__v a { color: var(--wine-700); border-bottom: 1px solid rgba(90,21,39,.25); }
.contact-cell__v a:hover { text-decoration: none; border-bottom-color: var(--wine-700); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  background-image: radial-gradient(circle at 50% 0%, rgba(90, 21, 39, .48), transparent 62%);
  color: var(--text-on-dark-muted);
  padding-top: var(--space-xl);
  font-size: .875rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: var(--space-l);
}
.footer-brand .brand-name { display: block; color: var(--ivory-hi); font-size: 1.5rem; }
.footer-brand .brand-role { display: block; color: var(--brass-400); margin-top: .35rem; }
.footer-sig {
  margin-top: 1.5rem;
  width: min(220px, 70%);
  opacity: .85;
}
.footer-blurb { margin-top: 1.35rem; max-width: 34ch; line-height: 1.7; color: var(--text-on-dark-muted); }

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { color: var(--text-on-dark-muted); font-size: .875rem; }
.footer-col a:hover { color: var(--ivory-hi); text-decoration: none; }

.footer-contact p { margin-bottom: .7rem; line-height: 1.65; }
.footer-contact a { color: var(--brass-300); }
.footer-contact a:hover { color: var(--ivory-hi); }
.footer-contact .k {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  opacity: .75;
  margin-bottom: .2rem;
}

.social {
  display: flex;
  gap: .6rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.social li { margin: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(214, 186, 140, .3);
  border-radius: 50%;
  color: var(--brass-300);
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.social a:hover {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: var(--wine-950);
  transform: translateY(-2px);
}
.social svg { width: 17px; height: 17px; fill: currentColor; display: block; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(214, 186, 140, .16);
  font-size: .78rem;
  letter-spacing: .03em;
}
.footer-bottom a { color: var(--brass-300); }
.footer-bottom a:hover { color: var(--ivory-hi); }
.footer-credit { text-align: right; }

.footer-note {
  margin: 0;
  padding-bottom: 1.75rem;
  font-size: .74rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
}
.footer-note a { color: var(--brass-300); border-bottom: 1px solid rgba(214,186,140,.35); }
.footer-note a:hover { color: var(--ivory-hi); text-decoration: none; border-bottom-color: var(--ivory-hi); }
.footer-channels {
  margin-top: 1.35rem;
  font-size: .74rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   16. Access gate (index.html)
   -------------------------------------------------------------------------- */
.gate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 1rem + 3vw, 4rem);
  background: var(--ink-900);
  background-image:
    radial-gradient(circle at 22% 18%, rgba(90, 21, 39, .55), transparent 55%),
    radial-gradient(circle at 78% 84%, rgba(127, 98, 48, .28), transparent 55%);
}
.gate__panel {
  width: min(430px, 100%);
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  background: rgba(255, 253, 249, .045);
  border: 1px solid rgba(214, 186, 140, .26);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gate__mark {
  width: 54px; height: 54px;
  margin: 0 auto 1.85rem;
  border: 1px solid var(--brass-500);
  display: grid; place-items: center;
  position: relative;
}
.gate__mark::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(176,141,87,.4); }
.gate__mark::after {
  content: "";
  width: 12px; height: 12px;
  transform: rotate(45deg);
  border: 1px solid var(--brass-400);
}
.gate__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin: 0 0 .85rem;
}
.gate__hint {
  font-family: var(--font-sans);
  font-size: .8rem;
  line-height: 1.7;
  color: rgba(239, 228, 211, .62);
  margin: 0 0 2.15rem;
}
.gate__field { text-align: left; margin-bottom: 1.35rem; }
.gate__label {
  display: block;
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: .7rem;
}
.gate__input {
  width: 100%;
  padding: .95rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: .18em;
  color: var(--ivory-hi);
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(214, 186, 140, .3);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.gate__input::placeholder { color: rgba(239, 228, 211, .28); letter-spacing: .3em; }
.gate__input:focus { outline: none; border-color: var(--brass-400); background: rgba(0, 0, 0, .42); }
.gate__input:focus-visible { outline: 2px solid var(--brass-400); outline-offset: 2px; }
.gate__btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--brass-500);
  border: 1px solid var(--brass-500);
  color: var(--wine-950);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease);
}
.gate__btn:hover { background: var(--brass-300); border-color: var(--brass-300); }
.gate__error {
  margin: 1.15rem 0 0;
  min-height: 1.2rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .06em;
  color: #E8A0A8;
}
.gate__panel.is-invalid { animation: gate-shake .45s var(--ease); }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* --------------------------------------------------------------------------
   17. Motion
   -------------------------------------------------------------------------- */
/* Content is visible by default. It is hidden for the reveal only when the
   access script has confirmed that scripting is available (html.js), so the
   site degrades to a fully readable document without JavaScript. */
.reveal { transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

.reveal-img { overflow: hidden; }
.reveal-img img { transition: transform 1.5s var(--ease-out), opacity 1.1s var(--ease-out); }
.js .reveal-img img { transform: scale(1.06); opacity: 0; }
.js .reveal-img.is-visible img { transform: scale(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-img img { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-backdrop, .lightbox, .filters, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; }
  .section--wine, .section--ink, .page-hero, .hero { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
