:root {
  color-scheme: light dark;
  --paper: #fbf8f2;
  --paper-2: #f3ede3;
  --ink: #171b2d;
  --muted: #5e5a66;
  --plum: #2c1c3d;
  --plum-2: #402658;
  --gold: #c58f3e;
  --gold-soft: #edd6aa;
  --rose: #a44f67;
  --line: rgba(23, 27, 45, .15);
  --card: #fffdf9;
  --cover-bg: #eee8df;
  --shadow: 0 20px 50px rgba(24, 18, 34, .13);
  --sans: "DM Sans", sans-serif;
  --serif: "Libre Caslon Display", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11121a;
    --paper-2: #191823;
    --ink: #f6efe4;
    --muted: #c5bdc8;
    --plum: #21172c;
    --plum-2: #321e46;
    --gold: #e0b25f;
    --gold-soft: #6e5633;
    --rose: #d37c94;
    --line: rgba(255,255,255,.16);
    --card: #1b1a25;
    --cover-bg: #282530;
    --shadow: 0 20px 50px rgba(0,0,0,.28);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 22px clamp(18px, 5vw, 76px);
  display: flex; justify-content: flex-end; gap: 26px; color: white; font-size: .83rem; font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.nav a { text-decoration: none; border-bottom: 1px solid transparent; color: white; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { border-color: currentColor; }
.page { min-height: 80vh; }
.hero {
  min-height: min(760px, 92vh); position: relative; overflow: hidden; display: grid; align-items: end;
  color: white; background: #15162b;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 42%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,24,.88) 0%, rgba(16,11,32,.58) 42%, rgba(17,11,28,.14) 72%),
              linear-gradient(0deg, rgba(9,7,20,.68) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; padding: 120px clamp(22px, 6vw, 82px) 72px; }
.kicker { margin: 0 0 18px; font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #f0d49a; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 20px; font: 400 clamp(3rem, 7.4vw, 6.9rem)/.94 var(--serif); letter-spacing: -.045em; }
.hero-copy { max-width: 590px; margin-bottom: 30px; font-size: clamp(1.03rem, 2vw, 1.22rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button.primary { background: #e2b65f; color: #1e1730; }
.button.primary:hover, .button.primary:focus-visible { background: #f1cf89; }
.button.ghost { border-color: rgba(255,255,255,.58); color: white; }
.button.ghost:hover, .button.ghost:focus-visible { background: white; color: #21172c; }
.button.ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.button.ink:hover, .button.ink:focus-visible { background: var(--ink); color: var(--paper); }
.intro { padding: 78px 22px; border-bottom: 1px solid var(--line); }
.intro-inner { max-width: 870px; margin: auto; text-align: center; }
.intro p { font: 400 clamp(1.55rem, 3.3vw, 2.6rem)/1.35 var(--serif); }
.intro cite { font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.books { padding: 88px clamp(18px, 5vw, 70px) 105px; }
.section-head { max-width: 1180px; margin: 0 auto 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-head h2 { margin-bottom: 0; font: 400 clamp(2.5rem, 5vw, 4.7rem)/1 var(--serif); letter-spacing: -.035em; }
.section-head p { margin: 0; max-width: 530px; justify-self: end; color: var(--muted); }
.book-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.book-card { min-width: 0; background: var(--card); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(150px, 43%) 1fr; overflow: hidden; }
.cover-wrap { min-height: 390px; padding: 22px; background: var(--cover-bg); display: grid; place-items: center; }
.cover-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(20,16,28,.17)); }
.book-copy { padding: clamp(24px, 4vw, 42px) clamp(22px, 3.2vw, 38px); display: flex; flex-direction: column; align-items: flex-start; }
.book-type { margin-bottom: 14px; color: var(--rose); font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.book-copy h3 { margin-bottom: 16px; font: 400 clamp(1.7rem, 3vw, 2.6rem)/1.04 var(--serif); letter-spacing: -.025em; }
.book-copy p { color: var(--muted); font-size: .93rem; }
.book-copy .button { margin-top: auto; }
.about { background: var(--plum); color: #fbf6ef; padding: 100px clamp(22px, 7vw, 100px); position: relative; overflow: hidden; }
.about::before { content: "\201C"; position: absolute; right: 4vw; top: -90px; font: 400 30rem/1 var(--serif); color: rgba(255,255,255,.045); }
.about-inner { position: relative; max-width: 1100px; margin: auto; display: grid; grid-template-columns: minmax(220px, .7fr) 1.55fr; gap: clamp(42px, 8vw, 110px); }
.about-label { padding-top: 8px; }
.about-label .pen { font: 400 clamp(2.6rem, 5vw, 4.7rem)/.95 var(--serif); color: #f4d99f; }
.about-label .rule { width: 72px; height: 1px; margin-top: 26px; background: #c89441; }
.about-copy { font-size: clamp(1.06rem, 1.8vw, 1.24rem); color: rgba(255,255,255,.88); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: white; font-weight: 500; }
.promise { padding: 90px 22px; background: var(--paper-2); }
.promise-inner { max-width: 980px; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 62px; align-items: center; }
.ornament { width: 180px; height: 180px; margin: auto; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font: 400 4rem var(--serif); }
.promise h2 { font: 400 clamp(2.2rem, 4.5vw, 4.2rem)/1.05 var(--serif); }
.promise p { color: var(--muted); }
.page-hero { min-height: 420px; padding: 142px clamp(22px, 7vw, 100px) 72px; display: grid; align-items: end; color: white; background: linear-gradient(135deg, #1b1429, #442857); position: relative; overflow: hidden; }
.page-hero::after { content: "\201C"; position: absolute; right: 4vw; top: -120px; font: 400 32rem/1 var(--serif); color: rgba(255,255,255,.045); }
.page-hero-inner { position: relative; z-index: 1; width: min(1100px, 100%); margin: auto; }
.page-hero h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(3.3rem, 7vw, 6.5rem); }
.page-hero p:last-child { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.84); font-size: clamp(1rem, 2vw, 1.2rem); }
.catalog { padding: 86px clamp(18px, 5vw, 70px) 110px; }
.catalog-list { max-width: 1080px; margin: auto; display: grid; gap: 54px; }
.catalog-book { display: grid; grid-template-columns: minmax(260px, .72fr) 1.28fr; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.catalog-book:nth-child(even) .catalog-cover { order: 2; }
.catalog-cover { min-height: 540px; padding: 48px; background: var(--cover-bg); display: grid; place-items: center; }
.catalog-cover img { max-height: 455px; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 15px 18px rgba(20,16,28,.2)); }
.catalog-copy { padding: clamp(36px, 7vw, 82px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.catalog-copy h2 { margin-bottom: 20px; font: 400 clamp(2.4rem, 5vw, 4.5rem)/1 var(--serif); letter-spacing: -.035em; }
.catalog-copy p { max-width: 580px; color: var(--muted); font-size: 1.02rem; }
.catalog-copy .button { margin-top: 12px; }
.about-page-body { padding: 96px clamp(22px, 7vw, 100px) 110px; }
.about-story { max-width: 1060px; margin: auto; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(48px, 9vw, 120px); align-items: start; }
.about-mark { position: sticky; top: 40px; }
.about-mark p:first-child { margin-bottom: 10px; font: 400 clamp(3.2rem, 7vw, 6.2rem)/.9 var(--serif); color: var(--gold); }
.about-mark p:last-child { max-width: 240px; color: var(--muted); }
.story-copy > p:first-child { font: 400 clamp(1.75rem, 3.4vw, 2.8rem)/1.3 var(--serif); color: var(--ink); }
.story-copy p { color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.18rem); }
.story-copy strong { color: var(--ink); font-weight: 500; }
.principles { max-width: 1060px; margin: 84px auto 0; padding-top: 58px; border-top: 1px solid var(--line); }
.principles h2 { margin-bottom: 34px; font: 400 clamp(2.2rem, 4vw, 3.6rem)/1.05 var(--serif); }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.principle { padding-top: 18px; border-top: 2px solid var(--gold); }
.principle h3 { margin-bottom: 10px; font: 400 1.55rem/1.15 var(--serif); }
.principle p { margin: 0; color: var(--muted); font-size: .94rem; }
.page-cta { padding: 80px 22px; background: var(--paper-2); text-align: center; }
.page-cta h2 { max-width: 720px; margin: 0 auto 18px; font: 400 clamp(2.3rem, 5vw, 4.5rem)/1.03 var(--serif); }
.page-cta p { max-width: 650px; margin: 0 auto 28px; color: var(--muted); }
.footer { padding: 34px clamp(20px, 5vw, 70px); background: #0d0e17; color: rgba(255,255,255,.72); }
.footer-inner { max-width: 1180px; margin: auto; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer p { margin: 0; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; margin: 0; }
.footer-links a { color: #f0cf8c; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-card { min-height: 420px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head p { justify-self: start; }
  .catalog-book { grid-template-columns: minmax(220px, .72fr) 1.28fr; }
  .catalog-cover { min-height: 460px; padding: 32px; }
}
@media (max-width: 680px) {
  .nav { justify-content: center; gap: 10px 15px; padding: 16px 10px; font-size: .7rem; flex-wrap: wrap; }
  .hero { min-height: 760px; align-items: end; }
  .hero > img { object-position: 62% center; }
  .hero::after { background: linear-gradient(0deg, rgba(10,8,24,.95) 0%, rgba(14,9,27,.6) 55%, rgba(14,9,27,.14) 100%); }
  .hero-content { padding: 105px 22px 48px; }
  h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .books { padding-top: 66px; }
  .book-card { display: block; }
  .cover-wrap { min-height: auto; aspect-ratio: 1/1; }
  .book-copy { min-height: 330px; }
  .about { padding-block: 75px; }
  .about-inner, .promise-inner, .about-story { grid-template-columns: 1fr; gap: 36px; }
  .ornament { width: 130px; height: 130px; font-size: 3rem; }
  .page-hero { min-height: 390px; padding: 118px 22px 56px; }
  .page-hero h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .catalog { padding: 58px 16px 80px; }
  .catalog-list { gap: 30px; }
  .catalog-book, .catalog-book:nth-child(even) { display: block; }
  .catalog-book:nth-child(even) .catalog-cover { order: initial; }
  .catalog-cover { min-height: auto; aspect-ratio: 1/1.06; padding: 32px; }
  .catalog-copy { padding: 34px 26px 40px; }
  .about-page-body { padding: 66px 22px 80px; }
  .about-mark { position: static; }
  .principle-list { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
