/* Inna Schorr: site styles (built from prototype D) */

/* Self-hosted fonts (SIL Open Font License; licences in /assets/fonts/). No requests to Google. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #eef0f3;
  --surface: #ffffff;
  --ink: #1e2833;
  --slate: #2f3d4c;
  --slate-deep: #26323f;
  --muted: #5f6b78;
  --line: #d6dbe1;
  --soft: #b9cadb;
  --thread: #8fa5bb;
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: 104px;   /* room on the left for the line */
  --thread-x: 36px;  /* where the line runs inside that room */
  --text: 1.1875rem; /* one size for all main text: 19px at default browser size */
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text)/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; padding-left: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.contact :focus-visible, footer :focus-visible { outline-color: #fff; }
.contact .card :focus-visible { outline-color: var(--slate); }
em { font-style: italic; color: var(--slate); }

/* Header: the name lines up with the content column */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(238,240,243,.97); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand b { font: 500 19px/1 var(--serif); letter-spacing: .01em; }
.brand small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; font-size: 15px; color: var(--muted); }
nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--slate); color: #fff; text-decoration: none; font: 500 15px/1 var(--sans); border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--slate-deep); }
.btn.ghost { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); }
.btn.ghost:hover { background: rgba(47,61,76,.06); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 500 14px var(--sans); color: var(--ink); }

/* The line */
main { position: relative; }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.thread path { fill: none; stroke: var(--thread); stroke-linecap: round; }
.thread .base { stroke-width: 1.1; opacity: .38; }
.thread .live { stroke-width: 1.7; }
.node { position: absolute; left: var(--thread-x); width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px var(--thread); z-index: 3; transition: background .5s, box-shadow .5s; }
.alt .node { background: var(--surface); }
.contact .node { background: var(--slate); }
.node.reached { background: var(--thread); box-shadow: 0 0 0 1.5px var(--thread), 0 0 0 6px rgba(143,165,187,.18); }

/* Hero */
.hero { padding: 48px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero .wrap > *, .two-col > *, .contact-grid > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; min-height: 20px; }
h1 { font: 300 clamp(44px, 6vw, 76px)/1.02 var(--serif); margin: 0 0 12px; letter-spacing: -.01em; }
.subtitle { font: 300 clamp(20px, 2.2vw, 26px)/1.3 var(--serif); color: var(--slate); margin: 0 0 28px; font-style: italic; }
.lead { font-size: var(--text); max-width: 34em; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.portrait { justify-self: center; width: min(380px, 100%); }
.portrait img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; width: 100%; height: auto; }

