/* Dawni design concept: shared styles (copied from ../design-dawni/dawni.css). Self-hosted OFL fonts, no external requests. */
@font-face { font-family:"Fraunces"; src:url("fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:"Fraunces"; src:url("fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight:100 900; font-style:italic; font-display:swap; }
@font-face { font-family:"Manrope"; src:url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight:200 800; font-style:normal; font-display:swap; }

:root {
  --linen:#FBF6EF; --oat:#F2E8DC; --blush:#F5DFD5; --champagne:#F3E3C3; --white:#FFFFFF;
  --apricot:#F0B37E; --saffron:#D9903D; --rose:#E2A193; --clay:#9C3F2A;
  --espresso:#2A1A1E; --mauve:#6B5459; --plum:#3A1F3D; --night:#1F1424; --gold:#D8B26E; --heather:#B9A3BD;
  --sage:#3F6B55; --error:#A1302A;
  --hair:#E4D6C6; --hair-strong:#C8B3A2;
  --serif:"Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:"Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dawn:linear-gradient(180deg, #1F1424 0%, #3A1F3D 30%, #7A3438 55%, #C9724F 74%, #F0B37E 88%, #F3E3C3 100%);
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-soft:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --r:22px; --r-sm:12px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font-family:var(--sans); font-size:1.03rem; line-height:1.7; color:var(--espresso); background-color:var(--linen); background-image:var(--grain-soft); font-feature-settings:"ss01"; }
img, svg { max-width:100%; }
a { color:var(--clay); text-underline-offset:4px; text-decoration-thickness:1px; }
a:hover { text-decoration-thickness:2px; }
:focus-visible { outline:2px solid var(--plum); outline-offset:4px; border-radius:6px; box-shadow:0 0 0 6px rgba(216,178,110,.35); }
h1, h2, h3, .serif { font-family:var(--serif); font-weight:400; font-variation-settings:"SOFT" 60, "WONK" 0; letter-spacing:-.015em; line-height:1.08; margin:0 0 .5em; }
h1 { font-size:clamp(2.6rem, 6.4vw, 5rem); font-weight:360; }
h2 { font-size:clamp(1.9rem, 3.6vw, 2.9rem); font-weight:380; }
h3 { font-size:1.35rem; font-weight:450; }
h1 em, h2 em { font-style:italic; color:var(--clay); font-weight:350; }
p { margin:0 0 1em; }
.muted { color:var(--mauve); }
.small { font-size:.9rem; }
.eyebrow { font-family:var(--sans); font-size:.74rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--clay); margin:0 0 14px; }
:root { --gutter:32px; --gutter-l:max(var(--gutter), env(safe-area-inset-left, 0px)); --gutter-r:max(var(--gutter), env(safe-area-inset-right, 0px)); }
/* Shared container. Only the inline gutter lives here; sections that are also .wrap set padding-block only,
   so a section's vertical padding can never wipe out the side gutter. */
.wrap { max-width:1160px; margin:0 auto; padding-inline:var(--gutter-l) var(--gutter-r); box-sizing:border-box; }
.wrap.mid { max-width:920px; }
.visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:-999px; top:8px; background:var(--plum); color:var(--linen); padding:8px 14px; border-radius:999px; font-weight:700; z-index:200; }
.skip:focus { left:8px; }

.concept { background:var(--night); color:var(--champagne); font-size:.8rem; letter-spacing:.04em; text-align:center; padding:7px 16px; margin:0; }
.concept strong { color:var(--gold); font-weight:700; }
.tag { display:inline-block; font-family:var(--sans); font-size:.66rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; padding:3px 10px; border-radius:999px; border:1px solid var(--hair-strong); color:var(--mauve); vertical-align:middle; white-space:nowrap; background:transparent; }
.tag.draft { border-style:dashed; border-color:var(--clay); color:var(--clay); }
.tag.on-dark { border-color:rgba(243,227,195,.5); color:var(--champagne); }

/* Header */
.site-header { display:flex; align-items:center; justify-content:space-between; gap:14px 28px; flex-wrap:wrap; padding:26px 0; }
.brand { display:inline-flex; text-decoration:none; }
.brand img { height:40px; width:auto; display:block; }
.site-nav ul { list-style:none; display:flex; flex-wrap:wrap; gap:6px 26px; margin:0; padding:0; }
.site-nav a { color:var(--espresso); text-decoration:none; font-size:.92rem; font-weight:600; letter-spacing:.02em; padding:6px 0; border-bottom:1px solid transparent; }
.site-nav a:hover { border-bottom-color:var(--hair-strong); }
.site-nav a[aria-current="page"] { border-bottom-color:var(--clay); }
.on-dark .site-nav a { color:var(--linen); }
.on-dark .site-nav a:hover { border-bottom-color:rgba(251,246,239,.5); }
.on-dark .site-nav a[aria-current="page"] { border-bottom-color:var(--gold); }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; font:inherit; font-size:.98rem; font-weight:700; letter-spacing:.02em; text-decoration:none; cursor:pointer;
  min-height:52px; padding:14px 30px; border-radius:999px; border:1px solid var(--plum); background:var(--plum); color:var(--linen); transition:background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.btn:hover { background:var(--night); transform:translateY(-1px); }
