/* House to House Network: shared styles for the homepage, About, Get Involved, and FAQ.
   Brand colors and fonts follow the brand sheet. Study pages keep their own stylesheets. */

@view-transition { navigation: auto; }

:root {
  --cream: #f6efe4;
  --cream-deep: #efe4d3;
  --paper: #fbf7f0;
  --charcoal: #2F2F2F;
  --clay: #7F4A22;
  --clay-deep: #66391a;
  --moss: #46563C;
  --moss-deep: #3a4832;
  --olive: #7D8246;
  --slate: #4c6370;
  --sand: #D7C7B1;
  --sage: #D9E1D6;
  --muted: #5e584f;
  --line: rgba(47, 47, 47, 0.13);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 78px;
  --nav-h-small: 62px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--nav-h-small) + 12px); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--clay); color: var(--cream); padding: 0.6rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; color: var(--charcoal); letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--clay); }
.display { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.02em; }
.h-section { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 300; }
.h-sub { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 38rem; }
.prose p { margin-bottom: 1.2rem; max-width: 40rem; }
.prose p:last-child { margin-bottom: 0; }
.text-link { color: var(--slate); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: var(--clay); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.25rem; }
.band-moss { background: var(--moss); color: var(--cream); }
.band-moss h2, .band-moss h3 { color: var(--cream); }
.band-moss .eyebrow { color: var(--sand); }
.band-moss .lede { color: rgba(246, 239, 228, 0.82); }
.band-deep { background: var(--cream-deep); }
.band-paper { background: var(--paper); }
.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary { background: var(--clay); color: var(--cream); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--moss); box-shadow: 0 10px 24px -12px rgba(47, 47, 47, 0.5); }
.btn-secondary { background: transparent; color: var(--clay); border-color: var(--clay); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--clay); color: var(--cream); }
.btn-light { background: rgba(0, 0, 0, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-light:hover, .btn-light:focus-visible { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn-cream { background: var(--cream); color: var(--moss); }
.btn-cream:hover, .btn-cream:focus-visible { background: #fff; }
.btn-small { padding: 0.7rem 1.1rem; font-size: 0.72rem; }
.btn svg { width: 14px; height: 14px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(246, 239, 228, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  transition: height 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  view-transition-name: site-header;
}
.site-header.is-scrolled { height: var(--nav-h-small); }
.site-header.is-over-hero { background: transparent; border-bottom-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-over-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 -40px 0;
  background: linear-gradient(to bottom, rgba(20, 16, 12, 0.5), rgba(20, 16, 12, 0));
  pointer-events: none;
  z-index: -1;
}
.header-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
/* The real logo artwork. Over the video it shows in solid white so it stays visible. */
.brand-mark { width: auto; height: 34px; transition: filter 0.35s var(--ease), height 0.35s var(--ease); }
.is-scrolled .brand-mark { height: 30px; }
.is-over-hero .brand-mark { filter: brightness(0) invert(1); }
.brand-name { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }

.nav-list { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-list > li > a,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0;
  opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
}
.nav-list > li > a:hover, .nav-toggle:hover, .nav-list > li > a[aria-current="page"] { opacity: 1; color: var(--clay); }
.is-over-hero .nav-list > li > a:hover, .is-over-hero .nav-toggle:hover { color: #fff; }
.nav-toggle svg { width: 10px; height: 10px; fill: currentColor; transition: transform 0.25s var(--ease); }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .nav-toggle svg, .nav-dropdown.is-open .nav-toggle svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 8px;
  padding-top: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), translate 0.22s var(--ease), visibility 0.22s;
}
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu, .nav-dropdown.is-open .nav-menu { opacity: 1; visibility: visible; translate: -50% 0; }
.nav-menu-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -18px rgba(47, 47, 47, 0.35);
  padding: 0.5rem;
  min-width: 270px;
  color: var(--charcoal);
}
.nav-menu a { display: block; padding: 0.7rem 0.9rem; text-decoration: none; transition: background-color 0.2s; }
.nav-menu a:hover { background: var(--cream); }
.nav-menu strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.nav-menu span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-app {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-app:hover { opacity: 1; }
.nav-app svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-over-hero .btn-seat { background: var(--cream); color: var(--clay); }
.is-over-hero .btn-seat:hover { background: #fff; }

.menu-button { display: none; background: none; border: 0; padding: 0.5rem; margin-right: -0.5rem; cursor: pointer; color: inherit; }
.menu-button svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.menu-button .i-close { display: none; }
.menu-open .menu-button .i-open { display: none; }
.menu-open .menu-button .i-close { display: block; }
.mobile-only { display: none; }

@media (max-width: 1060px) {
  .menu-button { display: block; }
  .nav-app.desktop-only { display: none; }
  .mobile-only { display: block; }
  .site-header nav {
    position: fixed;
    inset: var(--nav-h-small) 0 0 0;
    background: var(--cream);
    color: var(--charcoal);
    padding: 1.25rem var(--gutter) 3rem;
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.45s var(--ease), visibility 0.45s;
  }
  .site-header { height: var(--nav-h-small); }
  .menu-open .site-header,
  .site-header.menu-open { background: var(--cream); color: var(--charcoal); border-bottom-color: var(--line); }
  .site-header.menu-open .brand-mark { filter: none; }
  .site-header.menu-open::before { display: none; }
  .site-header.menu-open nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-toggle { width: 100%; justify-content: space-between; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 1; }
  .nav-toggle svg { width: 12px; height: 12px; }
  .nav-menu { position: static; translate: none; opacity: 1; visibility: visible; padding: 0 0 1rem; display: none; }
  .nav-dropdown.is-open .nav-menu { display: block; translate: none; }
  .nav-dropdown:hover .nav-menu { translate: none; }
  .nav-menu-inner { background: transparent; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav-menu a { padding: 0.6rem 0 0.6rem 1rem; border-left: 1px solid var(--sand); }
  .nav-menu a:hover { background: none; }
  .nav-mobile-app { margin-top: 2rem; }
  .nav-mobile-app .nav-app { opacity: 1; font-size: 0.85rem; color: var(--muted); }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .header-actions { gap: 0.75rem; }
  .btn-seat { padding: 0.6rem 0.85rem; font-size: 0.68rem; letter-spacing: 0.12em; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(3.5rem, 9vw, 7rem)) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3rem, 8vw, 5.75rem); font-weight: 300; line-height: 1; margin-bottom: 1.5rem; }
.page-hero .lede { max-width: 40rem; }
.subnav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2.25rem; }
.subnav a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--clay); border-bottom: 1px solid transparent; padding-bottom: 0.2rem; }
.subnav a:hover { border-color: var(--clay); }

/* ---------- Split: label left, content right ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--nav-h-small) + 2rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

.pull-quote { border-left: 2px solid var(--clay); padding-left: 1.5rem; margin: 2.25rem 0; }
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--charcoal); max-width: none; }

/* ---------- Numbered list (values) ---------- */
.numbered { border-top: 1px solid var(--charcoal); counter-reset: n; }
.numbered > li { list-style: none; display: grid; grid-template-columns: 4rem 14rem 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: baseline; counter-increment: n; }
.numbered > li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-size: 1.1rem; color: var(--clay); }
.numbered h3 { font-size: 1.85rem; }
.numbered p { max-width: 38rem; }
@media (max-width: 760px) { .numbered > li { grid-template-columns: 2.75rem 1fr; gap: 0.35rem 1rem; } .numbered p { grid-column: 2; } }

/* ---------- Steps (journey) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; list-style: none; counter-reset: s; }
.steps > li { border-top: 1px solid var(--charcoal); padding-top: 1.5rem; counter-increment: s; }
.steps > li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 3rem; font-weight: 300; line-height: 1; color: var(--clay); margin-bottom: 1rem; }
.steps h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.steps p { font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Accordion (details) ---------- */
.faq { border-top: 1px solid var(--charcoal); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }
.faq summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--clay);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.75rem; max-width: 42rem; }
.faq .answer p + p { margin-top: 0.9rem; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Cards and chips ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.card-photo { aspect-ratio: 3 / 2; background: var(--sage); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo.is-blank { font-family: var(--serif); font-size: 1.6rem; color: var(--moss); padding: 1.5rem; text-align: center; }
.card-photo.is-new { background: var(--moss); color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 1.8rem; }
.card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.7rem; margin-bottom: 0.35rem; }
.card-meta { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.card-body p { font-size: 0.97rem; margin-bottom: 1.5rem; flex: 1; }
.card-body .btn { align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag { font-size: 0.72rem; padding: 0.2rem 0.6rem; background: var(--sage); color: var(--moss); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--sand);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--clay); }
.chip[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.chip-detail { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--clay); max-width: 40rem; min-height: 1.7em; }

/* ---------- Photo mosaic ---------- */
.mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 240px); gap: 0.75rem; }
.mosaic figure { overflow: hidden; background: var(--sage); }
.mosaic .wide { grid-column: span 2; }
.mosaic .tall { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-deep); color: rgba(246, 239, 228, 0.78); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(246, 239, 228, 0.14); }
/* Full logo in one light color, since its dark lettering would disappear on the dark footer */
.footer-logo { width: 190px; height: auto; margin-bottom: 1.75rem; filter: brightness(0) invert(1); opacity: 0.88; }
.footer-verse { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--cream); max-width: 24rem; }
.footer-verse cite { display: block; margin-top: 0.75rem; font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); }
.site-footer h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; padding-top: 1.75rem; font-size: 0.82rem; color: rgba(246, 239, 228, 0.6); }
.footer-legal { flex-basis: 100%; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; translate: 0 18px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: none; }

/* Cross-page transition: header stays put, content crossfades */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; translate: none; }
  @view-transition { navigation: none; }
}

/* Cormorant's default old-style figures make "10" read like "IO"; use lining figures for numbers */
.numbered > li::before, .steps > li::before, .sat-day-num, .look-num, .u-date { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
