:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --ink: #2b2622;
  --muted: #6f655c;
  --line: #e8e0d5;
  --accent: #b23a48;
  --leaf: #4f6b3a;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1917; --paper: #24211e; --ink: #ece6dd; --muted: #a99f94; --line: #3a3530; --accent: #e07a86; --leaf: #9cbf7f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h2 em { font-weight: 400; color: var(--muted); font-size: 0.7em; margin-left: 0.3em; }

.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding: 14px max(16px, calc((100% - 1100px) / 2)); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font: 600 21px/1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark { color: var(--accent); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.page-title { font-size: clamp(34px, 6vw, 52px); margin: 48px 0 8px; }
.lead { font-size: 1.15em; color: var(--muted); max-width: 46em; margin: 0 0 40px; }

.hero { position: relative; margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; }
.hero img { width: 100%; height: min(70vh, 560px); object-fit: cover; }
.hero-text { position: absolute; inset: auto 0 0 0; padding: 32px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.hero-text h1 { font-size: clamp(32px, 6vw, 60px); margin: 0 0 8px; }
.hero-text p { margin: 0; max-width: 34em; font-size: 1.1em; }
.intro { max-width: 46em; margin: 40px auto; font-size: 1.1em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 24px 0 56px; }
.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.card figure { margin: 0; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h3 { margin: 16px 18px 4px; font-size: 24px; }
.card p { margin: 0 18px 18px; color: var(--muted); }

figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 56px 0; }
.split.reverse > figure { order: 2; }
.split img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split h2 { margin-top: 0; font-size: 30px; }

.flower { display: grid; grid-template-columns: 5fr 6fr; gap: 36px; align-items: start; padding: 36px 0; border-top: 1px solid var(--line); }
.flower img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.flower h2 { margin: 0 0 4px; font-size: 32px; }
.when { color: var(--leaf); font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.flower ul, .split ul, .note ol, .split ol { padding-left: 1.2em; }
li { margin: 4px 0; }

.note { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 40px 0; }
.note h2 { margin-top: 0; }

.entry { max-width: 46em; margin: 0 auto; padding: 28px 0; border-top: 1px solid var(--line); }
.entry h2 { margin: 0 0 8px; font-size: 28px; }
.entry figure { margin: 0 0 20px; }
.entry img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.table-wrap { overflow-x: auto; }
.credits { width: 100%; border-collapse: collapse; font-size: 15px; }
.credits th, .credits td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credits td:first-child { width: 76px; }
.credits img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }

.bottom { border-top: 1px solid var(--line); padding: 28px max(16px, calc((100% - 1100px) / 2)); color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .split, .flower { grid-template-columns: 1fr; gap: 20px; }
  .split.reverse > figure { order: 0; }
  .hero-text { padding: 20px; }
  .hero img { height: 60vh; }
  .top nav { gap: 2px 14px; }
}
