:root {
  --ink: #1b2440;
  --ink-soft: #3a4260;
  --muted: #646a7d;
  --paper: #faf8f3;
  --card: #ffffff;
  --rule: #e4ded1;
  --gold: #9c7a2c;
  --gold-bright: #c9a24d;
  --accent: #b3262d;
  --serif-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --serif-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hon { font-family: "Amiri", "Noto Naskh Arabic", "Segoe UI Symbol", serif; font-weight: 400; letter-spacing: 0; }

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

h1, h2, h3 { font-family: var(--serif-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.5rem; }
.small { font-size: .9rem; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { font-family: var(--serif-display); font-size: 1.45rem; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; font-family: var(--serif-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold-bright); }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.motto { font-family: var(--serif-display); font-style: italic; font-size: 1.7rem; color: var(--gold); margin: -.2em 0 1.2em; }
.hero-text p { max-width: 62ch; }
.portrait { margin: 0; justify-self: center; max-width: 380px; }
.portrait img { border: 1px solid var(--rule); box-shadow: 0 18px 40px -22px rgba(27, 36, 64, .45); }
.actions { margin-top: 1.6em; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 13px 26px; font-family: var(--serif-display); font-size: 1.2rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 2px; }
.button:hover { background: #0f162b; color: var(--gold-bright); }

.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; font-family: var(--serif-display); font-size: 1.2rem; color: var(--muted); font-style: italic; }

.series { padding-bottom: 56px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.strip-item { text-decoration: none; text-align: center; }
.strip-item img { box-shadow: 0 14px 30px -18px rgba(27, 36, 64, .6); transition: transform .2s ease; }
.strip-item:hover img { transform: translateY(-4px); }
.strip-item span { display: block; margin-top: 12px; font-family: var(--serif-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.contact { padding-bottom: 72px; }
.contact p { font-size: 1.15rem; }

/* Books page */
.intro { padding-top: 56px; padding-bottom: 8px; }
.lede { font-size: 1.2rem; max-width: 60ch; color: var(--ink-soft); }
.start, .buy-box { padding-top: 32px; }
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.start-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold-bright); padding: 20px 22px; }
.start-card:hover { border-color: var(--gold-bright); color: var(--ink); }
.start-card .when { font-size: .95rem; color: var(--muted); }
.start-card .what { font-family: var(--serif-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.buy-grid p { margin: 0; }
.buy-box .small { margin-top: 12px; }

.shelf { padding-top: 56px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.book { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; scroll-margin-top: 90px; }
.book .cover img { box-shadow: 0 12px 26px -16px rgba(27, 36, 64, .65); }
.kicker { margin: 0 0 4px; font-family: var(--serif-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: var(--gold); }
.book-title { font-size: 1.65rem; margin-bottom: .15em; }
.tag { margin: 0 0 .4em; font-family: var(--serif-display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.sub { margin: 0 0 .9em; font-size: 1rem; color: var(--ink-soft); }
.isbns { margin: 0 0 .8em; font-size: .88rem; color: var(--muted); display: grid; gap: 2px; }
.isbns div { display: flex; gap: 8px; }
.isbns dt { min-width: 84px; }
.isbns dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.buy { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.buy a { font-weight: 600; }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 72px; }
.notes h2 { font-size: 1.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--ink); color: #d8dbe6; }
.site-footer a { color: #fff; }
.foot { padding-top: 32px; padding-bottom: 32px; }
.foot p { margin: 0 0 6px; }
.foot-name { font-family: var(--serif-display); font-size: 1.4rem; font-weight: 600; color: var(--gold-bright); }
.site-footer .small { color: #a9aec0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .portrait { max-width: 300px; justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .start-grid { grid-template-columns: 1fr; }
  .buy-grid, .notes { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .book { grid-template-columns: 110px 1fr; gap: 16px; }
  .book-title { font-size: 1.4rem; }
  nav { gap: 16px; }
  .bar { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-item img { transition: none; }
}
