/* Caroline Meek Cuozzi: one-page site, minimal version
   VOICE   calm, unhurried, expert; say less and set it well
   IDEA    a well-set title page and its index: one hanging label column, one text column
   PICTURE the headline itself, very large; two small portraits sit like author photos on a book flap
   COLOUR  paper throughout, ink text, tortoiseshell only on links and the one italic word
   TYPE    Newsreader does almost everything; Inter only for small caps labels and UI
   LAYOUT  no panels, cards or bands; hairlines and whitespace carry the structure */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-Italic-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens (from site-kit/tokens.css) ---------- */
:root {
  color-scheme: light;
  --paper: #F5F1EA; --ink: #2A2623; --ink-soft: #5B544D;
  --tortoise: #9A5A26; --olive: #6B6A4E; --rule: #D9D1C3;
  --field-rule: #8A8071; /* 3:1 non-text contrast for form controls on paper */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --opsz-display: 72; --opsz-text: 16;
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.06rem, 1.00rem + 0.30vw, 1.25rem);
  --step-1: clamp(1.30rem, 1.18rem + 0.55vw, 1.60rem);
  --step-2: clamp(1.65rem, 1.40rem + 1.10vw, 2.30rem);
  --step-3: clamp(2.10rem, 1.65rem + 2.10vw, 3.40rem);
  --hero: clamp(3rem, 1.4rem + 6.4vw, 7.25rem);
  --measure: 62ch; --radius: 4px;
  --section: clamp(5rem, 3.5rem + 7vw, 11rem);
  --gutter: max(6vw, 20px);
  --max: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font-serif); font-size: var(--step-0);
  font-variation-settings: "opsz" var(--opsz-text); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 {
  font-family: var(--font-serif); font-weight: 460; font-variation-settings: "opsz" var(--opsz-display);
  line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0;
}
p { margin: 0 0 1em; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tortoise); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--tortoise); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 100; font-family: var(--font-sans); font-size: .9rem; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

.eyebrow {
  font-family: var(--font-sans); font-size: var(--step--1); font-weight: 520;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin: 0 0 1.25rem; line-height: 1.4;
}
.measure { max-width: var(--measure); }
.small { font-family: var(--font-sans); font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.inline { display: flex; flex-wrap: wrap; gap: .25rem 0; }
.inline li:not(:last-child)::after { content: "·"; margin-inline: .6em; color: var(--rule); color: var(--olive); }

/* The one grid: a hanging label column and a text column */
.cols { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; min-height: 72px; padding-block: .75rem; }
.brand img { width: clamp(170px, 18vw, 210px); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; font-family: var(--font-sans); font-size: .9rem; font-weight: 450; }
.nav a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: .6rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--tortoise); color: var(--ink); }
@media (max-width: 560px) { .nav { gap: 0 1.25rem; font-size: .85rem; } .site-header .wrap { padding-block: .5rem; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) var(--section); }
.hero h1 { font-size: var(--hero); line-height: 1; letter-spacing: -0.025em; font-weight: 420; max-width: 12ch; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero h1 em { color: var(--tortoise); font-weight: 400; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 2.25rem 0 2.5rem; }
.portrait img { width: 100%; max-width: 260px; aspect-ratio: 800 / 1036; object-fit: cover; border-radius: var(--radius); }
.hero .portrait { margin-bottom: 2.5rem; }
@media (max-width: 899px) { .portrait img { max-width: min(60vw, 300px); } .hero .portrait { order: 2; margin: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.6rem;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 520; letter-spacing: .01em;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.quiet { font-family: var(--font-sans); font-size: .95rem; font-weight: 520; display: inline-block; padding-block: .7rem; }

/* ---------- Sections ---------- */
.section { padding-bottom: var(--section); }
.section > .cols { border-top: 1px solid var(--rule); padding-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.section h2 { font-size: var(--step-3); max-width: 22ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Services: a plain index */
.rows > div { display: grid; gap: .5rem 3rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .rows > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.rows dt { font-size: var(--step-1); line-height: 1.25; font-variation-settings: "opsz" 36; font-weight: 460; }
.rows dd { color: var(--ink-soft); }

/* What a trained ear catches */
.catches { margin-top: 2.5rem; max-width: var(--measure); }
.catches li { padding-block: 1rem; }
.catches li + li { border-top: 1px solid var(--rule); }
.catches strong { font-weight: 560; display: block; font-size: var(--step-1); line-height: 1.3; font-variation-settings: "opsz" 36; margin-bottom: .2rem; }

/* About */
.side .portrait { margin-bottom: 2.5rem; }

/* Experience */
.timeline li { display: grid; gap: .25rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.years { font-family: var(--font-sans); font-size: var(--step--1); color: var(--olive); white-space: nowrap; padding-top: .3rem; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: var(--step-1); line-height: 1.25; font-variation-settings: "opsz" 36; }
.org { margin: .25rem 0 .5rem; color: var(--ink-soft); font-style: italic; }
.desc { margin: 0; color: var(--ink-soft); max-width: var(--measure); font-size: .95em; }

.creds { display: grid; gap: 2rem 3rem; margin-block: 3.5rem 3rem; }
@media (min-width: 760px) { .creds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.creds h3 { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 520; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-bottom: 1rem; }
.creds li { margin-bottom: .75rem; line-height: 1.4; }
.creds li span { display: block; color: var(--ink-soft); font-size: .9em; }

/* Contact */
.contact-grid { display: grid; gap: 3rem clamp(2rem, 5vw, 5rem); margin-top: 1.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.field { margin-bottom: 1.75rem; }
.field label { display: block; font-family: var(--font-sans); font-size: var(--step--1); font-weight: 520; margin-bottom: .35rem; }
.opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: max(16px, 1em); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--field-rule); border-radius: 0; padding: .55rem 0; min-height: 44px;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select { appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232A2623' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .25rem center; padding-right: 1.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--tortoise); margin-bottom: -1px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.form-status { font-family: var(--font-sans); font-size: .95rem; min-height: 1.5em; }
.form-status.err { color: #8B2E1F; }
.form-done { font-size: var(--step-1); line-height: 1.4; padding-block: 1rem; }
.details p { margin-bottom: 1.5rem; }
.label { display: block; font-family: var(--font-sans); font-size: var(--step--1); font-weight: 520; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-bottom: .2rem; }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding-block: 2rem 3rem; border-top: 1px solid var(--rule); font-family: var(--font-sans); font-size: var(--step--1); color: var(--ink-soft); }
.site-footer p { margin: 0; flex: 1 1 18rem; }

/* Footer downloads (capability statements) */
.footer-docs { flex: 1 1 100%; padding-bottom: 1.25rem; margin-bottom: .25rem; border-bottom: 1px solid var(--rule); }
.footer-docs .label { display: block; margin: 0 0 .6rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.footer-docs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .5rem 1.5rem; }
.footer-docs a { color: var(--ink); font-weight: 520; }
.footer-docs a:hover { color: var(--tortoise); }
.footer-docs span { display: block; color: var(--ink-soft); font-size: .85em; }
