:root {
  --bg: #f5f1ea;
  --ink: #1c1a17;
  --muted: #7a7366;
  --accent: #a4562f;
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14120f; --ink: #ece6da; --muted: #9a9283; --accent: #d98a5f; }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 2rem; mix-blend-mode: difference; color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.site-header nav a { margin-left: 1.6rem; opacity: .85; }
.site-header nav a:hover { opacity: 1; }
.logo { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .08em; text-transform: none; font-style: italic; }

/* photo placeholders: replace .ph with <img> */
.ph { background: var(--ph, linear-gradient(135deg, #5b4636, #c9a27e)); width: 100%; height: 100%; }
.ph-1 { --ph: linear-gradient(160deg, #1f2a38, #6f8fa8 70%, #e8d5b5); }
.ph-2 { --ph: linear-gradient(140deg, #3b2a2a, #b5654a 60%, #f0c08a); }
.ph-3 { --ph: linear-gradient(150deg, #20301f, #6d8a5a 60%, #d8dca8); }
.ph-4 { --ph: linear-gradient(145deg, #2c2a3a, #7c6f9c 60%, #e4cfd8); }

/* hero */
.hero { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 6rem 1.5rem 3rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.hero h1 em { color: var(--accent); }
.hero p { margin-top: 1.5rem; color: var(--muted); font-style: italic; font-size: 1.4rem; }
.scroll-hint { margin-top: 3rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

/* story grid */
.stories { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 6rem; display: grid; gap: 3.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card .thumb { aspect-ratio: 4/5; overflow: hidden; }
.card .thumb .ph, .card .thumb img { transition: transform .9s ease; object-fit: cover; height: 100%; }
.card:hover .thumb .ph, .card:hover .thumb img { transform: scale(1.05); }
.card .meta { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.card h2 { font-size: 1.9rem; font-weight: 400; line-height: 1.2; margin-top: .3rem; }
.card p { color: var(--muted); font-size: 1.1rem; margin-top: .4rem; }
.card:nth-child(3n+2) { margin-top: 3rem; }

/* story page */
.story-cover { position: relative; height: 100vh; color: #fff; display: flex; align-items: flex-end; }
.story-cover .ph, .story-cover img { position: absolute; inset: 0; object-fit: cover; height: 100%; }
.story-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.65)); }
.story-cover .titles { position: relative; z-index: 1; padding: 0 2rem 4rem; max-width: 900px; }
.story-cover h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 300; line-height: 1.05; }
.story-cover .meta { font-family: var(--sans); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; margin-bottom: 1rem; }

.prose { max-width: 38rem; margin: 0 auto; padding: 5rem 1.5rem; }
.prose p + p { margin-top: 1.4em; }
.prose p:first-child::first-letter { font-size: 4.2rem; float: left; line-height: .85; padding: .35rem .6rem 0 0; color: var(--accent); }

.poem { text-align: center; font-style: italic; font-size: 1.6rem; line-height: 1.9; padding: 6rem 1.5rem; max-width: 38rem; margin: 0 auto; }
.poem .stanza + .stanza { margin-top: 1.8em; }
.poem::before, .poem::after { content: "\2766"; display: block; color: var(--accent); font-style: normal; font-size: 1.2rem; margin: 0 auto 2rem; }
.poem::after { margin: 2rem auto 0; }

figure.full { margin: 0; height: 90vh; position: relative; overflow: hidden; }
figure.full .ph, figure.full img { object-fit: cover; height: 100%; width: 100%; }
figure.wide { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
figure.wide .frame { aspect-ratio: 3/2; overflow: hidden; }
figure.wide img { object-fit: cover; height: 100%; width: 100%; }
figure.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
figure.duo .frame { aspect-ratio: 4/5; overflow: hidden; }
figcaption { font-family: var(--sans); font-size: .75rem; color: var(--muted); letter-spacing: .08em; margin-top: .6rem; }
figure.full figcaption { position: absolute; left: 2rem; bottom: 1.2rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

.overlay-text { position: relative; height: 100vh; color: #fff; display: grid; place-items: center; text-align: center; padding: 2rem; }
.overlay-text .ph, .overlay-text img { position: absolute; inset: 0; object-fit: cover; height: 100%; }
.overlay-text::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.overlay-text blockquote { position: relative; z-index: 1; max-width: 34rem; font-size: clamp(1.6rem, 4vw, 2.6rem); font-style: italic; line-height: 1.4; }

.story-nav { display: flex; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.story-nav a:hover { color: var(--accent); }

footer { text-align: center; padding: 3rem 1rem; font-family: var(--sans); font-size: .75rem; letter-spacing: .15em; color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 640px) {
  .site-header { padding: 1rem; }
  .site-header nav a { margin-left: 1rem; }
  figure.duo { grid-template-columns: 1fr; }
  .card:nth-child(3n+2) { margin-top: 0; }
  body { font-size: 1.15rem; }
}
