/* Dr. Frances Robbins: site styles. Palette and fonts from copy/brand-kit.md */

@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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 {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #efebe3;
  --text: #1e2a2b;
  --muted: #56625f;
  --accent: #1f5c55;
  --accent-dark: #174640;
  --accent-soft: #e3eeeb;
  --brass: #c9a15b;
  --line: #d9d3c7;
  --field: #8a918c;
  --dark: #1e2a2b;
  --dark-text: #f4f1ea;
  --dark-muted: #c5ccc8;
  --dark-accent: #8fcfc4;
  --error: #a8322d;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 10px;
  --radius-btn: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow .turn { width: 22px; height: 22px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-btn); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; font-family: var(--sans); transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-dark); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav-toggle { display: none; }
@media (max-width: 420px) { .brand-name small { display: none; } .brand-name { font-size: 1.1rem; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: 8px; }
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.site-nav .btn { margin-left: .5rem; min-height: 44px; padding: 8px 18px; color: #fff; }
.site-nav .btn:hover { color: #fff; background: var(--accent-dark); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--radius-btn); background: var(--surface); color: var(--text); font: 600 .95rem var(--sans); cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: flex; min-height: 48px; padding: 0 .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { margin: 1rem 0 0; border-radius: var(--radius-btn); justify-content: center; border-bottom: 0; }
  .no-js .site-nav { display: block; position: static; padding: 0; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-photo { position: relative; justify-self: end; width: min(100%, 420px); }
.hero-photo img { border-radius: var(--radius); width: 100%; background: var(--surface-2); box-shadow: 0 18px 40px -24px rgba(30, 42, 43, .45); }
.hero-photo::before { content: ""; position: absolute; left: -14px; top: 14px; bottom: 56px; width: 4px; background: var(--brass); border-radius: 2px; }
.hero-photo figcaption { margin-top: 1rem; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.hero-photo figcaption strong { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; width: min(100%, 300px); }
  .hero-photo::before { display: none; }
}

/* Trust line */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.25rem; }
.trust li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; color: var(--muted); line-height: 1.35; }
.trust li::before { content: ""; width: 8px; height: 8px; flex: none; border-top: 2px solid var(--brass); border-right: 2px solid var(--brass); }
.trust strong { color: var(--text); font-weight: 600; }

/* Sections */
.section { padding: var(--section) 0; }
.section--tint { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 30px; display: flex; flex-direction: column; position: relative; }
.card::before { content: ""; position: absolute; top: -1px; left: 28px; width: 56px; height: 4px; background: var(--brass); border-radius: 0 0 3px 3px; }
.card-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 1.25rem; }
.card h3 { margin-bottom: .35em; }
.card .for { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.card ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.card li { padding: .45rem 0 .45rem 1.4rem; border-top: 1px solid var(--line); position: relative; font-size: .98rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 7px; height: 7px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.card .card-link:hover { text-decoration: underline; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 640px; } }

/* How it works: the signature turn-arrow path */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 64px 28px 0 0; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--accent); background: var(--bg); padding-right: 12px; z-index: 1; line-height: 32px; }
.step::after { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--brass); }
.step:last-child::after { right: auto; width: 0; }
.step .turn-end { position: absolute; top: 4px; right: 8px; width: 24px; height: 24px; color: var(--brass); }
.step:last-child .turn-end { display: none; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 56px; }
  .step::before { top: 0; left: 0; background: var(--bg); padding: 0; width: 36px; text-align: left; }
  .step::after { top: 36px; bottom: 6px; left: 12px; right: auto; width: 2px; height: auto; }
  .step:last-child::after { display: none; }
  .step .turn-end { display: none; }
}

