/* MSOFx base — layout, components, a11y */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cypress);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--forest);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--forest);
  color: var(--surface);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
  color: var(--surface);
  box-shadow: var(--focus);
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-5xl); font-weight: 450; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }

p {
  margin: 0 0 var(--space-4);
  color: var(--ink-muted);
}

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

.lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 38em;
}

/* Kicker + tower step mark */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--cypress);
  margin: 0 0 var(--space-3);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--rose), var(--rose)) 0 100% / 14px 2.5px no-repeat,
    linear-gradient(var(--rose), var(--rose)) 1.5px 70% / 11px 2.5px no-repeat,
    linear-gradient(var(--rose), var(--rose)) 3px 40% / 8px 2.5px no-repeat,
    linear-gradient(var(--rose), var(--rose)) 4.5px 10% / 5px 2.5px no-repeat;
  opacity: 0.9;
}

.key-gold .kicker { color: var(--gold); }
.key-gold .kicker::before {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 100% / 14px 2.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 1.5px 70% / 11px 2.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 3px 40% / 8px 2.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 4.5px 10% / 5px 2.5px no-repeat;
}
.key-rose .kicker { color: var(--rose); }
.key-sky .kicker { color: var(--sky); }
.key-sky .kicker::before {
  background:
    linear-gradient(var(--sky), var(--sky)) 0 100% / 14px 2.5px no-repeat,
    linear-gradient(var(--sky), var(--sky)) 1.5px 70% / 11px 2.5px no-repeat,
    linear-gradient(var(--sky), var(--sky)) 3px 40% / 8px 2.5px no-repeat,
    linear-gradient(var(--sky), var(--sky)) 4.5px 10% / 5px 2.5px no-repeat;
}
.key-cypress .kicker { color: var(--cypress); }

.band-deep .kicker,
.band-deep .kicker.key-gold {
  color: var(--gold-soft);
}

/* Layout */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap-wide {
  width: var(--wrap-wide);
  margin-inline: auto;
}

.band {
  padding: var(--space-9) 0;
}

.band-tight {
  padding: var(--space-7) 0;
}

.band-sand {
  background: var(--surface);
}

.band-deep {
  background: var(--forest);
  color: var(--paper);
  padding: var(--space-9) 0;
}

.band-deep h2,
.band-deep h3 {
  color: var(--surface);
}

.band-deep p,
.band-deep .lede {
  color: rgba(243, 239, 230, 0.82);
}

.band-deep a:not(.btn):not(.btn-ghost) {
  color: var(--gold-soft);
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-7);
}

.section-head h2 {
  margin-bottom: var(--space-3);
}

.section-cta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.split > img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* Buttons */
.btn,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.btn {
  background: var(--cypress);
  color: var(--surface);
  border-color: var(--cypress);
}

.btn:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-light {
  background: var(--surface);
  color: var(--forest);
  border-color: var(--surface);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--forest);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--cypress);
  color: var(--cypress);
  background: rgba(42, 86, 64, 0.06);
}

.btn-on-dark,
.band-deep .btn-ghost,
.hero .btn-ghost {
  color: var(--surface);
  border-color: rgba(252, 250, 246, 0.45);
}

.btn-on-dark:hover,
.band-deep .btn-ghost:hover,
.hero .btn-ghost:hover {
  background: rgba(252, 250, 246, 0.1);
  border-color: var(--surface);
  color: var(--surface);
}

.band-deep .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

.band-deep .btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--forest);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(252, 250, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(20, 40, 32, 0.06);
  background: rgba(252, 250, 246, 0.96);
}

body.is-home .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  position: fixed;
  width: 100%;
}

body.is-home .site-header:not(.is-scrolled) .logo,
body.is-home .site-header:not(.is-scrolled) .nav-list a {
  color: var(--surface);
}

body.is-home .site-header:not(.is-scrolled) .nav-toggle {
  color: var(--surface);
  border-color: rgba(252, 250, 246, 0.4);
}

body.is-home .site-header:not(.is-scrolled) .btn-ghost {
  color: var(--surface);
  border-color: rgba(252, 250, 246, 0.45);
}

