:root {
  --surface: oklch(96% 0.015 60);
  --surface-deep: oklch(93% 0.022 50);
  --surface-warm: oklch(91% 0.028 45);
  --ink: oklch(22% 0.04 22);
  --ink-soft: oklch(40% 0.045 22);
  --ink-quiet: oklch(55% 0.04 25);
  --maroon: oklch(38% 0.13 22);
  --maroon-deep: oklch(28% 0.11 22);
  --maroon-ghost: oklch(38% 0.13 22 / 0.08);
  --rule: oklch(80% 0.03 30);
  --rule-soft: oklch(86% 0.025 30);
  --paper-shadow: 0 1px 0 oklch(80% 0.04 30 / 0.4), 0 24px 60px -24px oklch(28% 0.11 22 / 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'kern', 'liga', 'calt', 'ss01';
  font-variation-settings: 'opsz' 18;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, oklch(91% 0.03 35 / 0.6), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, oklch(89% 0.04 30 / 0.4), transparent 60%);
  background-attachment: fixed;
}

.serif { font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif; font-variation-settings: 'opsz' 144, 'SOFT' 50; }

a { color: var(--maroon); text-decoration: none; text-decoration-skip-ink: auto; }
a:hover { color: var(--maroon-deep); }

::selection { background: var(--maroon); color: var(--surface); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.col { max-width: 680px; }

/* ──────── Top bar ──────── */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.topbar .mark {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.topbar .mark a { color: inherit; }
.topbar nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar nav a { color: var(--ink-soft); }
.topbar nav a:hover { color: var(--maroon); }

/* ──────── Home: intro essay ──────── */
.intro {
  padding: 80px 32px 100px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
  scroll-margin-top: 24px;
}
.intro .essay h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 32px;
}
.intro .essay h1 em {
  font-style: italic;
  color: var(--maroon);
  font-weight: 300;
}
.intro .essay p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 52ch;
}
.intro .essay .sig {
  margin-top: 28px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--maroon);
  font-weight: 400;
}
.intro .portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--paper-shadow);
  background: linear-gradient(160deg, var(--surface-warm), var(--surface-deep));
}
.intro .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.intro .portrait .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--maroon);
  font-size: 14px;
  opacity: 0.55;
}

/* ──────── Library section ──────── */
.library-head {
  border-top: 1px solid var(--rule);
  padding: 56px 32px 28px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  scroll-margin-top: 24px;
}
.library-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.library-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-variation-settings: 'opsz' 144;
  font-size: 32px;
  letter-spacing: -0.01em;
}
.library-head h2 em { font-style: italic; color: var(--maroon); }

.shelves {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 120px;
}
.shelf {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--rule-soft);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.shelf:last-child { border-bottom: 1px solid var(--rule-soft); }
.shelf:hover { transform: translateX(4px); }

.shelf .cover {
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  box-shadow: var(--paper-shadow);
  overflow: hidden;
  position: relative;
  background: linear-gradient(155deg, var(--maroon), var(--maroon-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
}
.shelf .cover .cover-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 350;
  font-size: 20px;
  line-height: 1.15;
  color: oklch(94% 0.03 50);
  letter-spacing: -0.01em;
}
.shelf .cover .cover-mark {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 1px;
  background: oklch(94% 0.03 50 / 0.5);
}
.shelf .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf .meta .tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 14px;
}
.shelf .meta h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  color: var(--ink);
}
.shelf .meta p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 52ch;
}

.shelf .open {
  text-align: right;
}
.shelf .open .price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-size: 26px;
  color: var(--maroon);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 12px;
}
.shelf .open .price.free { font-style: italic; }
.shelf .open .open-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
  transition: gap 300ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}
.shelf .open .open-link:hover {
  gap: 16px;
  color: var(--maroon);
  border-color: var(--maroon);
}

/* ──────── Footer ──────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 48px 32px 64px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--ink-quiet);
  font-size: 13px;
}
footer .colophon {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ──────── Product page ──────── */
.product-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: oklch(96% 0.015 60 / 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.product-bar .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-bar .back {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 300ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms;
}
.product-bar .back:hover { gap: 12px; color: var(--maroon); }
.product-bar .now {
  display: flex;
  align-items: center;
  gap: 20px;
}
.product-bar .now .name {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.product-bar .now .price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  color: var(--maroon);
}

.product-hero {
  padding: 80px 32px 56px;
  max-width: 1180px;
  margin: 0 auto;
}
.product-hero .tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 22px;
}
.product-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 14ch;
}
.product-hero h1 em { font-style: italic; color: var(--maroon); font-weight: 300; }