/* Featured project */
.feature { background: var(--accent); color: #fff; border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; position: relative; overflow: hidden; }
.feature .eyebrow { color: #d6ebe6; }
.feature h2 { color: #fff; margin-bottom: .4em; }
.feature p { color: #e6f1ee; font-size: 1.08rem; max-width: 40rem; }
.feature p:last-child { margin-bottom: 0; }
.feature-badge { width: clamp(120px, 16vw, 180px); aspect-ratio: 1; border: 2px solid var(--brass); border-radius: 50%; display: grid; place-content: center; text-align: center; font-family: var(--serif); line-height: 1.1; }
.feature-badge span { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
.feature-badge small { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #d6ebe6; margin-top: .4rem; }
.feature a { color: #fff; }
.feature a:focus-visible, .feature .btn:focus-visible { outline-color: #fff; }
.feature .btn { background: #fff; color: var(--accent); border-color: #fff; margin-top: .5rem; }
.feature .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-badge { width: 148px; }
  .feature-badge span { font-size: 1.45rem; }
}

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-photo { position: sticky; top: 104px; }
.about-photo img { border-radius: var(--radius); }
.about-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: .75rem; }
.about-body h2 { margin-bottom: .6em; }
.about-body > p { font-size: 1.08rem; }
.cred { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--accent); border-left: 3px solid var(--brass); padding-left: 1rem; margin: 1.75rem 0; }
.roles { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; }
.roles li { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.roles li:last-child { border-bottom: 1px solid var(--line); }
.roles .org { font-size: .85rem; color: var(--muted); }
.roles .role { font-weight: 600; }
.about-body h3 { margin-top: 2.25rem; font-size: 1.2rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 340px; }
}

/* Resources */
.resources { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.download { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
.download img { border-radius: 6px; border: 1px solid var(--line); }
.download h3 { font-size: 1.25rem; }
.download p { color: var(--muted); font-size: .97rem; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-top: 1px solid var(--line); }
.article-list li:last-child { border-bottom: 1px solid var(--line); }
.article-list a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 18px 0; text-decoration: none; color: var(--text); min-height: 44px; }
.article-list a:hover .t { color: var(--accent); text-decoration: underline; }
.article-list .t { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.article-list .m { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: .25rem; font-weight: 400; }
.article-list svg { width: 20px; height: 20px; color: var(--accent); }
.more { margin-top: 1.5rem; }
@media (max-width: 900px) { .resources { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .download { grid-template-columns: 1fr; } .download img { max-width: 140px; } }

/* Testimonials (hidden until real quotes exist) */
.testimonials[hidden] { display: none; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 20px; color: var(--muted); max-width: 44rem; }
.faq .answer p:last-child { margin: 0; }

/* Contact (dark band) */
.contact { background: var(--dark); color: var(--dark-text); }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--dark-muted); }
.contact a { color: var(--dark-accent); }
.contact a:hover { color: #fff; }
.contact :focus-visible { outline-color: var(--dark-accent); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-intro p { color: var(--dark-muted); font-size: 1.08rem; }
.contact-details { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-details li { padding: 16px 0; border-top: 1px solid rgba(244, 241, 234, .18); }
.contact-details .label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: .2rem; }
.contact-details a { font-size: 1.15rem; font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.contact-details a:hover { text-decoration: underline; }

.form { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form a { color: var(--accent); }
.form :focus-visible { outline-color: var(--accent); }
.form-row { margin-bottom: 1.15rem; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form label .req { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--field); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #6b7572; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { color: var(--error); font-size: .88rem; margin-top: .35rem; font-weight: 600; }
.field-error:empty { display: none; }
.notice { font-size: .88rem; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; margin: 0 0 1.25rem; }
.notice strong { color: var(--text); }
.form-alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 1.25rem; font-weight: 500; }
.form-alert:empty { display: none; }
.form-alert.is-error { background: #fbeceb; color: #7d231f; border: 1px solid #e3b4b1; }
.form-alert.is-success { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #b7d4cd; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-foot p { margin: 0; font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { text-align: left; }
.form-done h3 { color: var(--accent); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row--2 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #162021; color: var(--dark-muted); padding: 40px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.site-footer a { color: var(--dark-text); display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--dark-accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer p { margin: 0; }

/* Inner pages: resources index, articles, privacy */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); max-width: 22ch; }
.page-head .lede { color: var(--muted); font-size: 1.15rem; max-width: 44rem; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 1.25rem; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.prose { max-width: 44rem; padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li p { margin: 0; }
.prose .article-list { padding-left: 0; }
.prose .article-list li { margin: 0; }
.article-meta { color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.article-end { margin-top: 3rem; padding: 28px; background: var(--surface-2); border-radius: var(--radius); }
.article-end h2 { margin-top: 0; font-size: 1.4rem; }
.article-end p { margin-bottom: 1rem; }

.topic { padding: clamp(40px, 5vw, 64px) 0 0; }
.topic:last-of-type { padding-bottom: var(--section); }
.topic h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: .6rem; }
.topic h2 .turn { width: 22px; height: 22px; color: var(--brass); flex: none; }
.resource-download { margin-top: clamp(32px, 4vw, 48px); }

/* Reveal on scroll (below the fold only; added by main.js) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .form, .hero-actions { display: none; }
  body { background: #fff; }
}
