/* Seren · Find Support
   Linen paper, evergreen for "call", a clay star to steer by. Colours and type follow the Seren brand guide. */

@font-face{
  font-family:"Mulish"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("/assets/fonts/mulish.woff2") format("woff2");
}
@font-face{
  font-family:"Fraunces"; font-style:normal; font-weight:400 600; font-display:swap;
  src:url("/assets/fonts/fraunces.woff2") format("woff2");
}

:root{
  color-scheme:only light;
  /* Seren palette: Deep Forest, Evergreen, Moss, Sand, Clay, Linen */
  --paper:#F4EEE2; --surface:#FFFDF8; --surface-2:#EFE6D4;
  --ink:#202808; --ink-soft:#6B654C; --line:#E6DAC4; --line-strong:#D3C4A6;
  --evergreen:#33432B; --moss:#6A784D; --sand:#DEC59E; --clay:#C4866D; --cream:#F0E8D7;
  --primary:var(--evergreen); --primary-hover:#263320; --primary-ink:var(--cream); --primary-soft:#E4E8D8;

  /* Emergency red sits outside the brand palette on purpose, so 911 can never blend in. */
  --urgent:#C62828; --urgent-hover:#A91F1F; --urgent-soft:#FCEBE8; --urgent-line:#F0B9B2;

  /* soft tints for the tiles, all drawn from the palette: background / icon colour */
  --t-sand:#F1E3C8;  --t-sand-ink:#33432B;
  --t-clay:#F4DED3;  --t-clay-ink:#96523A;
  --t-moss:#E2E7D2;  --t-moss-ink:#4E5C36;
  --t-ever:#D9E0D2;  --t-ever-ink:#33432B;

  --shadow:0 1px 2px rgba(32,40,8,.05), 0 8px 24px -8px rgba(32,40,8,.12);
  --shadow-lift:0 2px 4px rgba(32,40,8,.06), 0 16px 32px -10px rgba(32,40,8,.18);
  --r-lg:20px; --r-md:14px;
  --display:"Fraunces", "Iowan Old Style", Georgia, serif;
  --body:"Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-top:16px; }
html,body{ margin:0; background:var(--paper); }
body{
  font-family:var(--body); color:var(--ink);
  font-size:1.0625rem; line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding-top:env(safe-area-inset-top,0px);
}
h1,h2,h3,p,ul{ margin:0; }
ul{ padding:0; list-style:none; }
a{ color:inherit; }
svg{ display:block; flex:0 0 auto; }
[hidden]{ display:none !important; }
:focus-visible{ outline:3px solid var(--primary); outline-offset:3px; border-radius:6px; }

.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip{
  position:absolute; left:12px; top:-60px; z-index:50; background:var(--ink); color:var(--paper);
  padding:10px 14px; border-radius:10px; font-weight:700; text-decoration:none;
}
.skip:focus{ top:12px; }

.wrap{ max-width:1000px; margin:0 auto; padding:0 20px 150px; }
.narrow{ max-width:620px; margin:0 auto; }

/* ---------- top bar ---------- */
.bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 0 14px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; min-width:0; border-radius:12px; }
.star{ display:block; flex:0 0 auto; fill:var(--clay); stroke:none; }
.brand .star{ width:30px; height:30px; }
.brand-txt{ min-width:0; }
.brand-txt b{ display:block; font-family:var(--display); font-weight:500; font-size:1.7rem; letter-spacing:-.02em; line-height:1; color:var(--evergreen); }
.brand-txt small{ display:block; color:var(--ink-soft); font-size:.8rem; line-height:1.3; margin-top:3px; }
.nav a{
  display:inline-block; white-space:nowrap; text-decoration:none; font-weight:600; font-size:.9rem;
  color:var(--ink); background:var(--surface); border:1px solid var(--line);
  padding:9px 14px; border-radius:999px; transition:border-color .15s;
}
.nav a:hover{ border-color:var(--primary); }
@media (max-width:420px){ .brand-txt small{ display:none; } }

/* ---------- hero ---------- */
.hero{ position:relative; padding:26px 0 30px; }
.hero h1{
  font-family:var(--display); font-weight:400; letter-spacing:-.015em;
  font-size:clamp(2rem, 6.4vw, 3.25rem); line-height:1.1; max-width:14ch; color:var(--evergreen); text-wrap:balance;
  position:relative;
}
.hero p{ position:relative; margin-top:14px; color:var(--ink-soft); font-size:1.12rem; max-width:40ch; }
.hero p b{ color:var(--ink); font-weight:700; }
.hero-art{ position:absolute; right:-20px; top:-10px; width:min(46vw, 330px); pointer-events:none; }
.hero-art svg{ width:100%; height:auto; }
.a-glow{ fill:var(--sand); opacity:.55; } .a-glow2{ fill:var(--sand); opacity:.35; } .a-hill{ fill:var(--t-ever); } .a-hill2{ fill:var(--t-moss); } .a-star{ fill:var(--clay); }
@media (max-width:640px){
  .hero{ padding:14px 0 24px; }
  .hero-art{ right:-30px; top:-6px; width:170px; opacity:.8; }
  .hero h1{ max-width:12ch; }
  .hero p{ max-width:30ch; font-size:1.05rem; }
}

