/* =========================================================
   California Valley Miwok Tribe — Shared Stylesheet
   Editorial design system
   ========================================================= */

:root {
  /* Palette — earthen, warm-toned */
  --bone:        #F2EBDC;   /* page background, parchment */
  --bone-deep:   #E8DFCA;   /* secondary surfaces */
  --oak:         #2A1F17;   /* primary text, dark wood */
  --oak-deep:    #150D06;   /* deep contrast */
  --oak-soft:    #5C4733;   /* secondary text */
  --gold:        #B8862F;   /* warm gold — primary accent */
  --gold-bright: #D4A340;   /* hover state */
  --sage:        #5A6B4A;   /* oak leaf */
  --sage-deep:   #3D4A33;
  --ember:       #9B4A1F;   /* bark, late-afternoon light */
  --rule:        rgba(42, 31, 23, 0.14);
  --rule-strong: rgba(42, 31, 23, 0.32);

  /* Type scale (modular, 1.25) */
  --fs-xs:   0.78rem;
  --fs-sm:   0.92rem;
  --fs-base: 1rem;
  --fs-md:   1.15rem;
  --fs-lg:   1.4rem;
  --fs-xl:   1.85rem;
  --fs-2xl:  2.6rem;
  --fs-3xl:  3.8rem;
  --fs-4xl:  5.4rem;

  --max-w:   1280px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--oak);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper-grain overlay for warmth, not gimmick */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

/* Typography ---------------------------------------------- */

h1, h2, h3, h4, .display {
  font-family: 'Fraunces', 'Hoefler Text', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--oak-deep);
}

h1 { font-size: clamp(2.4rem, 5.4vw, var(--fs-3xl)); }
h2 { font-size: clamp(2rem, 4vw, var(--fs-2xl)); line-height: 1.08; }
h3 { font-size: var(--fs-xl); line-height: 1.15; }
h4 { font-size: var(--fs-lg); line-height: 1.2; }

h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--oak);
}

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

.eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.75rem;
  transform: translateY(-1px);
}

.lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--oak-soft);
  max-width: 56ch;
}

/* Layout primitives --------------------------------------- */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
  z-index: 2;
}

.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section--dark {
  background: var(--oak-deep);
  color: var(--bone);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--bone); }
.section--dark .lede { color: rgba(242, 235, 220, 0.75); }
.section--dark .eyebrow { color: var(--gold-bright); }
.section--dark .eyebrow::before { background: var(--gold-bright); }

.section--bone-deep { background: var(--bone-deep); }

/* Header / navigation ------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 235, 220, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--oak-deep);
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand__name { display: block; }
.brand__name em {
  font-style: italic;
  display: block;
  font-size: 0.78rem;
  color: var(--oak-soft);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--oak);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ember);
  border-bottom-color: var(--gold);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown > a::after {
  content: ' ›';
  display: inline-block;
  transform: rotate(90deg) translateX(2px);
  font-size: 0.75em;
  margin-left: 0.25em;
}

.nav__menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  margin-top: 0.5rem;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 2px;
  min-width: 240px;
  padding: 0.5rem 0;
  box-shadow: 0 12px 30px -10px rgba(42, 31, 23, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 180ms ease;
}

.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  border: 0;
  font-size: 0.86rem;
}

.nav__menu a:hover {
  background: var(--bone-deep);
  color: var(--ember);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--oak);
}

/* Hero ---------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.92) contrast(1.02);
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 13, 6, 0.35) 0%, rgba(21, 13, 6, 0.15) 35%, rgba(21, 13, 6, 0.78) 90%),
    linear-gradient(90deg, rgba(21, 13, 6, 0.55) 0%, transparent 60%);
  z-index: 1;
}

/* Textured variant (no photo) — for homepage hero when no image is appropriate */
.hero__media--textured {
  background:
    radial-gradient(ellipse at 25% 25%, rgba(184, 134, 47, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(155, 74, 31, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, var(--oak-deep) 0%, var(--oak) 100%);
}
.hero__media--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0 0.3 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero__media--textured::after {
  background: linear-gradient(180deg, rgba(21, 13, 6, 0.25) 0%, rgba(21, 13, 6, 0.08) 40%, rgba(21, 13, 6, 0.55) 95%);
}

.hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(3rem, 7vh, 5rem);
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--bone);
  font-size: clamp(2.6rem, 6.5vw, var(--fs-4xl));
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Tribal seal in hero — positioned on the right side */
.hero__seal {
  position: absolute;
  right: clamp(2rem, 5vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 320px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.45));
  z-index: 3;
}
@media (max-width: 820px) {
  /* On narrow screens fall back to centered above the headline */
  .hero__seal {
    position: static;
    transform: none;
    margin: 0 auto 1.75rem;
    width: clamp(120px, 30vw, 180px);
    display: block;
  }
}