body.is-home .site-header:not(.is-scrolled) .btn-ghost:hover {
  background: rgba(252, 250, 246, 0.12);
  color: var(--surface);
}

.header-inner {
  width: var(--wrap-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
  flex-shrink: 0;
  max-width: min(280px, 42vw);
}

.logo-mark {
  flex: 0 0 auto;
  color: var(--forest);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.logo-mark-bg {
  fill: currentColor;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-text > span,
.logo span span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.15rem;
}

body.is-home .site-header:not(.is-scrolled) .logo-mark {
  color: rgba(20, 40, 32, 0.55);
  background: rgba(252, 250, 246, 0.12);
  box-shadow: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover {
  color: var(--forest);
  background: rgba(42, 86, 64, 0.06);
}

.nav-list a.nav-blog {
  color: var(--cypress);
  font-weight: 600;
}

.nav-list a.nav-blog:hover {
  color: var(--forest);
}

/* Keep primary nav lean on mid-width desktops */
@media (min-width: 961px) and (max-width: 1180px) {
  .nav-list .nav-more {
    display: none;
  }
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.header-ctas .btn,
.header-ctas .btn-ghost {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--space-4);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  body.nav-open .nav-list {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list a {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .header-ctas .btn-ghost {
    display: none;
  }

  body.is-home .site-header:not(.is-scrolled) .nav-list {
    background: var(--surface);
  }

  body.is-home .site-header:not(.is-scrolled) .nav-list a {
    color: var(--ink-muted);
  }
}

/* ========== Footer ========== */
.site-footer {
  background: var(--forest);
  color: rgba(243, 239, 230, 0.78);
  padding: var(--space-9) 0 var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}

.site-footer a {
  color: rgba(243, 239, 230, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer-brand .logo {
  color: var(--surface);
  margin-bottom: var(--space-4);
}

.footer-brand address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(243, 239, 230, 0.55);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CTA band ========== */
.cta-band {
  background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest) 55%, #0F1F18 100%);
  color: var(--paper);
  padding: var(--space-8) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--surface);
  max-width: 18em;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

.cta-band p {
  color: rgba(243, 239, 230, 0.8);
  max-width: 32em;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.cta-band .hero-ctas {
  justify-content: center;
  margin-top: 0;
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.card:hover img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.card-body p {
  font-size: var(--text-sm);
  flex: 1;
}

.card-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cypress);
  margin-bottom: var(--space-2);
  display: block;
}

.card-cta {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cypress);
  margin-top: var(--space-3);
}

.card:hover .card-cta {
  color: var(--forest);
}

/* Pathway immersive cards */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .pathway-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pathway-grid {
    grid-template-columns: 1fr;
  }
}

.pathway {
  position: relative;
  display: block;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--surface);
  isolation: isolate;
}

.pathway img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
  z-index: 0;
}

.pathway:hover img {
  transform: scale(1.05);
}

.pathway::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(20, 40, 32, 0.1) 0%,
    rgba(20, 40, 32, 0.35) 40%,
    rgba(20, 40, 32, 0.88) 100%
  );
  transition: background 0.4s var(--ease-out);
}

.pathway:hover::after {
  background: linear-gradient(
    180deg,
    rgba(20, 40, 32, 0.15) 0%,
    rgba(20, 40, 32, 0.4) 35%,
    rgba(20, 40, 32, 0.92) 100%
  );
}

.pathway-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pathway-body .card-meta {
  color: rgba(243, 239, 230, 0.75);
}

.pathway-body h3 {
  color: var(--surface);
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
}

.pathway-body p {
  color: rgba(243, 239, 230, 0.85);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.pathway-body .card-cta {
  color: var(--gold-soft);
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--cypress);
  opacity: 0.85;
}

.key-gold .checklist li::before,
.checklist.key-gold li::before {
  background: var(--gold);
}

.band-deep .checklist li {
  color: rgba(243, 239, 230, 0.85);
}

.band-deep .checklist li::before {
  background: var(--gold);
}

/* Quotes */
.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 800px) {
  .quote-row {
    grid-template-columns: 1fr;
  }
}

.quote {
  margin: 0;
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
}