/* ---------- questions and choices ---------- */
.section-q{ font-family:var(--body); font-weight:700; font-size:1.12rem; margin:0 0 14px; }

.choices{ display:grid; gap:12px; }
.tiles{ grid-template-columns:1fr; }
@media (min-width:700px){ .tiles{ grid-template-columns:1fr 1fr; gap:14px; } }

.choice{
  display:flex; align-items:center; gap:15px; height:100%; min-height:76px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:15px 16px; text-decoration:none; color:var(--ink);
  box-shadow:var(--shadow);
  transition:transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, border-color .18s;
}
.choice:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lift); border-color:var(--line-strong); }
.choice:active{ transform:scale(.99); }
.choice:focus-visible{ border-radius:var(--r-lg); }
.choice .ic{
  width:48px; height:48px; border-radius:16px; flex:0 0 auto; display:grid; place-items:center;
  background:var(--t, var(--primary-soft)); color:var(--ti, var(--primary));
}
.choice .ic svg{ width:25px; height:25px; }
.choice .txt{ flex:1 1 auto; min-width:0; }
.choice .txt b{ display:block; font-weight:700; font-size:1.06rem; line-height:1.3; }
.choice .txt span{ display:block; color:var(--ink-soft); font-size:.92rem; line-height:1.35; margin-top:2px; }
.choice .chev{ color:var(--line-strong); flex:0 0 auto; transition:transform .18s, color .18s; }
.choice .chev svg{ width:20px; height:20px; }
.choice:hover .chev{ transform:translateX(3px); color:var(--clay); }
.choice-urgent{ background:var(--urgent-soft); border-color:var(--urgent-line); }
.choice-urgent:hover{ border-color:var(--urgent); }
.choice-urgent .chev, .choice-urgent:hover .chev{ color:var(--urgent); }

.tint-rose,.tint-peach,.tint-berry{ --t:var(--t-clay); --ti:var(--t-clay-ink); }
.tint-butter,.tint-sand,.tint-plum{ --t:var(--t-sand); --ti:var(--t-sand-ink); }
.tint-sage,.tint-fern,.tint-lilac{ --t:var(--t-moss); --ti:var(--t-moss-ink); }
.tint-sky,.tint-mint,.tint-slate{ --t:var(--t-ever); --ti:var(--t-ever-ink); }

/* ---------- own words ---------- */
.typebox{ max-width:620px; margin:0 auto; }
.or{
  display:flex; align-items:center; gap:14px; color:var(--ink-soft);
  font-family:var(--body); font-size:.92rem; font-weight:600; margin:34px 0 14px;
}
.or::before,.or::after{ content:""; height:1px; background:var(--line-strong); flex:1; }
.typebox form{ display:grid; gap:10px; }
.typebox textarea{
  width:100%; resize:none; min-height:64px; font:inherit; color:var(--ink); line-height:1.45;
  background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--r-md); padding:14px 15px;
}
.typebox textarea::placeholder{ color:var(--ink-soft); }
.typebox textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 4px var(--primary-soft); }
.btn-primary{
  width:100%; border:none; cursor:pointer; font:inherit; font-weight:700;
  background:var(--primary); color:var(--primary-ink); border-radius:var(--r-md); padding:15px;
  transition:background .15s, opacity .15s;
}
.btn-primary:hover{ background:var(--primary-hover); }
.btn-primary:disabled{ opacity:.45; cursor:default; }
.hint{ display:flex; align-items:center; justify-content:center; gap:7px; color:var(--ink-soft); font-size:.86rem; }
.hint svg{ width:15px; height:15px; flex:none; }
.foryou-wait{ color:var(--ink-soft); }

.promises{ max-width:620px; margin:34px auto 0; display:grid; gap:10px; color:var(--ink-soft); font-size:.96rem; }
.promises li{ display:flex; gap:10px; align-items:flex-start; }
.promises .star{ width:16px; height:16px; margin-top:5px; }
.promises a{ color:var(--primary); font-weight:600; text-underline-offset:3px; }

