:root {
  --bg: #f6f3ec; --surface: #fffdf8; --text: #1f2a2e; --muted: #6b7275; --line: #e2dccf;
  --accent: #2f6f73; --accent-2: #c9792c; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(31,42,46,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14191b; --surface: #1b2224; --text: #e7e3da; --muted: #9aa3a5; --line: #2b3436; --accent: #7cc0bf; --shadow: none; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 28px 0 10px; }
h2 { font-size: 26px; margin: 36px 0 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted, .meta { color: var(--muted); font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent-2); margin: 0 0 6px; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: var(--accent); }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--text); }

.hero { position: relative; height: min(78vh, 680px); overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6)); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 1; }
.hero-text h1 { color: #fff; max-width: 760px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-text p { max-width: 560px; font-size: 19px; }
.hero .kicker { color: #f3c58c; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

.section-title { margin-top: 56px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s; border: 1px solid var(--line); }
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 20px; }
.card h3 { margin: 6px 0 6px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.more { text-align: right; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 64px 0; }
.rounded { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.facts { padding-left: 18px; }
.quote { margin: 40px auto 70px; max-width: 760px; }
blockquote { font-family: var(--serif); font-size: 26px; line-height: 1.4; margin: 0; padding-left: 22px; border-left: 3px solid var(--accent-2); }

.row { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row-img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.row h2 { margin: 4px 0 6px; font-size: 24px; }
.row h2 a { color: var(--text); text-decoration: none; }
.row p { margin: 0; }

.post figure { margin: 26px 0; }
.lead-fig img, .post figure img { border-radius: 12px; width: 100%; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; font-style: italic; }
.walkbox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 34px 0; box-shadow: var(--shadow); }
.walkbox h3 { margin: 0 0 8px; }
.walkbox dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.walkbox dt { color: var(--muted); }
.walkbox dd { margin: 0; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0 60px; font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--serif); font-size: 15px; }

.masonry { columns: 3 280px; column-gap: 18px; margin: 20px 0 60px; }
.tile { break-inside: avoid; margin: 0 0 18px; }
.tile img { border-radius: 10px; width: 100%; }
.tile figcaption { font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 10px; grid-template-columns: 2fr 2fr 2fr; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  nav a { margin: 0 14px 0 0; }
  .split, .row, .site-footer .wrap { grid-template-columns: 1fr; }
  .hero { height: 70vh; }
  .hero-text { bottom: 28px; }
  blockquote { font-size: 21px; }
}
