:root {
  color-scheme: light;
  --page: #fcfaf6;
  --paper: #fffdf9;
  --ink: #27231f;
  --muted: #665b54;
  --accent: #963f2b;
  --line: #e8dfd3;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.7 var(--sans); }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: #6e2d20; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.24; }
h1, h2 { font-family: var(--serif); }
.wrap { width: min(1180px, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .5rem; left: 1rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font: 700 1.25rem var(--serif); text-decoration: none; white-space: nowrap; }
.book-mark { position: relative; display: inline-block; width: 2.15rem; height: 2.15rem; border-radius: 7px; background: var(--accent); }
.book-mark::before, .book-mark::after {
  position: absolute;
  top: .66rem;
  width: .45rem;
  height: .72rem;
  border: 1px solid #fff7ec;
  content: "";
}
.book-mark::before { left: .53rem; border-radius: 2px 1px 0 2px; transform: skewY(10deg); }
.book-mark::after { right: .53rem; border-radius: 1px 2px 2px 0; transform: skewY(-10deg); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 2rem; }
nav a { color: var(--muted); font-size: .9375rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr 1.13fr; margin-top: 2.4rem; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f4eae0; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4.4rem); }
.kicker { display: flex; align-items: center; gap: .65rem; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .09em; }
.kicker span { width: 1.45rem; height: 1px; background: currentColor; }
.hero h1 { margin-block: 1rem .9rem; font-size: clamp(2.4rem, 4.15vw, 4rem); letter-spacing: -.045em; }
.hero h1 em { color: var(--accent); font: italic 400 1.28em/.99 Georgia, serif; }
.hero-description { max-width: 25rem; margin-bottom: 1.55rem; color: var(--muted); line-height: 1.85; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.15rem; border-radius: 6px; background: var(--accent); color: #fffaf4; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #783221; color: #fffaf4; }
.hero-visual { position: relative; min-height: 100%; background: #a06b46; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-visual figcaption { position: absolute; right: .9rem; bottom: .8rem; padding: .2rem .55rem; border-radius: 4px; background: #251a15; color: #fff7ee; font-size: .75rem; }

.section { margin-block: 3.6rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; }
.section-heading p { margin-top: .38rem; color: var(--muted); }
.section-meta { align-self: flex-end; white-space: nowrap; color: var(--muted); font-size: .875rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.45rem; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.card-image { display: block; overflow: hidden; background: #eee5d9; }
.card-image img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.3rem 1.3rem; }
.tag { padding: .18rem .62rem; border-radius: 4px; font-size: .875rem; font-weight: 700; }
.sage { background: #e8ece0; color: #40543b; }
.clay { background: #f4e4da; color: #793f2d; }
.blue { background: #e5ecee; color: #365462; }
.card h3 { margin-top: .65rem; font: 700 clamp(1.35rem, 2vw, 1.65rem)/1.25 var(--serif); }
.card-body > p:not(.tag) { margin-block: .55rem .9rem; color: var(--muted); }
.text-link { margin-top: auto; font-size: .9375rem; font-weight: 700; }

.table-scroll-note { display: none; margin-bottom: .5rem; color: var(--muted); font-size: .875rem; }
.table-frame { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { width: 100%; min-width: 660px; border-collapse: collapse; text-align: left; }
th, td { padding: .95rem 1.15rem; border-bottom: 1px solid var(--line); }
thead { background: #f3e9df; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead tr:last-child th { border-bottom: 1px solid var(--line); }
tbody th { white-space: nowrap; }
tbody td { color: var(--muted); }
.table-note { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.table-note a { margin-left: .25rem; }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 3.5rem; padding: 2.2rem; border: 1px solid var(--line); border-radius: 12px; background: #f4eee5; }
.about h2 { font-size: 1.65rem; }
.about h3 { font-size: 1.125rem; }
.about p { margin-top: .65rem; color: var(--muted); }
.source-list { margin: .65rem 0 0; padding-left: 1.3rem; }
.source-list li + li { margin-top: .4rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 1.15rem; color: var(--muted); font-size: .9375rem; }
.footer-inner span { color: var(--ink); font: 700 1rem var(--serif); }

.article-wrap { width: min(790px, calc(100% - 4rem)); margin: 2.1rem auto 4rem; }
.back-link { display: inline-block; margin-bottom: 1.65rem; font-size: .9375rem; }
.article-header .tag { display: inline-block; }
.article-header h1 { margin-block: .65rem .85rem; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.035em; }
.article-deck { font-size: 1.125rem; }
.article-meta { margin-top: .7rem; color: var(--muted); font-size: .875rem; }
.article-visual { position: relative; margin-block: 1.6rem 2rem; }
.article-visual img { width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; border-radius: 12px; }
.article-visual figcaption { margin-top: .35rem; color: var(--muted); font-size: .8125rem; text-align: right; }
.article-content section + section { margin-top: 2rem; }
.article-content h2 { margin-bottom: .65rem; font-size: 1.7rem; }
.article-content p + p { margin-top: .6rem; }
.article-content ul { margin: .65rem 0 0; padding-left: 1.4rem; }
.article-content li + li { margin-top: .5rem; }
.takeaway { padding: 1.2rem 1.35rem; border-left: 3px solid var(--accent); background: #f4eae0; }
.article-source { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.related { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .hero-copy { padding: 2rem; }
  .cards { gap: .9rem; }
  .card-body { padding: 1rem; }
}

@media (max-width: 725px) {
  .table-scroll-note { display: block; }
}

@media (max-width: 680px) {
  .wrap, .article-wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 70px; gap: .8rem; }
  .brand { font-size: 1.05rem; gap: .42rem; }
  nav { gap: .35rem .8rem; justify-content: flex-end; }
  nav a { font-size: .875rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1.15rem; }
  .hero-copy { padding: 1.65rem; }
  .hero h1 { margin-top: .8rem; }
  .hero-visual { aspect-ratio: 1.7; }
  .section { margin-block: 2.45rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
  .section-meta { align-self: auto; }
  .cards { grid-template-columns: 1fr; }
  .card-body { padding: 1.15rem; }
  .about { grid-template-columns: 1fr; gap: 1.3rem; padding: 1.35rem; }
  .article-wrap { margin-top: 1.25rem; }
}
