:root {
  --paper: #f6f3ec;
  --ink: #161514;
  --muted: #6b665e;
  --line: #d9d3c7;
  --night: #0f0f0f;
  --night-ink: #f3efe6;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: 24px; }
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: 22px; color: var(--ink); }
.muted { color: var(--muted); }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

/* buttons */
.btn { display: inline-block; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.night .btn { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.night .btn:hover { background: transparent; color: var(--night-ink); }
.night .btn.ghost { background: transparent; color: var(--night-ink); }
.night .btn.ghost:hover { background: var(--night-ink); color: var(--night); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* book band */
.night { background: var(--night); color: var(--night-ink); }
.night a:hover { color: #bdb6a8; }
.night .eyebrow, .night .muted { color: #a39d91; }
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.book img { width: 100%; max-width: 420px; margin: 0 auto; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; font-family: var(--sans); font-size: 14px; letter-spacing: .02em; }
.facts li { padding: 10px 0; border-top: 1px solid #2a2a28; }

/* welcome */
.welcome p { font-size: 22px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; margin-top: 32px; }
.card { text-decoration: none; display: block; }
.card .thumb { aspect-ratio: 4 / 3; background: #e7e1d5; overflow: hidden; margin-bottom: 14px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 0 0 6px; }
.card time { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card p { margin: 8px 0 0; font-size: 17px; color: var(--muted); }
.status { color: var(--muted); font-style: italic; }

/* post */
.post-body { font-size: 20px; }
.post-body video, .post-body iframe, .post-body img { margin: 28px auto; max-height: 80vh; }
.back { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* about */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: start; }
.placeholder-photo { aspect-ratio: 4 / 5; background: #e7e1d5; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--ink); }

@media (max-width: 760px) {
  body { font-size: 18px; }
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .book, .split { grid-template-columns: 1fr; gap: 36px; }
  .book img { max-width: 300px; }
  .nav { gap: 16px; }
}
/* story */
.story p { font-size: 20px; }
.story .year { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--muted); margin: 40px 0 12px; }
.story figure { margin: 40px 0; }
.story figcaption { font-family: var(--body); font-style: italic; font-size: 16px; color: var(--muted); margin-top: 8px; }

.portrait { width: 100%; height: auto; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.story figure img { width: 100%; height: auto; }

/* book page: one font for all text */
.one-font main, .one-font main * { font-family: var(--body) !important; }
.one-font main .eyebrow, .one-font main .btn { text-transform: none; letter-spacing: .02em; font-size: 17px; }
.one-font main .facts { font-size: 17px; }
.one-font main .story .year { font-size: 24px; }
.one-font main .story figcaption { font-size: 16px; }
.night .lead { color: var(--night-ink); }