/* ---------- inner pages ---------- */
.back{
  display:inline-flex; align-items:center; gap:6px; text-decoration:none;
  color:var(--ink-soft); font-size:.96rem; font-weight:600; padding:10px 12px 10px 4px; margin:2px 0 8px -4px; border-radius:10px;
}
.back svg{ width:18px; height:18px; }
.back:hover{ color:var(--ink); }

.lead{ margin:4px 0 20px; }
.lead h1{
  font-family:var(--display); font-weight:400; letter-spacing:-.012em;
  font-size:clamp(1.7rem, 5.4vw, 2.2rem); line-height:1.15; text-wrap:balance;
}
.lead p{ margin-top:9px; color:var(--ink-soft); font-size:1.06rem; }
.pill{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:14px;
  background:var(--t); color:var(--ti); font-weight:700; font-size:.88rem;
  padding:7px 13px 7px 10px; border-radius:999px;
}
.pill svg{ width:17px; height:17px; }

/* ---------- resource cards ---------- */
.cards{ display:grid; gap:14px; }
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:18px 18px 16px; box-shadow:var(--shadow); scroll-margin-top:16px;
}
.card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.card h2, .card h3{ font-family:var(--body); font-size:1.12rem; font-weight:700; line-height:1.3; }
.tag{
  flex:0 0 auto; font-size:.76rem; font-weight:700; letter-spacing:.01em; white-space:nowrap;
  color:var(--evergreen); background:var(--t-sand); padding:4px 10px; border-radius:999px; margin-top:1px;
}
.card .does{ color:var(--ink-soft); font-size:.98rem; margin-top:7px; }
.card .note{
  font-size:.92rem; margin-top:10px; padding:9px 12px; border-radius:10px;
  background:var(--surface-2); color:var(--ink);
}
.calls{ display:grid; gap:8px; margin-top:14px; }
.call{
  display:flex; align-items:center; gap:13px; text-decoration:none; min-height:58px;
  background:var(--primary); color:var(--primary-ink); border-radius:var(--r-md); padding:10px 16px;
  transition:background .15s, transform .1s;
}
.call:hover{ background:var(--primary-hover); }
.call:active{ transform:scale(.99); }
.call:focus-visible{ border-radius:var(--r-md); }
.call svg{ width:20px; height:20px; }
.call .cl{ min-width:0; }
.call b{ display:block; font-size:1.2rem; font-weight:700; letter-spacing:.01em; line-height:1.25; font-variant-numeric:tabular-nums; }
.call small{ display:block; font-size:.84rem; font-weight:500; opacity:.92; line-height:1.3; }

