/* I Am Jane Doe — shared styles
   Poppins is self-hosted (SIL Open Font License 1.1). Weight ladder: 300 / 400 / 600 / 700. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/poppins-300-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/poppins-300-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: "Poppins", system-ui, sans-serif;
  --rose: #9e5a67;
  --rose-line: #c48b95;
  --rose-soft: #d4a5ad;
  --rose-wash: #f8eff0;
  --rose-select: #f0dde0;
  --ink: #343434;
  --gray-light: #dfdfdf;
  --lavender: #8d7ab7;
  --white: #FFFFFF;
  --radius-card: 18px;
  --radius-pill: 9999px;
  --press: 0.95;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.47 var(--font); letter-spacing: -0.374px;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--rose-select); }
*:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; border-radius: 5px; }
input, textarea, button, select { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
main { flex: 1; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; height: 44px; background: var(--ink); display: flex; align-items: center; }
.site-header .inner { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .brand { color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: -0.224px; white-space: nowrap; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--white); font-size: 12px; letter-spacing: -0.12px; white-space: nowrap; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Layout ---------- */
.section { padding: clamp(64px, 12vw, 112px) 20px; }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark a { color: var(--white); text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.wrap.narrow { max-width: 720px; gap: 24px; }
.h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; letter-spacing: -0.374px; }
.lead { font-weight: 300; font-size: clamp(19px, 4.6vw, 24px); line-height: 1.5; letter-spacing: 0; }
.caption { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(80px, 16vw, 160px) 20px clamp(64px, 12vw, 128px); text-align: center; }
.hero .inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { font-size: clamp(44px, 11vw, 72px); line-height: 1.07; letter-spacing: -0.28px; text-wrap: balance; }
.rule { display: block; width: 48px; height: 2px; background: var(--rose-line); }
.hero .actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  border: none; cursor: pointer; text-decoration: none; border-radius: var(--radius-pill);
  padding: 14px 28px; font-size: 18px; font-weight: 300; line-height: 1; letter-spacing: 0;
  background: var(--rose); color: var(--white);
  transition: transform 120ms var(--ease);
}
.btn:hover { text-decoration: none; color: var(--white); }
.btn:active { transform: scale(var(--press)); }
.btn.secondary { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.btn.secondary:hover { color: var(--rose); }
.btn:disabled { background: var(--gray-light); color: var(--ink); cursor: not-allowed; transform: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--gray-light); border-radius: var(--radius-card); }
.steps .num { font-size: 14px; font-weight: 600; color: var(--rose); }
.steps .title { font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: -0.28px; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > .label, .field > legend { font-size: 17px; font-weight: 600; letter-spacing: -0.374px; padding: 0; }
.field .opt { font-weight: 400; }
.field legend { margin-bottom: 8px; }
.textarea { width: 100%; min-height: 280px; padding: 17px; border: 1px solid var(--gray-light); border-radius: var(--radius-card); background: var(--white); color: var(--ink); font-size: 17px; line-height: 1.47; letter-spacing: -0.374px; resize: vertical; }
.input { height: 48px; padding: 0 20px; border: 1px solid var(--gray-light); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: 17px; letter-spacing: -0.374px; width: 100%; }
.file-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; position: relative; }
.file-pick .pick { display: inline-flex; align-items: center; height: 40px; padding: 0 17px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: 14px; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick:focus-within .pick { outline: 2px solid var(--lavender); outline-offset: 2px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--gray-light); border-radius: var(--radius-pill); font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; cursor: pointer; transition: transform 120ms var(--ease); }
.check-chip input:checked + span { border-color: var(--rose); background: var(--rose-wash); box-shadow: inset 0 0 0 1px var(--rose); }
.check-chip input:focus-visible + span { outline: 2px solid var(--lavender); outline-offset: 2px; }
.check-chip span:active { transform: scale(var(--press)); }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--gray-light); border-radius: var(--radius-card); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--rose); background: var(--rose-wash); box-shadow: inset 0 0 0 1px var(--rose); }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--rose); }
.choice strong { display: block; font-weight: 600; }
.choices { display: flex; flex-direction: column; gap: 12px; }
.thanks { padding: 48px 24px; border: 1px solid var(--rose-soft); background: var(--rose-wash); border-radius: var(--radius-card); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.thanks .big { font-weight: 600; font-size: clamp(26px, 6vw, 34px); line-height: 1.24; letter-spacing: -0.374px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Privacy list ---------- */
.promise { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.promise li { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; border-top: 1px solid var(--rose-soft); }
.promise .t { font-size: 21px; font-weight: 600; line-height: 1.19; }

/* ---------- Story library ---------- */
.lib-head { padding: clamp(56px, 10vw, 96px) 20px 0; }
.care { padding: 17px 20px; border-radius: var(--radius-card); background: var(--rose-wash); border: 1px solid var(--rose-soft); font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; }
.toolbar { display: flex; flex-direction: column; gap: 17px; }
.search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius-pill); }
.search:focus-within { outline: 2px solid var(--lavender); outline-offset: 2px; }
.search svg { flex: none; width: 16px; height: 16px; color: var(--ink); opacity: 0.6; }
.search input { border: none; outline: none; background: transparent; width: 100%; color: var(--ink); font-size: 17px; letter-spacing: -0.374px; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--ink); border: 1px solid var(--gray-light); border-radius: var(--radius-pill); padding: 10px 16px; cursor: pointer; font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; transition: transform 120ms var(--ease); }
.chip:active { transform: scale(var(--press)); }
.chip[aria-pressed="true"] { border-color: var(--rose); background: var(--rose-wash); box-shadow: inset 0 0 0 1px var(--rose); }
.chip .n { opacity: 0.7; }
.result-line { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.linkish { background: none; border: none; padding: 0; color: var(--rose); cursor: pointer; font: inherit; text-decoration: underline; }
.story-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.story { padding: 24px; border: 1px solid var(--gray-light); border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 64px; }
.story:target, .story.highlight { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.story h3 { font-size: 21px; line-height: 1.19; letter-spacing: -0.28px; }
.story h3 a { color: var(--ink); }
.story .meta { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.tag { display: inline-flex; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--rose-wash); color: var(--rose); font-size: 12px; line-height: 1.6; letter-spacing: -0.12px; }
.note { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; font-style: italic; }
.story .body { display: flex; flex-direction: column; gap: 1em; }
.story .actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.read-btn { background: none; border: none; padding: 0; color: var(--rose); cursor: pointer; font: 600 15px/1.4 var(--font); letter-spacing: -0.224px; }
.read-btn:hover { text-decoration: underline; }
mark { background: var(--rose-select); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { padding: 48px 24px; border: 1px dashed var(--rose-soft); border-radius: var(--radius-card); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty .big { font-size: 21px; font-weight: 600; line-height: 1.19; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 20px 48px; }
.site-footer .wrap { gap: 48px; }
.helplines { display: flex; flex-direction: column; font-size: 17px; line-height: 2.1; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--gray-light); font-size: 14px; line-height: 1.43; }
.foot-row .links { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 480px) {
  .site-header nav { gap: 14px; }
  .site-header .brand { font-size: 13px; }
  .hero .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip, .check-chip span { transition: none; }
}
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Quick exit ---------- */
.quick-exit {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-pill); background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 600; letter-spacing: -0.224px; text-decoration: none;
  box-shadow: 0 0 0 3px var(--white);
}
.quick-exit:hover { color: var(--white); text-decoration: none; background: #000; }
.quick-exit svg { width: 14px; height: 14px; }
.site-footer { padding-bottom: 96px; }

/* ---------- Who reads ---------- */
.who-card { padding: clamp(28px, 6vw, 48px); border-radius: var(--radius-card); background: var(--rose-wash); border: 1px solid var(--rose-soft); }

/* ---------- Writing prompts ---------- */
.prompts { padding: 20px 24px; border-radius: var(--radius-card); border: 1px solid var(--gray-light); display: flex; flex-direction: column; gap: 6px; }
.prompts ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.approve { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.approve input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--rose); }
.approve input:disabled + span { opacity: 0.75; }
.approve .caption { display: block; }

/* ---------- Help page ---------- */
.help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.help-actions .btn { font-size: 16px; padding: 12px 22px; }
.steps-1col { grid-template-columns: 1fr; }