/* Tribal photo with caption */
.tribal-photo {
  margin: 0;
}
.tribal-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
.tribal-photo figcaption {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--oak-soft);
  margin-top: 0.85rem;
  letter-spacing: 0.01em;
  font-family: 'Fraunces', serif;
}
.section--dark .tribal-photo figcaption { color: rgba(242,235,220,0.7); }

/* Basket feature — for the tribe-provided basket image which has a white/transparent backdrop */
.basket-feature {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(184, 134, 47, 0.22) 0%, transparent 65%),
    linear-gradient(160deg, var(--bone-deep) 0%, #DDD2B8 100%);
  padding: 3rem 2rem 2rem;
  border: 1px solid var(--rule);
  position: relative;
}
.basket-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.40 0 0 0 0 0.20 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.basket-feature img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(42, 31, 23, 0.22));
}
.basket-feature figcaption {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--oak-soft);
  margin-top: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  font-family: 'Fraunces', serif;
  position: relative;
  z-index: 1;
}
.basket-feature--inline {
  margin: 2.5rem 0;
  padding: 2.5rem 1.5rem 1.75rem;
}
.basket-feature--inline img {
  max-width: 360px;
}

.hero h1 em {
  color: var(--gold-bright);
  font-style: italic;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(242, 235, 220, 0.22);
  max-width: 720px;
}

.hero__meta-item .k {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.3rem;
}
.hero__meta-item .v {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--bone);
}

.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }
.hero .lede { color: rgba(242, 235, 220, 0.92); }

/* Cinematic page hero (non-home) with full-bleed background ----- */
.page-hero {
  position: relative;
  min-height: clamp(340px, 50vh, 480px);
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--rule);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--oak-deep);
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9) contrast(1.02);
}

/* Dark gradient overlay for legibility over photo */
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 13, 6, 0.45) 0%, rgba(21, 13, 6, 0.25) 35%, rgba(21, 13, 6, 0.80) 100%),
    linear-gradient(90deg, rgba(21, 13, 6, 0.55) 0%, transparent 65%);
  z-index: 1;
}

/* Textured (no-photo) variant — warm oak-tone with subtle pattern */
.page-hero__media--textured {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184, 134, 47, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(155, 74, 31, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--oak-deep) 0%, var(--oak) 100%);
}
.page-hero__media--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0 0.3 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.page-hero__media--textured::after {
  /* no further gradient needed */
  background: none;
}

/* Vivid variant — bright/vibrant photos that don't need heavy darkening.
   Lighter overall overlay so the landscape shows through; strong focused
   gradient anchored in the bottom-left specifically under the text. */
.page-hero__media--vivid img {
  filter: saturate(1.0) contrast(1.04);
}
.page-hero__media--vivid::after {
  background:
    radial-gradient(ellipse at 20% 90%, rgba(21, 13, 6, 0.88) 0%, rgba(21, 13, 6, 0.55) 35%, transparent 65%),
    linear-gradient(180deg, rgba(21, 13, 6, 0.20) 0%, rgba(21, 13, 6, 0.08) 40%, rgba(21, 13, 6, 0.55) 100%);
}