.more{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.chip{
  display:inline-flex; align-items:center; gap:7px; text-decoration:none; min-height:42px;
  font-size:.92rem; font-weight:600; color:var(--primary);
  background:transparent; border:1.5px solid var(--line-strong); border-radius:999px; padding:8px 14px;
  transition:background .15s, border-color .15s;
}
.chip:hover{ background:var(--primary-soft); border-color:var(--moss); }
.chip svg{ width:16px; height:16px; }
button.chip{ font-family:inherit; cursor:pointer; -webkit-appearance:none; appearance:none; }
.share-note{ font-size:.88rem; color:var(--ink-soft); margin-top:8px; }
[hidden]{ display:none !important; }
.where{ display:flex; gap:8px; align-items:flex-start; color:var(--ink-soft); font-size:.9rem; margin-top:12px; }
.where svg{ width:16px; height:16px; margin-top:3px; }

.card-urgent{ background:var(--urgent-soft); border-color:var(--urgent-line); }
.card-urgent .tag{ color:var(--urgent); background:transparent; border:1.5px solid var(--urgent-line); }
.card-urgent .does{ color:var(--ink); }
.card-urgent .call{ background:var(--urgent); color:#fff; }
.card-urgent .call:hover{ background:var(--urgent-hover); }

.after{ margin-top:26px; display:grid; gap:10px; }
.after p{ color:var(--ink-soft); font-size:.96rem; }
.ghost{
  display:flex; align-items:center; justify-content:center; text-decoration:none;
  background:var(--surface-2); border:1px solid var(--line); color:var(--ink);
  font-weight:700; font-size:1rem; border-radius:var(--r-md); padding:14px;
  transition:border-color .15s;
}
.ghost:hover{ border-color:var(--primary); }

/* ---------- every resource ---------- */
.filter{
  display:flex; align-items:center; gap:10px; background:var(--surface);
  border:1px solid var(--line-strong); border-radius:var(--r-md); padding:0 14px; color:var(--ink-soft);
}
.filter:focus-within{ border-color:var(--primary); box-shadow:0 0 0 4px var(--primary-soft); }
.filter svg{ width:19px; height:19px; }
.filter input{
  flex:1; min-width:0; border:none; background:none; font:inherit; color:var(--ink); padding:14px 0; outline:none;
  -webkit-appearance:none; appearance:none;
}
.filter input::placeholder{ color:var(--ink-soft); }
.jump{ display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 4px; }
.jump a{
  text-decoration:none; font-size:.88rem; font-weight:600; color:var(--ink);
  background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:7px 13px;
}
.jump a:hover{ border-color:var(--primary); }
.empty{ margin-top:18px; color:var(--ink-soft); }
.group{ margin-top:30px; scroll-margin-top:12px; }
.group > h2{ font-family:var(--display); font-weight:500; font-size:1.3rem; letter-spacing:-.01em; margin-bottom:12px; }

/* ---------- reading pages ---------- */
.prose > h2{ font-family:var(--display); font-weight:500; font-size:1.3rem; letter-spacing:-.01em; margin:30px 0 8px; }
.prose > p{ margin-top:10px; }
.prose > ul{ margin:10px 0 0; padding-left:1.15em; list-style:disc; display:grid; gap:7px; }
.prose > ul li::marker{ color:var(--line-strong); }
.prose a:not(.call):not(.chip):not(.back){ color:var(--primary); font-weight:600; text-underline-offset:3px; }
.prose .cards{ margin-top:18px; }

/* ---------- footer ---------- */
.foot{ max-width:620px; margin:48px auto 0; padding-top:22px; border-top:1px solid var(--line); text-align:center; color:var(--ink-soft); font-size:.86rem; }
.foot nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 20px; margin-bottom:12px; }
.foot nav a{ color:var(--ink); font-weight:600; font-size:.92rem; text-underline-offset:3px; padding:4px 0; }
.foot p + p{ margin-top:4px; }
.foot .star{ width:14px; height:14px; margin:0 auto 12px; }

/* ---------- fixed bar: 911 and leave site ---------- */
.er{
  position:fixed; left:0; right:0; bottom:0; z-index:35;
  background:color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -6px 24px rgba(32,40,8,.08);
}
.er-inner{ max-width:1000px; margin:0 auto; display:flex; align-items:center; gap:10px; }
.er p{ flex:1; min-width:0; font-size:.92rem; line-height:1.3; }
.er p b{ display:block; font-weight:700; }
.er p span{ display:block; color:var(--ink-soft); font-size:.82rem; }
.er a{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; min-height:46px;
  text-decoration:none; font-weight:700; font-size:.96rem; border-radius:12px; padding:10px 15px;
}
.er a svg{ width:17px; height:17px; }
.er-call{ background:var(--urgent); color:#fff; }
.er-call:hover{ background:var(--urgent-hover); }
.er-exit{ background:var(--surface-2); color:var(--ink); border:1px solid var(--line-strong); }
.er-exit:hover{ border-color:var(--ink-soft); }
@media (max-width:460px){ .er p span{ display:none; } .er a{ padding:10px 12px; } }
@media (max-width:350px){ .er-exit span{ display:none; } }

/* ---------- gentle motion ---------- */
@view-transition{ navigation:auto; }
@media (prefers-reduced-motion:no-preference){
  .view{ animation:rise .4s cubic-bezier(.2,.7,.3,1) both; }
  .page-home .tiles > li{ animation:rise .5s cubic-bezier(.2,.7,.3,1) both; }
  .page-home .tiles > li:nth-child(1){ animation-delay:.06s } .page-home .tiles > li:nth-child(2){ animation-delay:.10s }
  .page-home .tiles > li:nth-child(3){ animation-delay:.14s } .page-home .tiles > li:nth-child(4){ animation-delay:.18s }
  .page-home .tiles > li:nth-child(5){ animation-delay:.22s } .page-home .tiles > li:nth-child(6){ animation-delay:.26s }
  .page-home .tiles > li:nth-child(7){ animation-delay:.30s } .page-home .tiles > li:nth-child(8){ animation-delay:.34s }
  .page-home .tiles > li:nth-child(n+9){ animation-delay:.38s }
  .a-star, .a-glow, .a-glow2{ animation:sun 1.2s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes rise{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
@keyframes sun{ from{ opacity:0; transform:translateY(34px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } @view-transition{ navigation:none; } }

@media print{
  .er, .nav, .back, .after, .filter, .jump, .hero-art{ display:none !important; }
  .wrap{ padding-bottom:0; }
  .card{ box-shadow:none; break-inside:avoid; }
  .call{ background:none !important; color:#000 !important; border:1px solid #999; }
}
