/* deniserae.org — public site styles. Tokens: brand/brand-tokens.json (StillWell 5F palette, warmed). */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F7F2E8; --paper-warm: #F1EADC; --vellum: #FAF6EC; --bone: #FCF9F1;
  --ink: #1A2E25; --ink-soft: #3A4F45; --ink-mute: #5A6B62; --rule: #C7CDC7;
  --forest: #1F3D2E; --grove: #2D5240;
  --gold: #B8893E;      /* decoration only, never text */
  --gold-text: #86591F; /* gold for text, 5.44:1 on paper */
  --gold-mist: #F0E2C4;
  --rust: #A0522D;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.65 var(--sans); }
@media (min-width: 900px) { body { font-size: 1.25rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--grove); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--forest); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: 1.35rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; max-width: var(--measure); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.skip:hover, .skip:focus { color: #fff; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

header.site { padding-block: 1.25rem; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); text-decoration: none; }
.wordmark span { color: var(--gold-text); }
nav.site ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav.site a { text-decoration: none; color: var(--ink-soft); padding: .5rem 0; display: inline-block; }
nav.site a:hover { color: var(--forest); text-decoration: underline; }

.btn { -webkit-appearance: none; appearance: none; display: inline-block; background: var(--forest); color: #fff; font: 700 1.05rem/1 var(--sans); padding: 1rem 1.5rem; border-radius: var(--radius); text-decoration: none; border: 2px solid var(--forest); cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--grove); color: #fff; }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--paper-warm); color: var(--forest); }

.hero { padding-block: 2rem 4rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero .eyebrow { font-weight: 700; color: var(--gold-text); letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; margin-bottom: .75rem; }
.hero .lede { font-size: 1.3rem; color: var(--ink-soft); }
.hero figure { margin: 0; }
.hero img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: min(420px, 100%); margin-inline: auto; border: 6px solid var(--bone); box-shadow: 0 0 0 2px var(--gold); }

.rule { width: 3.5rem; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.5rem; }
section.band { padding-block: 4rem; }
section.band.warm { background: var(--paper-warm); }
section.band.vellum { background: var(--vellum); }

.about { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: .9fr 1.1fr; } }
.about img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }

.cards { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--bone); border: 1px solid var(--rule); border-top: 4px solid var(--forest); border-radius: var(--radius); padding: 1.75rem; }
.card .who { color: var(--gold-text); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.card.lead { border-top-color: var(--gold); }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { ol.steps { grid-template-columns: repeat(3, 1fr); } }
ol.steps li { counter-increment: s; background: var(--bone); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--rule); }
ol.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--forest); color: #fff; font: 700 1.1rem var(--sans); margin-bottom: .75rem; }

.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr .8fr; } .contact .emergency { order: 2; align-self: start; } }
form.inquiry { background: var(--bone); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; }
.field { margin-bottom: 1.25rem; }
.field label, fieldset legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.hint { display: block; font-size: 1rem; color: var(--ink-mute); margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=tel], textarea { -webkit-appearance: none; appearance: none; }
input[type=text], input[type=email], input[type=tel], textarea, select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink-mute); border-radius: 8px; padding: .75rem .85rem; min-height: 48px; }
input:focus, textarea:focus, select:focus { border-color: var(--forest); outline: 3px solid var(--gold-mist); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.choices { display: grid; gap: .5rem; }
.choices label { display: flex; gap: .7rem; align-items: center; font-weight: 400; padding: .6rem .8rem; border: 2px solid var(--rule); border-radius: 8px; background: #fff; cursor: pointer; min-height: 48px; }
.choices input { width: 1.3rem; height: 1.3rem; accent-color: var(--forest); flex: none; }
.choices label:has(input:checked) { border-color: var(--forest); background: var(--vellum); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 1rem; color: var(--ink-mute); }
.status { padding: 1rem 1.25rem; border-radius: 8px; margin-top: 1rem; }
.status.ok { background: #E6F0E8; border: 2px solid var(--grove); }
.status.err { background: #FBEDE6; border: 2px solid var(--rust); }
.error-text { color: var(--rust); font-weight: 700; font-size: 1rem; display: block; margin-top: .35rem; }

.emergency { background: #FFF4ED; border: 2px solid var(--rust); border-radius: var(--radius); padding: 1.5rem; }
.emergency h3 { color: var(--rust); }
.emergency .big { font-size: 1.4rem; font-weight: 700; }
.urgent-line { font-size: 1rem; color: var(--ink-soft); }
.retry { margin-top: .5rem; }

.prog-list { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .prog-list { grid-template-columns: repeat(2, 1fr); } }
.prog { background: var(--bone); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.prose h2 { margin-top: 2rem; } .prose ul, .prose ol { max-width: var(--measure); }
.video { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius); }

footer.site { background: var(--forest); color: #EDEBE3; padding-block: 2.5rem; margin-top: 0; }
footer.site a, footer.site a:hover { color: #fff; }
footer.site a:hover { text-decoration-thickness: 2px; }
footer.site :focus-visible { outline-color: #fff; }
footer.site .wrap { display: grid; gap: 1rem; }
footer.site p { max-width: none; margin: 0; font-size: 1rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Calm motion. One-time, under 5 s, never loops. Only when the visitor hasn't asked for reduced motion.
   Scroll effects use CSS scroll timelines; browsers without them show everything at rest (nothing starts hidden). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes dr-settle { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
  .hero img { animation: dr-settle 1.2s cubic-bezier(.2,.7,.2,1) both; }

  @supports (animation-timeline: view()) {
    @keyframes dr-rise { from { opacity: .15; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @keyframes dr-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes dr-wipe { from { clip-path: inset(0 100% 0 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }

    .rule { transform-origin: left center; animation: dr-draw linear both; animation-timeline: view(); animation-range: entry 20px entry 140px; }
    section.band h2, section.band .lede, section.band .card, .facts li, .contact > .emergency {
      animation: dr-rise linear both; animation-timeline: view(); animation-range: entry 0px entry 160px;
    }
    ol.steps li { animation: dr-rise linear both; animation-timeline: view(); }
    ol.steps li:nth-child(1) { animation-range: entry 0px entry 140px; }
    ol.steps li:nth-child(2) { animation-range: entry 40px entry 180px; }
    ol.steps li:nth-child(3) { animation-range: entry 80px entry 220px; }
    .about img { animation: dr-wipe linear both; animation-timeline: view(); animation-range: entry 0px entry 260px; }
  }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { header.site nav, footer.site, form.inquiry, .btn:not(.pdf-link), button { display: none !important; } body { background: #fff; } a.pdf-link::after { content: " (" attr(href) ")"; font-weight: 400; } }
