:root {
  --bg: #faf4e4;
  --paper: #fffbf2;
  --ink: #1e2f5e;
  --ink-deep: #15224a;
  --text: #2b3350;
  --muted: #6d7186;
  --line: #e6dcc4;
  --coral: #f2876f;
  --peach: #f7b264;
  --rose: #ee8fae;
  --sunrise: linear-gradient(100deg, var(--peach), var(--coral) 55%, var(--rose));
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand span { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.brand em { font-style: normal; background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 36px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--text); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; font: 500 15px var(--sans);
  border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); transition: background .2s, color .2s, transform .2s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--ink-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.icon-arrow { transition: transform .2s; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; min-height: 560px; }
.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(52px, 7vw, 92px); line-height: .98; letter-spacing: -0.02em; margin: 0 0 22px;
}
.hero h1 i { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 30ch; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; height: 100%; min-height: 520px; }
.hero-art .scene { position: absolute; inset: 40px 0 40px 20px; border-radius: 4px; overflow: hidden; }
.page {
  position: absolute; right: 9%; top: 50%; width: min(330px, 70%);
  transform: translateY(-50%) rotate(-4deg);
  background: var(--paper); padding: 38px 34px 30px;
  box-shadow: 0 30px 60px -20px rgba(21, 34, 74, .45), 0 2px 0 var(--line);
  font-family: var(--body); font-style: italic; color: var(--ink); font-size: 16px; line-height: 1.75;
}
.page small { display: block; font: 500 10px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-bottom: 16px; }
.page p { margin: 0; }
.page .sign { margin-top: 18px; font-size: 14px; color: var(--muted); }
.page::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 20px; background: var(--sunrise); }