.product-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 96px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.product-body .image-col {
  position: sticky;
  top: 96px;
}
.product-body .image-col .cover {
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  box-shadow: var(--paper-shadow);
  overflow: hidden;
  position: relative;
  background: linear-gradient(155deg, var(--maroon), var(--maroon-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.product-body .image-col .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body .image-col .cover .cover-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 350;
  font-size: 24px;
  line-height: 1.15;
  color: oklch(94% 0.03 50);
}
.product-body .image-col .cover .cover-mark {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 1px;
  background: oklch(94% 0.03 50 / 0.5);
}

/* ──────── Covers as product covers: photo + scrim + title plate ──────── */
.shelf .cover,
.product-body .image-col .cover {
  align-items: flex-end;
}
.shelf .cover img,
.product-body .image-col .cover img {
  z-index: 0;
}
.shelf .cover::after,
.product-body .image-col .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    oklch(15% 0.035 22 / 0.94) 2%,
    oklch(15% 0.035 22 / 0.6) 30%,
    oklch(15% 0.035 22 / 0) 66%);
}
.shelf .cover .cover-mark,
.product-body .image-col .cover .cover-mark {
  z-index: 2;
  background: oklch(94% 0.03 50 / 0.85);
}
.cover-plate {
  position: relative;
  z-index: 2;
  width: 100%;
}
.cover-by {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(94% 0.03 50 / 0.82);
}
.product-body .image-col .cover-by {
  margin-top: 12px;
  font-size: 12px;
}
@media (max-width: 880px) {
  .shelf .cover { padding: 13px; }
  .shelf .cover .cover-by { display: none; }
}
.product-body .image-col .meta-list {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-quiet);
  display: grid;
  gap: 6px;
}
.product-body .image-col .meta-list span {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--rule);
  padding: 6px 0;
}
.product-body .image-col .meta-list span b {
  color: var(--ink-soft);
  font-weight: 500;
}

.product-body .copy {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 62ch;
}
.product-body .copy p { margin-bottom: 1.2em; }
.product-body .copy p:first-child::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-variation-settings: 'opsz' 144;
  font-size: 64px;
  float: left;
  line-height: 0.92;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--maroon);
}
.product-body .copy em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--ink);
  font-size: 1.04em;
}
.product-body .copy strong { color: var(--ink); font-weight: 500; }
.product-body .copy .pullquote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.35;
  color: var(--maroon);
  padding: 28px 0;
  margin: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  letter-spacing: -0.01em;
}
.product-body .copy ul {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.product-body .copy ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
}
.product-body .copy ul li::before {
  content: "·";
  position: absolute;
  left: 8px;
  top: 4px;
  color: var(--maroon);
  font-size: 24px;
  line-height: 1;
}
.product-body .copy .ps {
  margin-top: 36px;
  font-size: 15px;
  color: var(--ink-quiet);
  border-top: 1px solid var(--rule-soft);
  padding-top: 24px;
}
.product-body .copy .ps b { color: var(--maroon); font-weight: 500; font-style: italic; font-family: 'Fraunces', serif; }

/* ──────── Buy button ──────── */
.buy {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  background: var(--maroon);
  color: oklch(96% 0.015 60) !important;
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--maroon);
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.buy:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); transform: translateY(-1px); }
.buy .price-mark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  opacity: 0.85;
}
.buy.compact { padding: 10px 18px; font-size: 12px; }
.buy.compact .price-mark { font-size: 14px; }

.buy-disabled {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--ink-quiet) !important;
  padding: 16px 28px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px dashed var(--rule);
  border-radius: 2px;
  cursor: not-allowed;
}

.buy-block {
  margin-top: 56px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.buy-block .label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ──────── Sign-off (portrait + signature) ──────── */
.signoff {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 96px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
}
.signoff .avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-warm);
  box-shadow: 0 8px 24px -10px oklch(28% 0.11 22 / 0.3);
}
.signoff .avatar img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92);
}
.signoff .sig-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.signoff .sig-text .name {
  display: block;
  font-size: 28px;
  color: var(--maroon);
  margin-top: 6px;
}

/* ──────── Footer legal links ──────── */
footer .footer-legal {
  display: flex;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
footer .footer-legal a { color: var(--ink-quiet); }
footer .footer-legal a:hover { color: var(--maroon); }

/* ──────── Legal pages ──────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 32px 96px;
}
.legal-head {
  padding: 24px 0 36px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--rule);
}
.legal-head .eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 18px;
}
.legal-head h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal-head h1 em { font-style: italic; color: var(--maroon); }
.legal-head .updated {
  margin-top: 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-quiet);
}
.legal-body {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 64ch;
}
.legal-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 72;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 46px 0 14px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { margin-bottom: 1.1em; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--rule);
}
.legal-body a:hover { text-decoration-color: var(--maroon); }
.legal-body ul {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}
.legal-body ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
}
.legal-body ul li::before {
  content: "·";
  position: absolute;
  left: 8px;
  top: 4px;
  color: var(--maroon);
  font-size: 24px;
  line-height: 1;
}
.legal-body .callout {
  background: var(--maroon-ghost);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 28px;
  font-size: 15.5px;
  line-height: 1.6;
}
.legal-body .callout strong { color: var(--maroon-deep); }

/* ──────── Responsive ──────── */
@media (max-width: 880px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 24px 72px;
  }
  .intro .portrait { max-width: 340px; }
  .wrap, .legal, .topbar, .shelves, .library-head, .product-bar .inner, .product-hero, .product-body, .signoff, footer {
    padding-left: 24px; padding-right: 24px;
  }
  .shelf {
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .shelf .cover .cover-title { font-size: 13px; }
  .shelf .open {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
  }
  .shelf .open .price { margin-bottom: 0; }
  .product-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 64px;
  }
  .product-body .image-col {
    position: static;
    max-width: 280px;
  }
  .product-bar .now .name { display: none; }
  .topbar { padding: 20px 24px; }
  .topbar nav { gap: 18px; font-size: 11px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .product-body .copy { font-size: 17px; }
  .signoff { grid-template-columns: 72px 1fr; gap: 20px; }
  .signoff .sig-text { font-size: 18px; }
  .signoff .sig-text .name { font-size: 22px; }
}