.page-hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--bone);
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  max-width: 22ch;
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 1.05;
}
.page-hero h1 em {
  color: var(--gold-bright);
  font-style: italic;
}
.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero .eyebrow::before { background: var(--gold-bright); }
.page-hero .lede {
  color: rgba(242, 235, 220, 0.92);
  max-width: 60ch;
}

/* Make the header transparent over the photo hero on inner pages */
body.has-photo-hero .site-header {
  background: linear-gradient(180deg, rgba(21, 13, 6, 0.5) 0%, rgba(21, 13, 6, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}
body.has-photo-hero .brand,
body.has-photo-hero .brand__name { color: var(--bone); }
body.has-photo-hero .brand__name em { color: rgba(242, 235, 220, 0.7); }
body.has-photo-hero .nav a { color: var(--bone); }
body.has-photo-hero .nav a:hover,
body.has-photo-hero .nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}
body.has-photo-hero .nav__menu {
  background: var(--oak-deep);
  border-color: rgba(242,235,220,0.18);
}
body.has-photo-hero .nav__menu a { color: var(--bone); }
body.has-photo-hero .nav__menu a:hover {
  background: var(--oak);
  color: var(--gold-bright);
}

/* Department icons (CSS masked SVGs — color via currentColor) */
.dept-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  flex-shrink: 0;
}
.dept-icon--feather  { --icon: url("data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2032%2032%22%20fill=%22none%22%20stroke=%22currentColor%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M16%203%20C%2021.5%206.5,%2023%2014,%2022%2021%20L%2018.5%2028%20L%2014.5%2021.5%20C%209%2015,%2011%207,%2016%203%20Z%22/%3E%3Cpath%20d=%22M16%203%20Q%2017%2014,%2018.5%2028%22/%3E%3Cpath%20d=%22M16.3%207%20L%2021%2011%22/%3E%3Cpath%20d=%22M16.5%2011%20L%2022%2016%22/%3E%3Cpath%20d=%22M16.8%2015%20L%2022%2020%22/%3E%3Cpath%20d=%22M17.2%2019%20L%2020.8%2023%22/%3E%3Cpath%20d=%22M15.7%207%20L%2011%2011%22/%3E%3Cpath%20d=%22M15.6%2011%20L%2010%2016%22/%3E%3Cpath%20d=%22M15.8%2015%20L%2010%2020%22/%3E%3Cpath%20d=%22M16%2019%20L%2013%2023%22/%3E%3C/svg%3E"); }
.dept-icon--book     { --icon: url("data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2032%2032%22%20fill=%22none%22%20stroke=%22currentColor%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M16%208%20L%2016%2027%20L%205%2024%20L%205%206%20Q%2010%207,%2016%208%20Z%22/%3E%3Cpath%20d=%22M16%208%20L%2016%2027%20L%2027%2024%20L%2027%206%20Q%2022%207,%2016%208%20Z%22/%3E%3Cline%20x1=%228%22%20y1=%2212%22%20x2=%2213%22%20y2=%2213%22/%3E%3Cline%20x1=%228%22%20y1=%2215%22%20x2=%2213%22%20y2=%2216%22/%3E%3Cline%20x1=%228%22%20y1=%2218%22%20x2=%2212%22%20y2=%2219%22/%3E%3Cline%20x1=%2224%22%20y1=%2212%22%20x2=%2219%22%20y2=%2213%22/%3E%3Cline%20x1=%2224%22%20y1=%2215%22%20x2=%2219%22%20y2=%2216%22/%3E%3Cline%20x1=%2224%22%20y1=%2218%22%20x2=%2220%22%20y2=%2219%22/%3E%3C/svg%3E"); }
.dept-icon--document { --icon: url("data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2032%2032%22%20fill=%22none%22%20stroke=%22currentColor%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M7%204%20L%2020%204%20L%2026%2010%20L%2026%2028%20L%207%2028%20Z%22/%3E%3Cpath%20d=%22M20%204%20L%2020%2010%20L%2026%2010%22/%3E%3Ccircle%20cx=%2211%22%20cy=%2215%22%20r=%220.9%22%20fill=%22currentColor%22%20stroke=%22none%22/%3E%3Ccircle%20cx=%2211%22%20cy=%2219%22%20r=%220.9%22%20fill=%22currentColor%22%20stroke=%22none%22/%3E%3Ccircle%20cx=%2211%22%20cy=%2223%22%20r=%220.9%22%20fill=%22currentColor%22%20stroke=%22none%22/%3E%3Cline%20x1=%2214%22%20y1=%2215%22%20x2=%2222%22%20y2=%2215%22/%3E%3Cline%20x1=%2214%22%20y1=%2219%22%20x2=%2222%22%20y2=%2219%22/%3E%3Cline%20x1=%2214%22%20y1=%2223%22%20x2=%2222%22%20y2=%2223%22/%3E%3C/svg%3E"); }
.dept-icon--scales   { --icon: url("data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2032%2032%22%20fill=%22none%22%20stroke=%22currentColor%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cline%20x1=%2216%22%20y1=%227%22%20x2=%2216%22%20y2=%2227%22/%3E%3Cline%20x1=%2211%22%20y1=%2227%22%20x2=%2221%22%20y2=%2227%22/%3E%3Ccircle%20cx=%2216%22%20cy=%226.5%22%20r=%221.2%22%20fill=%22currentColor%22%20stroke=%22none%22/%3E%3Cline%20x1=%226%22%20y1=%2211%22%20x2=%2226%22%20y2=%2211%22/%3E%3Cline%20x1=%229%22%20y1=%2211%22%20x2=%229%22%20y2=%2216%22/%3E%3Cline%20x1=%2223%22%20y1=%2211%22%20x2=%2223%22%20y2=%2216%22/%3E%3Cpath%20d=%22M5%2016%20Q%209%2020,%2013%2016%22/%3E%3Cpath%20d=%22M19%2016%20Q%2023%2020,%2027%2016%22/%3E%3C/svg%3E"); }
.dept-icon--family   { --icon: url("data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2032%2032%22%20fill=%22none%22%20stroke=%22currentColor%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%228%22%20cy=%2210%22%20r=%222.8%22/%3E%3Ccircle%20cx=%2224%22%20cy=%2210%22%20r=%222.8%22/%3E%3Ccircle%20cx=%2216%22%20cy=%2214%22%20r=%222.2%22/%3E%3Cpath%20d=%22M3%2027%20C%203%2019,%205%2016.5,%208%2016.5%20C%2011%2016.5,%2013%2019,%2013%2027%22/%3E%3Cpath%20d=%22M19%2027%20C%2019%2019,%2021%2016.5,%2024%2016.5%20C%2027%2016.5,%2029%2019,%2029%2027%22/%3E%3Cpath%20d=%22M11.5%2027%20C%2011.5%2021,%2013.5%2019.5,%2016%2019.5%20C%2018.5%2019.5,%2020.5%2021,%2020.5%2027%22/%3E%3C/svg%3E"); }