/* Illustrated scenes (hero + cards + poem banner) */
.scene { position: relative; overflow: hidden; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.dawn { background: linear-gradient(180deg, #fbe3cf 0%, #f8c9a8 38%, #f3a98f 60%, #b9a6c4 100%); }
.scene.sea  { background: linear-gradient(180deg, #e6eef5 0%, #c7d8e8 45%, #f2d3b8 72%, #9eb3cf 100%); }
.scene.dusk { background: linear-gradient(180deg, #2c3768 0%, #6a5a8e 42%, #d98b8c 70%, #f2b27a 100%); }

/* Filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; padding: 34px 0 0; }
.chip {
  font: 400 13px var(--sans); padding: 9px 26px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Poems grid */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-head h2, .about h2, .newsletter h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; margin: 0; letter-spacing: -0.01em;
}
.count { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(21, 34, 74, .35); }
.card .scene { aspect-ratio: 16 / 11; }
.card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ink); margin: 0 0 14px; }
.card .excerpt { font-family: var(--body); font-size: 15px; line-height: 1.75; color: var(--text); margin: 0 0 22px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--body); font-style: italic; font-size: 14px; color: var(--muted); }
.card-foot .read { font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.card:hover .icon-arrow { transform: translateX(3px); }
.empty { color: var(--muted); font-style: italic; }

/* Quote band */
.quote { text-align: center; padding: 90px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote img { width: 64px; margin: 0 auto 26px; }
.quote blockquote { margin: 0 auto; max-width: 22ch; font-family: var(--serif); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; color: var(--ink); }
.quote cite { display: block; margin-top: 24px; font: normal 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quote cite a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* About */
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-logo { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 40px; }
.about p { font-family: var(--body); font-size: 18px; line-height: 1.8; margin: 18px 0 0; max-width: 52ch; }
.about .themes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.about .themes span { font-size: 13px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }

/* Newsletter */
.newsletter { background: var(--ink-deep); color: #e9ecf7; position: relative; overflow: hidden; }
.newsletter .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; position: relative; }
.newsletter h2 { color: #fff; }
.newsletter p { margin: 10px 0 0; color: #b9c0dc; }
.newsletter .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; opacity: .25; pointer-events: none; }
.subscribe { display: flex; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; }
.subscribe input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 16px 18px; font: 15px var(--sans); outline: none; }
.subscribe input::placeholder { color: #9ba3c4; }
.subscribe button { background: var(--sunrise); border: 0; padding: 0 20px; color: var(--ink-deep); cursor: pointer; }
.subscribe button .icon { width: 20px; height: 20px; }
.form-note { font-size: 14px; margin-top: 12px; min-height: 1.4em; color: #f7c9a8; }

/* Footer */
.site-footer { padding: 40px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

/* Poem reader */
.poem-banner { height: 280px; border-bottom: 1px solid var(--line); }
.poem { max-width: 680px; margin: 0 auto; padding: 0 24px 40px; }
.poem-head { text-align: center; background: var(--paper); border: 1px solid var(--line); margin: -110px auto 56px; padding: 44px 32px 36px; position: relative; border-radius: 3px; }
.poem-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 72px); line-height: 1; color: var(--ink); margin: 0 0 14px; }
.poem-head .subtitle { font-family: var(--body); font-style: italic; font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.meta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta span + span::before { content: "·"; margin-right: 10px; }
.poem-text { font-family: var(--body); font-size: 19px; line-height: 1.85; color: var(--text); }
.poem-text .stanza { margin: 0 0 1.6em; }
.poem-text .stanza span { display: block; }
.poem-end { text-align: center; margin: 56px 0 0; }
.poem-end img { width: 54px; margin: 0 auto 14px; }
.poem-end .by { font-family: var(--body); font-style: italic; color: var(--muted); margin: 0 0 24px; }
.share-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.more { border-top: 1px solid var(--line); }
.more h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 40px; margin: 0 0 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.not-found { text-align: center; padding: 120px 24px; }
.not-found h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; color: var(--ink); margin: 0 0 12px; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: opacity .8s ease, transform .25s, box-shadow .25s; }
.card.reveal.in:hover { transform: translateY(-4px); }

.rise { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-art .scene { animation: fade 1.4s ease .2s both; }
.hero-art .page { animation: drop 1.1s cubic-bezier(.2,.7,.2,1) .7s both, float 7s ease-in-out 1.8s infinite; }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; translate: 0 -40px; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.drift { animation: drift 24s linear infinite; }
.drift.d2 { animation-duration: 15s; animation-direction: reverse; }
.drift.d3 { animation-duration: 10s; }
@keyframes drift { to { transform: translateX(-400px); } }
.sun { animation: sunrise 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sunrise { from { transform: translateY(40px); } }
.glow { transform-box: fill-box; transform-origin: center; animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .5; } }
.star { animation: twinkle 3s ease-in-out infinite; }
.star:nth-child(2n) { animation-delay: 1.1s; }
.star:nth-child(3n) { animation-delay: 2s; }
@keyframes twinkle { 50% { opacity: .2; } }
.birds { animation: birds 9s ease-in-out infinite; }
@keyframes birds { 50% { transform: translate(-14px, -6px); } }

.card .scene svg { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .scene svg { transform: scale(1.04); }
.quote img { animation: beat 2.8s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1.02); } 45% { transform: scale(1.08); } }
.chip { transition: background .25s, color .25s, border-color .25s; }
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(21, 34, 74, .5); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: var(--sunrise); transform: scaleX(0); transform-origin: left; }
.poem-head { animation: rise 1s cubic-bezier(.2,.7,.2,1) .15s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .rise { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .hero-art { min-height: 420px; margin: 0 -24px; }
  .hero-art .scene { inset: 0; border-radius: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about .wrap, .newsletter .wrap { grid-template-columns: 1fr; gap: 32px; }
  .about-logo { max-width: 420px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .brand span { font-size: 26px; }
  .hero-art { margin: 0 -16px; min-height: 380px; }
  .page { right: 50%; transform: translate(50%, -50%) rotate(-3deg); width: 78%; padding: 30px 26px 24px; font-size: 15px; }
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .chip { padding: 8px 18px; }
  .poem { padding: 0 16px 32px; }
  .poem-banner { height: 200px; }
  .poem-head { margin-top: -80px; padding: 34px 20px 28px; }
  .poem-text { font-size: 17.5px; }
  .site-header .btn span { display: none; }
}

/* ---------- Classic layer: old-style serifs, hairlines, plates, ornaments ---------- */
:root { --classic: "Cormorant Garamond", Georgia, serif; --hair: #d9cdb1; }

/* faint paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .48 0 0 0 0 .36 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow, .tag {
  font-family: var(--classic); font-weight: 600; font-size: 13.5px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .num, .tag .no {
  font-style: italic; font-weight: 500; text-transform: none; letter-spacing: .02em;
  font-size: 1.25em; color: var(--coral); margin-right: .35em;
}
.tag { display: flex; justify-content: space-between; align-items: baseline; }
.tag .no { margin: 0; font-size: 1.15em; color: var(--muted); }
.hero h1 i { font-family: var(--classic); font-weight: 500; letter-spacing: -0.01em; }
.brand em { font-family: var(--classic); font-style: italic; font-weight: 500; font-size: 1.04em; }

.btn, .card, .about-logo, .poem-head, .subscribe { border-radius: 0; }
.btn { letter-spacing: .02em; }

/* hairline under section titles */
.section-head { padding-bottom: 22px; border-bottom: 1px solid var(--hair); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 1px; background: var(--ink); }
.section-head .eyebrow { margin-bottom: 10px; }
.count { font-family: var(--classic); font-style: italic; font-size: 18px; }

/* illustrations framed like printed plates */
.hero-art .scene::after, .card .scene::after {
  content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(255, 250, 240, .65);
}
.hero-art .scene::after { inset: 14px; }
.card .scene::after { inset: 10px; }
.hero-art .scene { box-shadow: 0 0 0 1px var(--hair), 0 0 0 7px var(--bg), 0 0 0 8px var(--hair); }

/* ornament: hairline, diamond, hairline */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto; color: var(--coral); }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .7; }
.ornament i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.quote .ornament { margin: 30px auto 0; }
.quote cite { margin-top: 14px; font-family: var(--classic); font-weight: 600; font-size: 13.5px; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--classic); font-size: 1.6em; line-height: .6; color: var(--coral); }
.quote img { display: none; }

/* contents page */
.contents { padding-top: 72px; }
.toc { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.toc a { display: flex; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.toc-num { font-family: var(--classic); font-style: italic; font-size: 20px; color: var(--coral); width: 40px; flex: none; }
.toc-title { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.leader { flex: 1; border-bottom: 1px dotted var(--muted); opacity: .6; transform: translateY(-6px); min-width: 24px; }
.toc-meta { font-family: var(--classic); font-style: italic; font-size: 18px; color: var(--muted); white-space: nowrap; }
.toc a:hover .toc-title { transform: translateX(8px); }

/* about plate */
.about-logo { box-shadow: inset 0 0 0 8px var(--paper), inset 0 0 0 9px var(--hair); }
.about .themes span { border-radius: 0; font-family: var(--classic); font-style: italic; font-size: 16px; }

/* poem page */
.poem-head { box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--hair); }
.poem-head .ornament { margin: 0 auto 20px; }
.poem-head .subtitle { font-family: var(--classic); font-size: 22px; margin-bottom: 18px; }
.meta { font-family: var(--classic); font-style: italic; font-size: 17px; }
.poem-text .stanza:first-child span:first-child::first-letter {
  font-family: var(--classic); font-weight: 500; font-size: 2.7em; line-height: 1; color: var(--coral); margin-right: 2px;
}
.poem-end .by { font-family: var(--classic); font-size: 20px; }

/* centred classic footer */
.site-footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
.site-footer .ornament { margin: 0 auto 6px; }
.site-footer nav a { font-family: var(--classic); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }

@media (max-width: 680px) {
  .toc a { flex-wrap: wrap; gap: 4px 12px; }
  .leader { display: none; }
  .toc-meta { width: 100%; padding-left: 52px; }
  .hero-art .scene { box-shadow: none; }
}
.poem-head .tag { justify-content: center; }
