@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,ital,wght@6..72,0,400;6..72,0,500;6..72,0,600;6..72,1,400&family=Mulish:wght@400;500;600&display=swap');

:root {
  --bg: #f8f5f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #7a736b;
  --accent: #000000;
  --border: rgba(26, 26, 26, 0.10);
  --border-soft: rgba(26, 26, 26, 0.06);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --max: 1100px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Mulish', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 36;
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem); font-variation-settings: "opsz" 60; letter-spacing: -0.025em; line-height: 1.04; max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); font-variation-settings: "opsz" 36; max-width: 22ch; }
h3 { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); font-weight: 500; }

p { margin: 0 0 1em; max-width: 60ch; }

.lede { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: clamp(1.125rem, 0.7vw + 1rem, 1.4375rem); line-height: 1.45; color: var(--muted); max-width: 44ch; font-variation-settings: "opsz" 24; margin-top: 0.5rem; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 180ms var(--ease-out); }
a:hover { color: var(--muted); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: 0.5rem; top: 0.5rem; padding: 0.5rem 0.75rem; background: var(--accent); color: var(--surface); border-radius: 4px; transform: translateY(-200%); transition: transform 200ms var(--ease-out); z-index: 100; text-decoration: none; }
.skip-link:focus-visible { transform: translateY(0); color: var(--surface); }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.site-header { background: var(--bg); padding: clamp(1rem, 3vw, 1.5rem) 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: relative; }
.brand { font-family: 'Newsreader', Georgia, serif; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text); text-decoration: none; font-variation-settings: "opsz" 30; line-height: 1; transition: color 180ms var(--ease-out); }
.brand em { font-style: italic; font-weight: 400; }
.brand:hover { color: var(--muted); }

.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.nav-toggle-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; border-radius: 6px; border: 1px solid transparent; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out); }
.nav-toggle-btn:hover { background-color: rgba(26,26,26,0.04); border-color: var(--border-soft); }
.nav-toggle:focus-visible + .nav-toggle-btn { outline: 2px solid var(--accent); outline-offset: 3px; }

.hamburger { position: relative; width: 22px; height: 16px; flex: none; }
.hamburger span { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--text); border-radius: 1px; transform-origin: center; }
.hamburger span:nth-child(1) { transform: translateY(calc(-50% - 6px)); }
.hamburger span:nth-child(2) { transform: translateY(-50%); }
.hamburger span:nth-child(3) { transform: translateY(calc(-50% + 6px)); }
@media (prefers-reduced-motion: no-preference) { .hamburger span { transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out); } }
.nav-toggle:checked ~ .nav-toggle-btn .hamburger span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-btn .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-toggle-btn .hamburger span:nth-child(3) { transform: translateY(-50%) rotate(-45deg); }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  position: absolute;
  right: var(--gutter);
  top: calc(100% - 0.25rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 13rem;
  box-shadow: 0 6px 24px rgba(26, 26, 26, 0.08);
  z-index: 20;
}
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; position: relative; padding: 0.625rem 0.875rem; border-radius: 6px; transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out); }
.site-nav a:hover { background-color: rgba(26,26,26,0.04); }
.site-nav a[aria-current="page"] { background-color: rgba(26,26,26,0.05); }

@media (min-width: 720px) {
  .nav-toggle-btn { display: none; }
  .site-nav { display: flex !important; flex-direction: row; position: static; background: transparent; border: 0; padding: 0; box-shadow: none; gap: clamp(1rem, 2.5vw, 1.75rem); min-width: 0; }
  .site-nav a { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0; padding-bottom: 4px; border-radius: 0; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 220ms var(--ease-out); }
  .site-nav a:hover { background-color: transparent; }
  .site-nav a[aria-current="page"] { background-color: transparent; }
  .site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

main { display: block; }
.section { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.section--hero { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.section + .section { border-top: 1px solid var(--border-soft); }

.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1.6rem; font-size: 0.9375rem; font-weight: 500; font-family: inherit; letter-spacing: 0.02em; border-radius: 6px; border: 1px solid var(--accent); text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.btn--primary { background: var(--accent); color: var(--surface); }
.btn--primary:hover { color: var(--surface); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn--secondary:hover { color: var(--text); border-color: var(--accent); }
.btn > span { position: relative; z-index: 1; }

.split { display: grid; gap: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.two-up { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .two-up { grid-template-columns: 1fr 1fr; } }

.contact-line { display: grid; grid-template-columns: minmax(5rem, max-content) 1fr; column-gap: 1.5rem; row-gap: 0.6rem; margin: 0 0 1.5rem; }
.contact-line dt { color: var(--muted); font-weight: 500; font-size: 0.75rem; padding-top: 0.4rem; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-line dd { margin: 0; font-size: 1.125rem; }
.contact-line dd a { text-decoration: none; }
.contact-line dd a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.dl { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; column-gap: 1.5rem; row-gap: 0.5rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 500; font-size: 0.9375rem; }
.dl dd { margin: 0; }

.aside-note { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 1.0625rem; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; max-width: 36ch; font-variation-settings: "opsz" 18; margin: 0; }

.fineprint { color: var(--muted); font-size: 0.9375rem; }

.site-footer { border-top: 1px solid var(--border-soft); padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3rem); margin-top: clamp(2rem, 6vw, 4rem); font-size: 0.875rem; color: var(--muted); letter-spacing: 0.02em; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: baseline; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; transition: color 180ms var(--ease-out); }
.site-footer a:hover { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fade-up 360ms var(--ease-out) both; }
  .reveal-1 { animation-delay: 80ms; }
  .reveal-2 { animation-delay: 170ms; }
  .reveal-3 { animation-delay: 260ms; }

  @supports (animation-timeline: view()) {
    .reveal-on-scroll { animation: fade-up 340ms var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

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

body {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: auto !important;
  box-sizing: border-box;
}
/* Drop any inline grid-row placements that leave empty rows behind —
   sections always auto-flow vertically, only their column placement
   is user-controlled. */
body > * {
  min-width: 0; min-height: 0;
  grid-column: 1 / -1;
  grid-row: auto !important;
  max-width: 100%;
}
/* Media never overflows its container on a narrow viewport. */
body img, body video, body iframe, body svg {
  max-width: 100%;
  height: auto;
}
/* Mirrors the editor preview's mobile chrome (page_editor_controller.js
   GRID_CSS @media block) so what the owner sees in the iframe is what
   phone visitors see. The corpus's per-section CSS rarely ships its own
   mobile rules; these blanket overrides — !important so they win over
   the section-scoped class declarations — keep typography readable,
   padding sane, and inner grids / flex rows collapsed to a single
   column under 768px. */
@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr !important;
  }
  body > * {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  body > section {
    padding-left:  clamp(14px, 4vw, 28px) !important;
    padding-right: clamp(14px, 4vw, 28px) !important;
    padding-top:    clamp(28px, 7vw, 56px) !important;
    padding-bottom: clamp(28px, 7vw, 56px) !important;
  }
  body > section h1 {
    font-size: clamp(26px, 8vw, 40px) !important;
    line-height: 1.15 !important;
    word-wrap: break-word;
  }
  body > section h2 {
    font-size: clamp(22px, 6.5vw, 32px) !important;
    line-height: 1.2 !important;
  }
  body > section h3 {
    font-size: clamp(18px, 5vw, 24px) !important;
    line-height: 1.25 !important;
  }
  body > section[style*="grid"],
  body > section {
    grid-template-columns: 1fr !important;
  }
  body > section [style*="display: flex"],
  body > section [style*="display:flex"] {
    flex-wrap: wrap !important;
  }
}