/* Hero h1 — icon larger, gold accent, sits beside italic title */
.page-hero h1 .dept-icon {
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.4rem;
  color: var(--gold-bright);
  vertical-align: -0.04em;
}

/* Inline lists & cards — icon at body-text size, oak default */
.sidebar-box .dept-icon,
.eyebrow .dept-icon,
.card .dept-icon {
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.35rem;
  vertical-align: -0.18em;
}

/* Sidebar (used on department pages) ---------------------- */
.dept-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.sidebar-box {
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.005em;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-box li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}
.sidebar-box li:first-child { border-top: 0; padding-top: 0; }
.sidebar-box li a:hover { color: var(--ember); }
.sidebar-box li.is-active a {
  color: var(--ember);
  font-weight: 500;
}

/* Member access (Microsoft sign-in) section --------------- */
.member-access {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px dashed var(--rule-strong);
  background: rgba(184, 134, 47, 0.05);
}
.member-access .eyebrow {
  margin-bottom: 0.5rem;
}
.member-access h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.member-access p {
  color: var(--oak-soft);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.btn-msft {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  background: var(--oak-deep);
  color: var(--bone);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: background 180ms ease;
  text-decoration: none;
}
.btn-msft:hover { background: var(--ember); color: var(--bone); }
.btn-msft__logo {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Dept-page content typography tightening */
.dept-body h2 {
  font-size: 1.85rem;
  margin-bottom: 0.85rem;
}
.dept-body h3 {
  font-size: 1.15rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: 0.005em;
}
.dept-body p {
  color: var(--oak-soft);
  max-width: 64ch;
}
.dept-body ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0 0 1rem 0;
}
.dept-body ul li {
  color: var(--oak-soft);
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
  font-size: 0.97rem;
  max-width: 60ch;
}
.dept-body .contact-line {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.dept-body .contact-line h3 { margin-top: 0; }
.dept-body .contact-line a {
  color: var(--ember);
  border-bottom: 1px solid var(--gold);
}

/* Grids --------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }

/* Cards --------------------------------------------------- */

.card {
  background: var(--bone-deep);
  padding: 2rem;
  position: relative;
  border: 1px solid var(--rule);
  transition: transform 280ms cubic-bezier(.2,.7,.3,1), box-shadow 280ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(42, 31, 23, 0.2);
}

.card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--oak-soft);
  font-size: 0.95rem;
}

