@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/Caveat-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #24372c;
  --green: #3b6850;
  --muted: #66655c;
  --rule: #d8d8c9;
  --surface: #faf7ef;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 5% 0%, #fbe0c6 0, transparent 65%) top left / 65% 280px no-repeat,
    radial-gradient(ellipse at 100% 0%, #e0eccc 0, transparent 65%) top right / 65% 280px no-repeat,
    var(--paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a, summary { -webkit-tap-highlight-color: #d7e1cd; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; border-radius: 3px; }
::selection { background: #dce6cd; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
p + p { margin-top: 1rem; }
.wrap { width: min(100% - 3rem, 1040px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -8rem; padding: .75rem 1rem; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 1rem; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.wordmark { color: var(--ink); font-family: "Caveat", cursive; font-size: 2.5rem; font-weight: 650; line-height: 1.1; text-decoration: none; }
.wordmark span { color: var(--green); }
nav { display: flex; gap: 1.7rem; align-items: center; }
nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .92rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }
.eyebrow, .small-label { color: var(--muted); font-size: .84rem; letter-spacing: .075em; }
.eyebrow { margin-bottom: 1.1rem; }
.hero { padding-top: clamp(2.5rem, 6vw, 5.5rem); text-align: center; }
h1 { font-family: "Caveat", cursive; font-size: clamp(4.4rem, 9vw, 7rem); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.lead { color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.2rem); line-height: 1.7; margin-top: 1.6rem; }
.hero-note { font-size: .95rem; color: var(--muted); margin-top: 1.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.3rem; min-height: 50px; padding: .8rem 1.45rem; border: 1px solid var(--green); border-radius: 5px; background: var(--green); color: var(--surface); font-size: .96rem; font-weight: 550; text-decoration: none; }
.button:hover { background: #315942; text-decoration: none; }
.hero .button { margin-top: 1.7rem; }
.landscape { width: min(100%, 760px); margin: 3rem auto 0; }
.landscape img { width: 100%; border-radius: 6px; }
.landscape figcaption { margin-top: 1rem; color: var(--muted); font-family: "Caveat", cursive; font-size: 1.75rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4.5rem; padding-block: 2.5rem; border-block: 1px solid var(--rule); }
.principles h2 { font-family: "Caveat", cursive; font-size: 2.15rem; font-weight: 550; line-height: 1.15; margin: .7rem 0; }
.principles article > p:last-child { color: var(--muted); font-size: .98rem; }
.quiet-note { padding-block: 3.5rem 1rem; max-width: 660px; text-align: center; }
.quiet-note h2, .contact-card h2, .faq > h2 { font-family: "Caveat", cursive; font-size: 2.7rem; font-weight: 500; line-height: 1.15; }
.quiet-note p { margin-top: 1rem; color: var(--muted); }
.text-link { display: inline-block; padding-block: .65rem; margin-top: .7rem; }
.site-footer { margin-top: 4.5rem; padding-block: 1.6rem 2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .82rem; }
.site-footer nav { gap: 1.5rem; }
.site-footer nav a { font-size: .82rem; }

.document { max-width: 800px; }
.document-header { padding-block: 3.25rem 2.5rem; }
.document-header h1 { font-size: clamp(3.8rem, 9vw, 5.6rem); }
.document-header .lead { max-width: 650px; }
.meta { margin-top: 1.25rem; color: var(--muted); font-size: .85rem; }
.summary { padding: 1.4rem 1.6rem; border: 1px solid var(--rule); border-left: 3px solid var(--green); border-radius: 5px; background: var(--surface); }
.summary p { font-size: .98rem; }
.summary p + p { color: var(--muted); }
.prose section { padding-top: 2rem; }
.prose h2 { font-family: "Caveat", cursive; font-size: 2.35rem; font-weight: 550; line-height: 1.25; margin-bottom: .75rem; }
.prose p, .prose li, .prose address { color: #4b5047; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.4rem; margin-block: .75rem 1rem; }
.prose li + li { margin-top: .45rem; }
.prose address { margin-top: 1rem; font-style: normal; }
.prose a, .email-link { overflow-wrap: anywhere; }
.end-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.contact-card h2 { font-size: 2.5rem; }
.contact-card p { margin-block: .5rem; font-size: .95rem; color: var(--muted); }
.email-link { display: inline-block; font-size: .96rem; }
.support-tip { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.faq { margin-top: 3.5rem; }
.faq > .eyebrow { margin-bottom: .5rem; }
.faq > h2 { margin-bottom: 1.5rem; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { position: relative; padding: 1.2rem 1.8rem 1.2rem 0; font-weight: 550; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .1rem; top: 1rem; color: var(--green); font-size: 1.4rem; font-weight: 400; }
details[open] > summary::after { content: "−"; }
.answer { color: var(--muted); padding-bottom: 1.3rem; max-width: 700px; }

@media (max-width: 640px) {
  .wrap { width: min(100% - 2.5rem, 1040px); }
  .site-header { padding-block: 1.25rem; }
  .wordmark { font-size: 2.2rem; }
  nav { gap: 1.1rem; }
  nav a { font-size: .88rem; }
  .hero { padding-top: 2.25rem; }
  .hero h1 { font-size: clamp(4.2rem, 17vw, 6rem); }
  .wide-only { display: none; }
  .landscape { margin-top: 2.2rem; }
  .principles { grid-template-columns: 1fr; gap: 1.8rem; margin-top: 3rem; padding-block: 2rem; }
  .principles h2 { font-size: 2.3rem; }
  .quiet-note { padding-top: 2.5rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: .2rem; margin-top: 3rem; }
  .document-header { padding-top: 2.25rem; }
  .summary, .contact-card { padding: 1.2rem; }
  .contact-card .button { width: 100%; }
  .prose h2 { font-size: 2.15rem; }
  .faq > h2 { font-size: 2.5rem; }
}

@media (prefers-contrast: more) {
  body { background: var(--paper); }
  :root { --muted: #424c40; --rule: #727b6c; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .end-note { display: none; }
  .wrap { width: 100%; max-width: none; }
  .document-header { padding-top: 0; }
  .summary, .contact-card { background: none; }
  h1, h2, summary { break-after: avoid; }
  a { color: inherit; }
}