/* Sections */
section.block { padding: 104px 0; }
section.alt { background: var(--surface); }
.chapter { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; min-height: 24px; }
.chapter .t { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h2 { font: 300 clamp(32px, 4vw, 48px)/1.12 var(--serif); margin: 0 0 28px; letter-spacing: -.01em; max-width: 18em; }
h3 { font: 500 19px/1.3 var(--serif); margin: 0 0 10px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.prose p { margin: 0 0 18px; max-width: 36em; }
.aside-note { font: italic 300 21px/1.45 var(--serif); color: var(--slate); border-left: 2px solid var(--soft); padding-left: 22px; margin: 0 0 32px; max-width: 30em; }
/* Cards sit on grey inside white sections */
.alt .note, .alt .fact { background: var(--bg); border-color: transparent; }

.notes { display: grid; gap: 16px; }
.note { background: var(--surface); border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--line); }
.note p { margin: 0; color: var(--muted); font-size: 16px; }

.creds { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.creds li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.creds b { font-weight: 500; font-size: 14px; color: var(--muted); }
.creds small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.fact svg { width: 26px; height: 26px; color: var(--slate); margin-bottom: 14px; }
.fact dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact dd { margin: 0; font: 400 20px/1.35 var(--serif); }
.fact dd small { display: block; font: 15px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
.fact.wide { grid-column: span 2; }

/* Contact */
.contact { background: var(--slate); color: #fff; padding: 112px 0; }
.contact em { color: var(--soft); }
.contact .chapter .t { color: var(--soft); }
.contact h2 { color: #fff; }
.contact .lead { color: #dfe6ee; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 8px 0 0; display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.steps li > span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: italic 300 22px var(--serif); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.steps h3 { color: #fff; margin: 4px 0 4px; }
.steps p { margin: 0; color: #c9d3de; font-size: 16px; }
.card { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 30px; }
.card h3 { margin-bottom: 4px; }
.card .meta { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
form label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
form .field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea { width: 100%; font: 16px var(--sans); padding: 11px 13px; border: 1px solid #868f99; border-radius: 10px; background: #fbfbfc; color: var(--ink); }
input[aria-invalid="true"] { border-color: #a1332b; box-shadow: inset 0 0 0 1px #a1332b; }
.req { font-weight: 400; color: var(--muted); }
.error { margin: 6px 0 0; font-size: .875rem; color: #a1332b; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 14px; min-height: 65px; }
textarea { min-height: 92px; resize: vertical; }
.help { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.form-note { font-size: .875rem; color: var(--muted); margin: 0 0 18px; }
.form-note a { color: var(--slate); }
.form-msg { font-size: 14px; color: var(--slate); margin-top: 12px; min-height: 1em; }
.direct { margin-top: 32px; color: #dfe6ee; font-size: 16px; }
.direct a { color: #fff; }
.crisis { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font-size: .875rem; color: #c9d3de; max-width: 52em; }
.crisis a { color: #fff; }

footer { background: var(--slate-deep); color: #aab6c3; font-size: 14px; padding: 32px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer a { color: #dfe6ee; }

@media (max-width: 1040px) {
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  nav a { display: block; padding: 12px 0; font-size: 17px; color: var(--ink); }
  .menu-toggle { display: inline-block; }
  .site-header .btn { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 900px) {
  :root { --gutter: 44px; --thread-x: 14px; }
  .hero { padding: 32px 0 80px; }
  .hero .wrap, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { order: -1; width: min(300px, 86%); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact.wide-two { grid-column: span 2; }  /* fee card goes full width so two-column rows have no gaps */
  section.block, .contact { padding: 80px 0; }
}
@media (max-width: 560px) {
  :root { --text: 1.0625rem; }
  .brand small { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact.wide, .fact.wide-two { grid-column: auto; }
  .creds li { grid-template-columns: 1fr; gap: 4px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 24px 20px; }
}

/* Email card (shown while the contact form is switched off) */
.email-big { font: 400 24px/1.3 var(--serif); margin: 4px 0 14px; overflow-wrap: anywhere; }
.email-big a { color: var(--slate); }
.email-card .help { margin: 0 0 18px; }
.email-card .btn { margin: 0 0 18px; }
.email-card .form-note { margin: 0; }
@media (max-width: 560px) { .email-big { font-size: 20px; white-space: nowrap; overflow-wrap: normal; } }

/* Header actions (was an inline style in the prototype) */
.header-actions { display: flex; gap: 8px; align-items: center; }

/* Form states */
form button[disabled] { opacity: .6; cursor: progress; }
.form-msg.ok { color: #24603f; }
.form-msg.fail { color: #a1332b; }

/* Legal pages (privacy notice) */
.legal { padding: 56px 0 96px; }
.legal .wrap { padding-left: var(--gutter); }
.legal article { max-width: 44em; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 14px; }
.legal p, .legal li { max-width: 40em; }
.legal ul { padding-left: 1.2em; }
.legal .summary { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; border: 1px solid var(--line); margin: 0 0 12px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 8px; font-size: .95em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 500; color: var(--muted); font-size: 14px; }
.todo { background: #fff3d6; color: #6b4600; border-radius: 4px; padding: 1px 6px; font-size: .9em; }
.back { display: inline-block; margin-top: 40px; color: var(--slate); }