.card__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.card__link:hover { color: var(--gold); }

/* Image card */
.media-card {
  background: var(--bone-deep);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 280ms cubic-bezier(.2,.7,.3,1);
}
.media-card:hover { transform: translateY(-3px); }
.media-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.media-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 600ms ease;
}
.media-card:hover .media-card__img img { transform: scale(1.04); }

/* Textured variant — used when no appropriate image is available */
.media-card__img--textured {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(184, 134, 47, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(155, 74, 31, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, var(--oak-deep) 0%, var(--oak-soft) 100%);
  position: relative;
}
.media-card__img--textured::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.20;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0 0.3 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Basket variant for the Cultural Resources media-card */
.media-card__img--basket {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(184, 134, 47, 0.30) 0%, transparent 65%),
    linear-gradient(160deg, var(--bone-deep) 0%, #DDD2B8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
}
.media-card__img--basket img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(42, 31, 23, 0.20));
  transition: transform 600ms ease;
}
.media-card:hover .media-card__img--basket img { transform: scale(1.04); }

/* Icon variant — large dept icon as the card visual (used for ICWA) */
.media-card__img--icon {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(184, 134, 47, 0.30) 0%, transparent 65%),
    linear-gradient(160deg, var(--bone-deep) 0%, #DDD2B8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}
.media-card__img--icon .media-card__icon {
  width: 38%;
  max-width: 130px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(42, 31, 23, 0.18));
  opacity: 0.88;
  transition: transform 600ms ease;
}
.media-card:hover .media-card__img--icon .media-card__icon { transform: scale(1.06); }
.media-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.media-card__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.media-card__body p {
  font-size: 0.9rem;
  color: var(--oak-soft);
}

/* Council member tile ------------------------------------- */

.council {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bone-deep);
}

.council__tile {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1.1rem;
  align-items: center;
  background: var(--bone);
}

.council__tile:nth-child(3n) { border-right: 0; }
.council__tile:nth-last-child(-n+3) { border-bottom: 0; }

.council__monogram {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--oak-deep);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border-radius: 50%;
}
.council__role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.2rem;
}
.council__name {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  line-height: 1.15;
  color: var(--oak-deep);
}

