@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-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: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-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: "Source Serif 4";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-600italic-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: "Source Serif 4";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-600italic-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;
}

:root {
  --bg: #FBF8F3;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --rule: #E4E0D9;
  --accent: #1C3D5A;
  --accent-hover: #2C5A82;

  /* Warm accent. Deepened from the mockup's #A6532B so it clears AAA
     (8.1:1 on --bg) at small sizes — kickers and labels are 12-14px. */
  --warm: #7A3A1D;
  --warm-rule: rgba(122, 58, 29, 0.28);

  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 44rem;

  /* The spec's spacing scale. Use only these. */
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4.5rem;
  --s-8: 7rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  padding: var(--s-4);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) {
  body {
    padding: var(--s-5) var(--s-5) var(--s-7);
  }
}

header, main, footer {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.thesis {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s-4);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-4);
}

h2 {
  font-size: 1.625rem;
  line-height: 1.25;
  letter-spacing: -0.008em;
  margin: var(--s-6) 0 var(--s-3);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: var(--s-5) 0 var(--s-2);
}

p {
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}

small, .meta {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Section breaks: hairline plus whitespace, never a card. */
main > h2 {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
  margin-top: var(--s-7);
}

/* ---------- Links ---------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 150ms;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header / nav ---------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-7);
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
}

nav {
  display: flex;
  gap: var(--s-4);
}

nav a {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

/* ---------- Entry lists (writing, projects) ---------- */

.entries {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  border-top: 1px solid var(--rule);
}

.entries li {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.entry-head a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  text-decoration: none;
}

.entry-head a:hover {
  text-decoration: underline;
}

.entry-head time {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.entry-desc {
  margin: var(--s-1) 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.status {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.elsewhere {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
}

.elsewhere li {
  margin-bottom: var(--s-1);
}

.elsewhere a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Kicker / eyebrow label ---------- */

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--warm);
  margin: 0 0 var(--s-2);
}

/* ---------- Credibility band ---------- */

.credibility {
  margin: var(--s-6) 0;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--warm-rule);
  border-bottom: 1px solid var(--warm-rule);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin: 0 0 var(--s-3);
}

.logo-row img {
  max-height: 34px;
  width: auto;
  display: block;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 150ms, opacity 150ms;
}

.logo-row a:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logo-row img {
    transition: none;
  }
}

.recognition {
  margin: 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--warm-rule);
  font-size: 0.9375rem;
  color: var(--muted);
}

.recognition strong {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Pull quote ---------- */

.pullquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--warm);
  margin: var(--s-5) 0;
  padding-left: var(--s-3);
  border-left: 2px solid var(--warm-rule);
}

/* ---------- Proof blocks ---------- */

.proof {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-3);
  border-left: 2px solid var(--rule);
}

.proof strong {
  font-family: var(--font-heading);
  font-size: 1.125rem;
}

/* ---------- Forms ---------- */

form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-4) 0 var(--s-2);
}

label {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

input[type="email"] {
  flex: 1 1 18rem;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
}

input[type="email"]:hover {
  border-color: var(--muted);
}

button {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem var(--s-4);
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}

button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.form-note {
  margin: 0 0 var(--s-5);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Long-form article ---------- */

article blockquote {
  margin: var(--s-5) 0;
  padding-left: var(--s-4);
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

article ul, article ol {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-4);
}

article li {
  margin-bottom: var(--s-1);
}

/* Tables. Hairlines only — no zebra fill, no cell borders, no card. */
.table-scroll {
  overflow-x: auto;
  margin: var(--s-5) 0;
}

article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

article th, article td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-2) var(--s-3) var(--s-2) 0;
  border-bottom: 1px solid var(--rule);
}

article th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom-color: var(--warm-rule);
  white-space: nowrap;
}

article thead th {
  padding-top: 0;
}

article tbody tr:last-child td {
  border-bottom: none;
}

/* An empty leading header cell is a spacer, not a column label. */
article th:empty {
  padding: 0;
}

article .meta {
  margin-top: calc(var(--s-4) * -1 + var(--s-1));
  margin-bottom: var(--s-5);
}

.headshot {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 0 var(--s-5);
}

/* ---------- Rules & footer ---------- */

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--s-6) 0;
}

footer {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  a, button {
    transition: none;
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    padding: 0;
    font-size: 11pt;
  }
  header nav, form, .form-note {
    display: none;
  }
  a {
    color: var(--ink);
  }
}
