/* Self-hosted so no visitor's browser contacts a third party. Charis SIL is licensed under the SIL OFL. */
@font-face { font-family: "Charis SIL"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/charis-sil-400.woff2") format("woff2"); }
@font-face { font-family: "Charis SIL"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/charis-sil-700.woff2") format("woff2"); }
@font-face { font-family: "Charis SIL"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/charis-sil-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Charis SIL"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/charis-sil-700-italic.woff2") format("woff2"); }

:root {
  --paper: #fcf8f5;
  --paper-2: #f5ebe8;
  --card: #fffdfc;
  --ink: #2b2326;
  --ink-2: #66595d;
  --rule: #e9dad8;
  --accent: #a23d63;
  --accent-ink: #ffffff;
  --blush: #f7e3ea;
  /* The sage is the green from Katy's resume (#91a67d). It is a fill color: text on it is dark, and text in green uses the deeper shade. */
  --sage: #91a67d;
  --sage-ink: #1f2a1c;
  --sage-deep: #566b45;
  --sage-deep-ink: #ffffff;
  --serif: "Charis SIL", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --display: var(--serif);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 1rem;
  --max: 72rem;
  --radius: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1e1719;
    --paper-2: #2a2024;
    --card: #2a2024;
    --ink: #f7ece9;
    --ink-2: #cdbcbc;
    --rule: #46363b;
    --accent: #f2a7c0;
    --accent-ink: #2b1119;
    --blush: #3b2931;
    --sage: #3b4b36;
    --sage-ink: #f4efe8;
    --sage-deep: #b9cfa4;
    --sage-deep-ink: #1c2a18;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 0.25rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-deep); text-decoration: none; line-height: 1.1; }
.brand:hover { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.nav a { text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.75rem); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.5; color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--ink-2); }

/* buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 0.975rem; padding: 0.8rem 1.6rem; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--sage-deep-ink); }
.btn.alt { background: transparent; color: var(--accent); }
.btn.alt:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* sections */
section { padding: 3.5rem 0; }
.hero { padding: 4rem 0 3.5rem; background: linear-gradient(180deg, var(--blush), var(--paper)); border-bottom: 1px solid var(--rule); }
.hero.slim { padding: 3rem 0 2.5rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; margin-bottom: 2rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }

/* outlet logos: they arrive in mixed shapes and colors, so each sits in the same white tile, in grayscale */
.outlets { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.logo-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-links a { display: grid; place-items: center; width: 8.5rem; height: 5rem; background: #fff; border: 2px solid var(--blush); border-radius: 1rem; }
.logo-links a:hover { border-color: var(--accent); }
.logo-links img { max-width: 7rem; max-height: 3.4rem; width: auto; height: auto; filter: grayscale(1); transition: filter 0.15s; }
.logo-links a:hover img { filter: none; }

/* stories */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: 0 6px 24px -14px rgba(162, 61, 99, 0.35); }
.card .meta { font-size: 0.82rem; color: var(--ink-2); margin: 0; }
.card h3 { font-size: 1.15rem; line-height: 1.3; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.card p { font-size: 0.95rem; margin: 0; }
.card .more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--blush); color: var(--accent); border-radius: 999px; padding: 0.3rem 0.85rem; }

/* about */
.about { display: grid; gap: 2rem; }
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 20rem; background: var(--blush); border-radius: 10rem 10rem var(--radius) var(--radius); box-shadow: 0 0 0 0.5rem var(--blush); overflow: hidden; margin: 0.5rem; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

/* freelance call-out */
.pitch { text-align: center; }
.pitch .lede { margin-left: auto; margin-right: auto; }
.inline-link { color: var(--accent); font-weight: 700; }
.inline-link:hover { color: var(--sage-deep); }

/* source band */
.band { background: var(--sage); color: var(--sage-ink); }
.band .kicker { color: inherit; opacity: 0.8; }
.band .lede { color: inherit; }
.band .btn { background: var(--sage-ink); border-color: var(--sage-ink); color: var(--sage); }
.band .btn:hover { background: var(--blush); border-color: var(--blush); color: #1f2a1c; }

/* reporting page */
.outlet { padding: 2.5rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.outlet:last-of-type { border-bottom: 0; }
.outlet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem; margin-bottom: 1.25rem; }
.outlet-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.outlet-head .meta { color: var(--ink-2); font-size: 0.9rem; margin: 0; }
.list-head { font-size: 1.1rem; margin: 2.25rem 0 0.5rem; color: var(--ink-2); }
.story-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.story-list li { display: grid; gap: 0.15rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.story-list .when { font-size: 0.85rem; color: var(--ink-2); }
.story-list a { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.story-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.empty { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--ink-2); font-size: 0.95rem; }

/* resume page */
.resume { display: grid; gap: 2.5rem; }
.resume h2 { font-size: 1.4rem; color: var(--sage-deep); margin-bottom: 0.75rem; }
.resume aside section { padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--rule); }
.resume aside section:last-child { border-bottom: 0; margin-bottom: 0; }
.resume aside p, .resume aside li { font-size: 0.95rem; }
.resume ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.resume ul.plain li { padding-left: 1.4rem; position: relative; }
.resume ul.plain li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sage); }
.job { padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--rule); }
.job:last-child { border-bottom: 0; }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.1rem 1.5rem; }
.job h3 { font-size: 1.2rem; }
.job .where { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.job .when { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.job p.desc { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--ink-2); }

/* contact page */
.channels { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.channel { border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.channel .level { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--blush); border-radius: 999px; padding: 0.3rem 0.85rem; }
.channel code, .channel .value, .channel address { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9rem; font-style: normal; background: var(--paper); border: 1px solid var(--rule); border-radius: 0.6rem; padding: 0.45rem 0.7rem; overflow-wrap: anywhere; display: block; }
.channel .value { text-decoration: none; font-weight: 600; }
.channel .value:hover { border-color: var(--accent); }
.channel p { margin: 0; font-size: 0.95rem; }

/* "What to include", "Protect yourself first" and "What happens next" share one size, weight and spacing */
.guide { font-size: 1.0625rem; line-height: 1.6; }
.guide h2 { margin: 0 0 1.25rem; }
.guide p { margin: 0; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.bullets li { padding-left: 1.6rem; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

/* collapsible "What to include" */
.include { border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius); }
.include summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); }
.include summary::-webkit-details-marker { display: none; }
.include summary h2 { margin: 0; }
.include summary:hover h2 { color: var(--accent); }
.include summary::after { content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin-right: 0.25rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.15s; }
.include[open] summary::after { transform: rotate(-135deg); }
.include-body { padding: 0 1.5rem 1.5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.two-col { display: grid; gap: 2.5rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; counter-reset: step; }
.checklist li { padding-left: 2.5rem; position: relative; counter-increment: step; }
.checklist li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.85rem; font-weight: 700; display: grid; place-items: center; }
.notice { border-left: 4px solid var(--accent); background: var(--blush); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; font-size: 0.95rem; }
.todo { background: #fff3b0; color: #3b3200; padding: 0 0.25em; font-weight: 600; border-radius: 0.25rem; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .story-list li { grid-template-columns: 9rem 1fr; align-items: baseline; }
  .about { grid-template-columns: 21rem 1fr; gap: 3.5rem; align-items: start; }
  .resume { grid-template-columns: 17rem 1fr; gap: 4rem; align-items: start; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}