/* Buttons ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--oak-deep);
  color: var(--bone);
  border: 1px solid var(--oak-deep);
  cursor: pointer;
  transition: all 200ms ease;
}
.btn:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--bone);
}

.btn--ghost {
  background: transparent;
  color: var(--oak-deep);
}
.btn--ghost:hover {
  background: var(--oak-deep);
  color: var(--bone);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--oak-deep);
}
.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--oak-deep);
}

.btn::after {
  content: '→';
  transition: transform 200ms ease;
}
.btn:hover::after { transform: translateX(3px); }

/* Heritage / split sections ------------------------------- */

.heritage-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.heritage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
}
.heritage-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42, 31, 23, 0.4));
  pointer-events: none;
}

.heritage-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--bone);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Stats strip --------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats__item {
  padding: 2.25rem 1.5rem;
  text-align: left;
  border-right: 1px solid var(--rule);
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--oak-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin-bottom: 0.5rem;
}
.stats__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oak-soft);
}

/* Definition list / facts --------------------------------- */

.deflist {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-top: 1px solid var(--rule);
}
.deflist > div {
  display: contents;
}
.deflist dt, .deflist dd {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.deflist dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oak-soft);
  padding-right: 1.5rem;
}
.deflist dd {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--oak-deep);
}

/* Tag pill */
.pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(184, 134, 47, 0.14);
  color: var(--ember);
  border: 1px solid rgba(184, 134, 47, 0.4);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* List w/ rule */
.bulleted {
  list-style: none;
  padding: 0;
}
.bulleted li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.bulleted li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.55rem;
  transform: rotate(45deg);
}
.bulleted li:first-child { border-top: 1px solid var(--rule); }

/* Quote block --------------------------------------------- */

.pullquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--oak-deep);
  max-width: 32ch;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

/* Footer -------------------------------------------------- */

.site-footer {
  background: var(--oak-deep);
  color: rgba(242, 235, 220, 0.82);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  position: relative;
  z-index: 2;
}

.footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__brand {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: 0.75rem;
}
.footer__brand em {
  font-style: italic;
  display: block;
  font-size: 0.8rem;
  color: var(--gold-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  font-family: 'Inter Tight', sans-serif;
}

.footer__col h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.55rem; }
.footer__col a { font-size: 0.9rem; opacity: 0.85; }
.footer__col a:hover { color: var(--gold-bright); opacity: 1; }

.footer__legal {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(242, 235, 220, 0.14);
  font-size: 0.78rem;
  color: rgba(242, 235, 220, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Decorative oak-leaf SVG mark (used inline) -------------- */
.oak-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 2rem;
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.oak-divider::before, .oak-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}

/* Responsive ---------------------------------------------- */

@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .council { grid-template-columns: repeat(2, 1fr); }
  .council__tile:nth-child(3n) { border-right: 1px solid var(--rule); }
  .council__tile:nth-child(2n) { border-right: 0; }
  .council__tile:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .council__tile:nth-last-child(-n+2) { border-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .deflist { grid-template-columns: 1fr; }
  .deflist dt { padding-bottom: 0.3rem; border-bottom: 0; }
  .deflist dd { padding-top: 0; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .council { grid-template-columns: 1fr; }
  .council__tile { border-right: 0 !important; }
  .council__tile:not(:last-child) { border-bottom: 1px solid var(--rule); }
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stats__item:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bone);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 1.5rem;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav.is-open .nav__menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding-left: 1rem;
    opacity: 1; visibility: visible; transform: none;
    min-width: 0;
  }
}

/* Reveal on load (subtle staggered) ----------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal > * {
  animation: rise 700ms cubic-bezier(.2,.7,.3,1) backwards;
}
.reveal > *:nth-child(1) { animation-delay: 0.05s; }
.reveal > *:nth-child(2) { animation-delay: 0.18s; }
.reveal > *:nth-child(3) { animation-delay: 0.32s; }
.reveal > *:nth-child(4) { animation-delay: 0.46s; }
.reveal > *:nth-child(5) { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal > * { animation: none; }
  html { scroll-behavior: auto; }
}
