:root {
  --ink: #1c1915;
  --ink-soft: #4a453c;
  --paper: #f3eee4;
  --paper-2: #e7dfd0;
  --forest: #2c3a31;
  --moss: #5f6d58;
  --clay: #b15a32;
  --sand: #d2c4ab;
  --line: #d5ccbc;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Figtree", sans-serif;
}

* { box-sizing: border-box; }
html {
  background: var(--paper);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
::selection { background: var(--clay); color: var(--paper); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 1.5px solid var(--clay);
  outline-offset: 2px;
}

.font-display { font-family: var(--display); font-weight: 400; }
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 550;
  color: var(--moss);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.rule { height: 1px; background: var(--line); }
.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  .wrap {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }
}

.banner {
  background: var(--forest);
  color: var(--paper);
  font-size: 0.92rem;
}
.banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.banner p { margin: 0; line-height: 1.35; overflow-wrap: break-word; }
.banner a { text-underline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(10px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo { display: flex; align-items: center; gap: 0.65rem; min-width: 0; flex: 1; text-decoration: none; }
.logo svg { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.logo-text { min-width: 0; overflow: hidden; }
.logo-name {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo-sub { display: block; margin-top: 0.35rem; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--ink); }
.nav-desktop a.is-active { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 6px; }
.nav-desktop a.btn-solid,
.nav-desktop a.btn-solid:hover,
.nav-desktop a.btn-solid.is-active {
  color: var(--paper);
  text-decoration: none;
}
.menu-toggle {
  width: 2.5rem; height: 2.5rem;
  border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.burger { position: relative; width: 1.25rem; height: 0.9rem; display: block; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 0.35rem; }
.burger span:nth-child(3) { top: 0.7rem; }
.is-open .burger span:nth-child(1) { top: 0.35rem; transform: rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { top: 0.35rem; transform: rotate(-45deg); }
.header-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.header-cta { display: none; }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1.25rem max(1.5rem, env(safe-area-inset-left, 0px)) 1.75rem max(1.5rem, env(safe-area-inset-right, 0px));
}
.nav-mobile.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
.nav-mobile a { text-decoration: none; font-size: 1.125rem; }
.nav-mobile a.btn-solid {
  color: var(--paper);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}
@media (max-width: 1023px) {
  .header-cta {
    display: inline-flex;
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1.2;
    color: var(--paper);
    white-space: nowrap;
  }
  .header-cta:hover { color: var(--paper); }
  .cta-long { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cta-short { display: none; }
  .cta-long { display: inline; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-actions, .nav-mobile { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  max-width: 100%;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--forest); color: var(--paper); }
.btn-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.btn-row .btn { width: 100%; }
@media (min-width: 540px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .btn-row .btn { width: auto; }
}
.page { flex: 1; }
.hero { padding: 4rem 0 2rem; }
@media (min-width: 1024px) {
  .hero { padding-top: 6rem; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; align-items: end; }
  .hero-copy { grid-column: span 7; }
  .hero-meta { grid-column: span 5; }
}
.hero h1 {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  width: 100%;
  font-family: var(--display);
  font-size: clamp(1.85rem, 7.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lede { margin: 1.75rem 0 0; max-width: 32rem; font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); overflow-wrap: break-word; }
@media (min-width: 640px) { .lede { font-size: 1.125rem; line-height: 2; } }
.qual-intro { margin: 0 0 1rem; max-width: 24rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); overflow-wrap: break-word; }
.quals { margin: 1.25rem 0 0; display: grid; grid-template-columns: 1fr; gap: 1.1rem 1.5rem; }
@media (min-width: 560px) { .quals { grid-template-columns: 1fr 1fr; } }
.quals dt { font-family: var(--display); font-size: 1.5rem; overflow-wrap: break-word; }
.quals dd { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--ink-soft); overflow-wrap: break-word; }
figure { margin: 0; max-width: 100%; }
.illustration { width: 100%; max-width: 100%; border: 1px solid var(--line); height: auto; display: block; overflow: hidden; }
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.split { display: grid; gap: 2.5rem; min-width: 0; }
@media (min-width: 768px) { .split { gap: 4rem; } }
.split > *, .hero-copy, .hero-meta, .card, .course-row, .col-4, .col-8 { min-width: 0; }
@media (min-width: 1024px) {
  .split-12 { grid-template-columns: repeat(12, 1fr); }
  .col-4 { grid-column: span 4; }
  .col-8 { grid-column: span 8; }
  .split-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}
.display-xl { margin: 0.75rem 0 0; font-family: var(--display); font-size: clamp(1.7rem, 6vw, 3rem); line-height: 1.15; font-weight: 400; overflow-wrap: break-word; }
.service-item { display: grid; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .service-item { grid-template-columns: 5rem 1fr; } }
.num { margin: 0; font-family: var(--display); font-size: 1.875rem; color: var(--moss); }
.body { margin: 0.75rem 0 0; max-width: 40rem; line-height: 1.75; color: var(--ink-soft); overflow-wrap: break-word; }
.link-quiet { display: inline-block; margin-top: 1rem; font-size: 0.875rem; text-underline-offset: 4px; }
.band-forest { background: var(--forest); color: var(--paper); }
.band-forest .eyebrow, .sand-label { color: var(--sand); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; }
.band-forest p { color: rgba(243, 238, 228, 0.8); }
.band-forest .btn { border-color: rgba(243, 238, 228, 0.4); color: var(--paper); }
.band-forest .btn:hover { background: var(--paper); color: var(--forest); }
.photo { width: 100%; object-fit: cover; }
.photo-hero { height: min(52vw, 520px); min-height: 240px; }
.photo-block { height: 16rem; }
.photo-tall { height: 16rem; }
@media (min-width: 768px) {
  .photo-block { height: 420px; }
  .photo-tall { height: 460px; }
}
.photo-mid { height: 16rem; margin-top: 2rem; }
.steps { display: grid; gap: 2.5rem; margin: 3.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-num { font-family: var(--display); font-size: 3rem; color: var(--sand); }
.cards { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--line); background: var(--paper); padding: 1.75rem; }
.band-paper { background: var(--paper-2); }
.band-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.list-plain { margin: 2rem 0 0; padding: 0; list-style: none; }
.list-plain li { margin: 0 0 1rem; line-height: 1.75; color: var(--ink-soft); font-size: 1.05rem; }
.faq { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq + .faq, .faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.faq-q span:first-child { font-family: var(--display); font-size: clamp(1.2rem, 4.5vw, 1.5rem); line-height: 1.3; overflow-wrap: break-word; }
.faq-a { display: none; max-width: 40rem; padding-bottom: 1.5rem; line-height: 1.75; color: var(--ink-soft); }
.faq-item.is-open .faq-a { display: block; }
.cta-row { display: flex; flex-direction: column; gap: 2rem; padding: 3rem 0; }
.cta-row .btn { width: 100%; }
@media (min-width: 768px) {
  .cta-row { flex-direction: row; align-items: center; justify-content: space-between; padding: 4rem 0; }
  .cta-row .btn { width: auto; flex-shrink: 0; }
}
.page-head { padding: 4rem 0 2.5rem; }
@media (min-width: 640px) { .page-head { padding-top: 6rem; } }
.page-head h1 {
  margin: 1rem 0 0;
  max-width: 48rem;
  width: 100%;
  font-family: var(--display);
  font-size: clamp(1.85rem, 7.5vw, 3.75rem);
  line-height: 1.1;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.split-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; margin: 0; list-style: none; }
.split-list li {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.25rem 0; border-top: 1px solid var(--line);
}
.split-list li:first-child { border-top: 0; }
.split-list h3 { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 400; overflow-wrap: break-word; }
.split-list p { margin: 0; max-width: 20rem; color: var(--ink-soft); }
@media (min-width: 640px) { .split-list li { flex-direction: row; justify-content: space-between; } }
.forest-list { border-color: rgba(243,238,228,0.15); }
.forest-list li { border-color: rgba(243,238,228,0.15); }
.forest-list p { color: rgba(243,238,228,0.75); }
.course-row {
  display: grid; gap: 1.5rem; padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .course-row { grid-template-columns: 2fr 3fr 1fr; } }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label span { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 0.75rem;
}
.form { position: relative; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.alert { padding: 0.75rem; border: 1px solid var(--clay); background: rgba(177,90,50,0.1); color: var(--clay); }
.ok { border: 1px solid var(--line); background: var(--paper); padding: 2.5rem 1.5rem; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer-grid ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.footer-grid li { margin: 0 0 0.5rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--ink); }
.footer-copy {
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.25rem 0; font-size: 0.875rem; color: var(--ink-soft);
}
@media (min-width: 640px) { .footer-copy { flex-direction: row; justify-content: space-between; } }
.admin-head { border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.tabs a, .tabs button { border: 1px solid var(--line); background: var(--paper); padding: 0.5rem 1rem; text-decoration: none; cursor: pointer; }
.tabs a.is-on, .tabs button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stack { display: grid; gap: 1rem; }
.course-admin { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.muted { color: var(--ink-soft); }
.clay { color: var(--clay); }
.check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.three { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .three { grid-template-columns: 1fr 1fr 1fr; } }
.panel { border: 1px solid var(--line); background: var(--paper); padding: 2rem; }
@media (min-width: 768px) { .panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem; } }
.inbox { border: 1px solid var(--line); padding: 1.25rem; margin-bottom: 1.5rem; }
.inbox.unread { background: var(--paper-2); }
.scroll-target { scroll-margin-top: 7rem; }
main { flex: 1; }

@media (max-width: 639px) {
  .eyebrow, .band-forest .eyebrow, .sand-label {
    letter-spacing: 0.1em;
    font-size: 0.66rem;
  }
  .logo svg { width: 2.15rem; height: 2.15rem; }
  .logo-name { font-size: 1.1rem; }
  .logo-sub { display: none; }
  .header-cta { padding: 0.42rem 0.65rem; font-size: 0.78rem; }
  .hero { padding: 2.5rem 0 1.5rem; }
  .page-head { padding: 2.75rem 0 1.75rem; }
  .card, .panel { padding: 1.25rem; }
  .list-plain li { font-size: 1rem; }
}