.btn.light { background:var(--champagne); border-color:var(--champagne); color:var(--espresso); }
.btn.light:hover { background:var(--linen); }
.btn.outline { background:transparent; color:var(--plum); }
.btn.outline:hover { background:var(--oat); }
.btn.outline-light { background:transparent; color:var(--linen); border-color:rgba(251,246,239,.6); }
.btn.outline-light:hover { background:rgba(251,246,239,.1); }
.btn.small { min-height:42px; padding:9px 20px; font-size:.9rem; }
.btn.block { width:100%; }
.link-arrow { font-weight:700; text-decoration:none; color:var(--plum); border-bottom:1px solid var(--hair-strong); padding-bottom:2px; }
.link-arrow::after { content:" \2192"; }
.link-btn { background:none; border:0; padding:4px 2px; font:inherit; font-weight:600; color:var(--clay); text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.link-btn[disabled] { color:var(--mauve); cursor:default; text-decoration:none; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; }

/* Surfaces */
.card { background:var(--white); border:1px solid var(--hair); border-radius:var(--r); padding:28px; }
.panel { background:var(--white); border:1px solid var(--hair); border-radius:var(--r); padding:32px; margin-bottom:22px; }
.panel > h2 { font-size:1.7rem; }
.note { background:var(--oat); border-radius:var(--r-sm); padding:14px 18px; font-size:.94rem; }
.note.warn { background:var(--blush); }
.rule { border:0; border-top:1px solid var(--hair); margin:28px 0; }

/* Forms */
label.h, legend.h { display:block; font-weight:700; font-size:.92rem; letter-spacing:.02em; margin-bottom:10px; padding:0; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
.field { margin-bottom:26px; }
.hint { color:var(--mauve); font-size:.88rem; margin:8px 0 0; }
.err { color:var(--error); font-size:.9rem; font-weight:600; margin-top:6px; min-height:1.3em; }
.warn-text { color:var(--clay); font-size:.9rem; margin-top:4px; }
input[type=text], input[type=email], input[type=tel], input[type=time], select {
  font:inherit; color:var(--espresso); background:var(--linen); border:1px solid var(--hair-strong); border-radius:14px; padding:12px 16px; min-height:52px; max-width:100%; transition:border-color .3s; }
input:hover, select:hover { border-color:var(--mauve); }
input:focus-visible, select:focus-visible { border-color:var(--plum); }
input[aria-invalid="true"] { border-color:var(--error); }
input[type=time] { font-family:var(--serif); font-size:2.2rem; font-weight:380; padding:4px 16px; }
.w-full { width:100%; }
.w-md { width:100%; max-width:400px; }
.check { display:flex; gap:14px; align-items:flex-start; cursor:pointer; }
.check input { width:20px; height:20px; margin:4px 0 0; accent-color:var(--plum); flex:none; }

.seg { display:inline-flex; border:1px solid var(--hair-strong); border-radius:999px; padding:4px; gap:2px; }
.seg input, .chips input, .switch input, .tone input { position:absolute; opacity:0; width:1px; height:1px; }
.seg label { padding:9px 20px; border-radius:999px; cursor:pointer; font-weight:600; min-height:44px; display:flex; align-items:center; transition:background .3s; }
.seg input:checked + label { background:var(--plum); color:var(--linen); }
.seg input:focus-visible + label { outline:2px solid var(--plum); outline-offset:2px; }
.chips { display:grid; grid-template-columns:repeat(7, minmax(0, 60px)); gap:8px; }
.chips label { display:flex; align-items:center; justify-content:center; min-height:50px; border-radius:999px; border:1px solid var(--hair-strong); cursor:pointer; font-weight:600; font-size:.9rem; transition:background .3s, color .3s; }
.chips input:checked + label { background:var(--plum); border-color:var(--plum); color:var(--linen); }
.chips input:focus-visible + label { outline:2px solid var(--plum); outline-offset:3px; }

.switch { display:inline-flex; align-items:center; gap:14px; cursor:pointer; font-weight:600; min-height:48px; }
.track { width:54px; height:30px; border-radius:15px; background:var(--hair-strong); position:relative; transition:background .4s var(--ease); flex:none; }
.track::after { content:""; position:absolute; left:3px; top:3px; width:24px; height:24px; border-radius:50%; background:var(--white); transition:left .4s var(--ease); }
.switch input:checked + .track { background:var(--sage); }
.switch input:checked + .track::after { left:27px; }
.switch input:focus-visible + .track { outline:2px solid var(--plum); outline-offset:3px; }

/* Tone cards */
.tones { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:14px; }
.tone label { display:block; height:100%; cursor:pointer; border:1px solid var(--hair); border-radius:var(--r); padding:20px; background:var(--linen); transition:border-color .3s, background .3s; }
.tone input:checked + label { border-color:var(--plum); background:var(--white); box-shadow:inset 0 0 0 1px var(--plum); }
.tone input:focus-visible + label { outline:2px solid var(--plum); outline-offset:3px; }
.tone .t-letter { font-family:var(--serif); font-style:italic; color:var(--clay); font-size:1.1rem; margin-right:6px; }
.tone .t-name { font-family:var(--serif); font-size:1.25rem; font-weight:450; display:block; }
.tone q { display:block; font-family:var(--serif); font-style:italic; font-size:1rem; line-height:1.5; color:var(--mauve); margin-top:10px; quotes:"\201C" "\201D"; }

/* Dawn surfaces */
.dawn { background:var(--dawn); color:var(--linen); position:relative; isolation:isolate; }
.dawn::after { content:""; position:absolute; inset:0; background-image:var(--grain); opacity:.12; mix-blend-mode:overlay; pointer-events:none; z-index:-1; }
.dusk { background:radial-gradient(90% 70% at 100% 115%, rgba(240,179,126,.35), transparent 70%), linear-gradient(165deg, #1F1424 0%, #3A1F3D 55%, #5E2A3A 100%); color:var(--linen); position:relative; isolation:isolate; }
.dusk::after { content:""; position:absolute; inset:0; background-image:var(--grain); opacity:.1; mix-blend-mode:overlay; pointer-events:none; z-index:-1; border-radius:inherit; }
.footer { background:var(--night); color:var(--champagne); padding:56px 0 64px; font-size:.92rem; }
.footer img { height:32px; }
.footer a { color:var(--gold); }

/* Restrained motion */
@keyframes rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.reveal { animation:rise 1.1s var(--ease) both; }
.reveal.d2 { animation-delay:.15s; } .reveal.d3 { animation-delay:.3s; }

@media (max-width:640px) {
  body { font-size:1rem; }
  :root { --gutter:20px; }
  .site-header { padding:16px 0; }
  .brand img { height:32px; }
  .site-nav { width:100%; }
  .site-nav ul { gap:0 20px; justify-content:flex-start; flex-wrap:wrap; }
  .site-nav a { font-size:.9rem; white-space:nowrap; display:inline-block; padding:11px 0; }
  .panel { padding:22px 18px; }
  .chips { grid-template-columns:repeat(7, minmax(0, 1fr)); gap:4px; }
  .chips label { font-size:.8rem; min-height:44px; }
  .btn { padding:13px 24px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }

/* ---------- Dawni additions ---------- */
.brand img { height:44px; }
.footer img { height:36px; }
/* Wren mascot slots. Filled by wren.js from the single pose map (WREN_POSES).
   No asset yet = dashed placeholder circle, labelled with the pose name. */
.wren { display:inline-grid; place-items:center; width:var(--wren-size, 120px); aspect-ratio:1; flex:none; position:relative; vertical-align:middle; }
.wren > img { width:100%; height:100%; display:block; object-fit:contain; }
.wren-ph { width:100%; height:100%; border-radius:50%; border:2px dashed currentColor; display:grid; place-items:center; text-align:center;
  font:700 .62rem/1.25 var(--sans); letter-spacing:.06em; text-transform:lowercase; padding:10%; opacity:.85; color:var(--clay); background:rgba(243,227,195,.18); }
.on-dark .wren-ph, .wren.on-dark .wren-ph { color:var(--champagne); background:rgba(31,20,36,.25); }
.wren[data-small] .wren-ph { font-size:.5rem; padding:4%; border-width:1.5px; letter-spacing:0; }
/* The morning chirp (MASCOT.md): 1.2 s, once, off for reduced motion. Applied to the whole image. */
@keyframes chirp { 0% { transform:none; } 20% { transform:rotate(-4deg) translateY(-2px); } 54% { transform:rotate(8deg) scale(1.03); } 100% { transform:none; } }
.wren.chirp > * { animation:chirp 1.2s cubic-bezier(.2,.7,.2,1) .4s 1 both; transform-origin:50% 80%; }
@keyframes bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
.wren.bob > * { animation:bob 1.6s var(--ease) infinite; }
.wren-mask { width:100%; height:100%; display:block; background:currentColor; -webkit-mask-size:contain; mask-size:contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; }
.wren > svg { width:118%; height:118%; margin:-9%; display:block; overflow:visible; }

/* ---------- Mobile edge safety (all pages) ---------- */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { overflow-wrap:break-word; }
img, svg, video, canvas, iframe { max-width:100%; }
@media (max-width:380px) {
  .site-nav ul { gap:0 16px; }
  .site-nav a { font-size:.86rem; }
}