.quote blockquote {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.quote figcaption {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--space-8) + 0.5rem) 0 var(--space-7);
  background:
    linear-gradient(180deg, rgba(20, 40, 32, 0.04), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  max-width: 42rem;
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero .kicker:empty,
.page-hero .lede:empty {
  display: none;
}

.page-hero-media {
  padding: 0;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-media .page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-media .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 40, 32, 0.25) 0%,
    rgba(20, 40, 32, 0.72) 100%
  );
}

.page-hero-media .wrap {
  position: relative;
  z-index: 1;
  padding: var(--space-9) 0 var(--space-7);
  max-width: var(--wrap);
}

.page-hero-media h1,
.page-hero-media .kicker,
.page-hero-media .lede {
  color: var(--surface);
}

.page-hero-media .kicker {
  color: var(--gold-soft);
}

.page-hero-media .lede {
  color: rgba(243, 239, 230, 0.88);
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-bottom: var(--space-4);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cypress);
}

/* Forms */
.field,
.lead-mini p {
  margin-bottom: var(--space-4);
}

label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cypress);
}

.lead-mini {
  max-width: 32rem;
}

.lead-mini .btn {
  margin-top: var(--space-2);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--space-4) 0;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.page-hero .lede {
  margin-bottom: var(--space-3);
}

.blog-count {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cypress);
}

.section-cta {
  margin-top: var(--space-6);
}

/* Prose helpers */
.prose h2 {
  margin-top: var(--space-7);
}

.prose h3 {
  margin-top: var(--space-5);
}

.prose ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose p {
  margin: 0 0 var(--space-4);
  max-width: 42rem;
}

.prose a {
  color: var(--cypress);
}

.prose .lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
}

/* Blog post shell */
.post-hero {
  padding-block: var(--space-8) var(--space-5);
}

.post-hero h1 {
  max-width: 18ch;
  margin-bottom: var(--space-4);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ink-faint);
  margin: 0 0 var(--space-4);
}

.post-meta .chip {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--cypress) 12%, var(--surface));
  color: var(--cypress);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-hero-img {
  margin: var(--space-6) 0 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.post-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ink-faint);
  margin: 0 0 var(--space-4);
}

.crumbs a {
  color: var(--ink-faint);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--cypress);
}

.crumbs .sep {
  opacity: 0.5;
}

.mini-cta {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  margin: var(--space-7) 0;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--forest);
  color: var(--surface);
}

.mini-cta p {
  margin: 0;
  max-width: 28ch;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
}

.mini-cta .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

.mini-cta .btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--forest);
}

aside.card {
  display: block;
}

address {
  font-style: normal;
}

/* FAQ */
.faq-list {
  max-width: 42rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.faq-item p {
  margin: 0;
}

/* Areas chips */
.areas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.areas-chips a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.55rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.areas-chips a:hover {
  border-color: var(--cypress);
  color: var(--cypress);
  background: rgba(42, 86, 64, 0.05);
  transform: translateY(-1px);
}

.areas-chips .areas-all {
  background: var(--cypress);
  color: var(--surface);
  border-color: var(--cypress);
}

.areas-chips .areas-all:hover {
  background: var(--forest);
  color: var(--surface);
}

/* Shelf museum */
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 800px) {
  .shelf {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .shelf {
    grid-template-columns: 1fr;
  }
}

.shelf-item figure {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.shelf-item figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.shelf-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ebe6dc;
}

.shelf-item figcaption {
  padding: var(--space-4);
}

.shelf-item figcaption b {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.shelf-item figcaption span {
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

/* Day strip mosaic */
.strip-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  text-decoration: none;
}

.strip-mosaic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}

.strip-mosaic:hover img {
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .strip-mosaic {
    grid-template-columns: 1fr;
  }
}

/* Timeline / day */
.day-timeline {
  display: grid;
  gap: var(--space-5);
}

.day-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.day-block time {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cypress);
}

@media (max-width: 600px) {
  .day-block {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* Reveals — FAIL-SAFE: only hide when JS has opted in via html.js.
   Without JS, content stays fully visible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 404 */
.err-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: var(--space-9) 0;
}

.err-404 .wrap {
  max-width: 32rem;
}

/* Utility */
.opt {
  font-weight: 400;
  color: var(--ink-faint);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
