/* ---------------------------------------------------------
   Princeton Zen — author site
   Palette: navy + aged gold, off-white paper ground.
   Type: Fraunces (display serif) / Source Sans 3 (ui/body)
--------------------------------------------------------- */

:root {
  --ink: #17233d;
  --navy: #1f3864;
  --navy-deep: #0f1b2f;
  --gold: #a8823f;
  --gold-light: #c9a76c;
  --paper: #faf8f3;
  --paper-raised: #f2ede2;
  --slate: #5b6472;
  --line: #e2dbcb;
  --cream: #f6f1e6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-w: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }
p:last-child { margin-bottom: 0; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--navy);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.main-nav a:hover { border-color: var(--gold); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.lang-sep { color: var(--line); }
.lang-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  padding: 4px 2px;
}
.lang-btn.is-active { color: var(--navy); border-bottom: 2px solid var(--gold); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-buy {
  background: var(--gold);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}
.btn-buy:hover { background: #8f6e33; }

.btn-buy-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-buy-outline:hover { background: var(--navy); color: #fff; }

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.05rem);
  line-height: 1.14;
  max-width: 15ch;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-top: 22px;
  color: var(--slate);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stack {
  position: relative;
  height: 380px;
}

.stack-cover {
  position: absolute;
  width: 190px;
  border-radius: 2px;
  box-shadow: 0 18px 40px -12px rgba(15, 27, 47, 0.35);
  border: 1px solid rgba(255,255,255,0.4);
}
.stack-cover.c1 { left: 0;   top: 46px;  transform: rotate(-7deg);  z-index: 4; }
.stack-cover.c2 { left: 78px; top: 10px; transform: rotate(-1deg);  z-index: 3; }
.stack-cover.c3 { left: 156px; top: 34px; transform: rotate(4deg);  z-index: 2; }
.stack-cover.c4 { left: 234px; top: 70px; transform: rotate(9deg);  z-index: 1; }

/* ---------- section shared ---------- */

section { padding: 96px 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin-bottom: 18px;
}
.section-head p { font-size: 1.06rem; }

/* ---------- volume list ---------- */

.volume-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.volume {
  display: grid;
  grid-template-columns: 44px 160px 1fr;
  gap: 36px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.volume:last-child { border-bottom: 1px solid var(--line); }

.vol-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-light);
  font-weight: 500;
  line-height: 1;
  padding-top: 6px;
}

.vol-cover img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 10px 24px -10px rgba(15, 27, 47, 0.4);
}

.vol-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

.vol-body h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.vol-subtitle {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.vol-blurb {
  max-width: 62ch;
  margin-bottom: 26px;
}

.vol-buy {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.buy-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.buy-label {
  font-size: 0.8rem;
  text-transform: none;
  color: var(--slate);
  font-weight: 600;
}

.buy-price {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
}

.bundle-note {
  margin-top: 40px;
  font-size: 0.98rem;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

/* ---------- author ---------- */

.author { background: var(--navy-deep); }

.author-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}

.author-mark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(201, 167, 108, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.author h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin-bottom: 22px;
}

.author p {
  color: #cfd6e4;
  font-size: 1.06rem;
  max-width: 62ch;
}

/* ---------- contact ---------- */

.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.contact h2 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  margin-bottom: 10px;
}

.contact-email {
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--slate);
}

.footer-row p { margin: 0; }
.footer-domain { color: var(--gold); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { height: 300px; margin-top: 24px; }
  .stack-cover { width: 150px; }
  .stack-cover.c1 { left: 0; }
  .stack-cover.c2 { left: 60px; }
  .stack-cover.c3 { left: 120px; }
  .stack-cover.c4 { left: 180px; }

  .volume {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .vol-num { padding-top: 0; }
  .vol-cover { width: 140px; }

  .author-grid { grid-template-columns: 1fr; }

  .header-row { height: auto; flex-wrap: wrap; padding: 14px 0; gap: 10px 0; }
  .main-nav { gap: 18px; order: 3; flex-basis: 100%; }
  .main-nav a { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
