@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
}

:root {
  --bg: #f3ece3;
  --ink: #2a2118;
  --muted: #5c5146;
  --card: #fffaf4;
  --line: #e4d5c5;
  --accent: #6e3118;
  --accent-soft: #c4653a;
  --sage: #234835;
  --sage-bg: #e3efe7;
  --draft: #6a4308;
  --draft-bg: #f3e2c4;
  --draft-line: #e0c89a;
  --shadow: 0 1px 0 rgba(42, 33, 24, 0.04), 0 10px 28px rgba(42, 33, 24, 0.05);
  --radius: 18px;
  --max: 72rem;
  --measure: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(196, 122, 74, 0.16), transparent 52%),
    radial-gradient(ellipse 50% 40% at -10% 30%, rgba(63, 92, 75, 0.07), transparent 46%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 0.8rem;
}

h1,
h2,
h3,
.role,
.mark {
  font-family: Fraunces, Georgia, "Iowan Old Style", Palatino, serif;
  font-optical-sizing: none;
  letter-spacing: -0.025em;
}

h1 {
  font-weight: 640;
  font-variation-settings: "opsz" 72;
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  line-height: 0.98;
  margin: 0.15rem 0 0.7rem;
}

.page-title {
  font-size: clamp(2.15rem, 7vw, 3.45rem);
  line-height: 1.02;
  margin: 0.2rem 0 0.8rem;
}

h2,
h3 {
  font-weight: 560;
  font-variation-settings: "opsz" 36;
  line-height: 1.15;
}

h2 {
  font-size: 1.7rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.38rem;
  margin: 0 0 0.45rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #4d210f;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--ink);
  color: #fbf6ef;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 236, 227, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 33, 24, 0.08);
}

.header-inner,
.footer-inner,
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding-block: 0.8rem 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fbf6ef;
  font-weight: 640;
  font-size: 0.78rem;
  font-variation-settings: "opsz" 14;
  letter-spacing: -0.04em;
}

.nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.95rem;
}

.nav a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding-block: 0.15rem;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--accent-soft);
}

.wrap {
  padding-block: 1.6rem 3.25rem;
}

.measure {
  max-width: var(--measure);
  margin-inline: auto;
}

.kicker,
.section-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3f5c4b;
}

.section-label {
  margin-bottom: 0.85rem;
}

.role {
  max-width: 18em;
  margin: 0 0 1rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-variation-settings: "opsz" 48;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 38rem;
  font-size: 1.125rem;
}

.home {
  display: grid;
  gap: 2.25rem;
}

.card-grid,
.notes {
  display: grid;
  gap: 0.8rem;
}

.card,
.note,
.reading-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 100%;
  padding: 1.05rem 1.15rem 1.1rem;
  color: inherit;
  text-decoration: none;
}

.card h2 {
  margin: 0;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-index {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-variation-settings: "opsz" 24;
  color: var(--accent-soft);
  font-size: 1rem;
}

.card-go {
  margin-top: 0.55rem;
  color: var(--accent);
  font-weight: 650;
}

.card:hover,
.reading-card:hover {
  border-color: #c9b39a;
}

.card:hover .card-go,
.reading-card:hover .card-go {
  color: #4d210f;
}

.page-intro {
  margin-bottom: 0.4rem;
}

.note {
  padding: 1.1rem 1.15rem 1.2rem;
}

.note-draft {
  background: #fbf7f0;
  border-style: dashed;
  border-color: var(--draft-line);
  box-shadow: none;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variation-settings: normal;
}

.badge-draft {
  background: var(--draft-bg);
  color: var(--draft);
}

.badge-live {
  background: var(--sage-bg);
  color: var(--sage);
}

.badge-referral {
  background: #f6e4da;
  color: var(--accent);
}

blockquote {
  margin: 0.75rem 0 0.9rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 3px solid #e4c4b4;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin-top: 0.85rem;
}

.actions a,
.note a,
.lede a,
.site-footer a,
.disclosure-callout a {
  overflow-wrap: anywhere;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fbf6ef;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
}

.button:hover,
.button:focus-visible {
  background: var(--accent);
  color: #fbf6ef;
}

.hero-actions {
  margin-top: 1.15rem;
}

.now-reading {
  margin-top: 1.75rem;
}

.reading-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem 0.7rem;
  color: inherit;
  text-decoration: none;
}

.reading-card img {
  width: 5.25rem;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
  background: #1c1612;
}

.reading-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reading-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.reading-author,
.reading-source {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.reading-card .card-go {
  margin-top: 0.4rem;
}

code.url {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: #f3ece3;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.editor-note {
  margin: 0.85rem 0 0;
  color: var(--draft);
  font-size: 0.95rem;
}

.expires {
  color: var(--draft);
  font-weight: 650;
}

.code-line {
  margin: 0 0 0.75rem;
}

.note .button {
  margin-top: 0.15rem;
}

.disclosure-callout {
  margin: 1.1rem 0 1.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e7d3b0;
  border-radius: 14px;
  background: #fff8ee;
}

.disclosure-callout p {
  margin: 0;
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid rgba(42, 33, 24, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  padding-block: 1.4rem 2.2rem;
}

.footer-name {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-weight: 650;
}

.footer-nav {
  margin-bottom: 0.7rem;
}

.disclosure {
  max-width: 40rem;
  margin-top: 0.8rem;
}

.draft-flag {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-style: italic;
}

::selection {
  background: #efd3c2;
}

@media (min-width: 720px) {
  .header-inner,
  .footer-inner,
  .wrap {
    padding-inline: 1.5rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .card {
    padding: 1.15rem 1.25rem 1.2rem;
  }
}

@media (min-width: 960px) {
  .home {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
    gap: 4rem;
    align-items: start;
  }

  .hero {
    position: sticky;
    top: 6.25rem;
  }
}

@media (hover: hover) {
  .nav a:hover,
  .footer-nav a:hover {
    color: var(--ink);
  }
}

@media print {
  .site-header {
    position: static;
  }

  .button {
    background: transparent;
    color: var(--ink);
    padding-inline: 0;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}
