:root {
  --ink: #14120f;
  --paper: #f3eee3;
  --paper-dark: #e9e0cf;
  --night: #11100d;
  --cream: #f7f1e5;
  --gold: #c59b4d;
  --gold-light: #efd58e;
  --muted: #746b5e;
  --line: rgba(20, 18, 15, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17,16,13,.97);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239,213,142,.45);
  color: var(--gold-light);
  font-size: .88rem;
}
nav { display: flex; gap: 1.6rem; align-items: center; }
nav a {
  color: #d7cfbf;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
}
nav a:hover { color: var(--gold-light); }

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
}

/* FRAME ONE */
.hero {
  background: var(--night);
  color: var(--cream);
  padding: 62px 0 66px;
}
.hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .5fr);
  gap: 6rem;
  align-items: center;
}
.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5.7vw, 5.65rem);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 600;
}
.hero h1 em { color: var(--gold-light); font-weight: 500; }
.lede {
  max-width: 570px;
  margin: 1.5rem 0 1.35rem;
  color: #c8c0b1;
  font-size: .94rem;
}
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  color: #6b4a14;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(107,74,20,.34);
}
.text-link:hover { color: #15120e; border-bottom-color: currentColor; }
.hero-link { color: var(--gold-light); border-bottom-color: rgba(239,213,142,.34); }
.hero-link:hover { color: #fff0bc; }
.hero-cover {
  width: min(100%, 255px);
  justify-self: end;
  text-decoration: none;
}
.hero-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 22px 50px rgba(0,0,0,.32);
  transition: transform .2s ease;
}
.hero-cover:hover img { transform: translateY(-3px); }

/* FRAME TWO: books + about */
.library {
  background: var(--paper);
  padding: 56px 0 46px;
}
.library-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 2rem;
}
.library-heading h2,
.about-line h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.025em;
}
.library-heading h2 {
  max-width: 620px;
  font-size: clamp(2.2rem, 3.4vw, 3.25rem);
  line-height: .98;
}
.library-note {
  max-width: 330px;
  justify-self: end;
  margin: 0 0 .2rem;
  color: #6a6257;
  font-size: .84rem;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.8rem);
}
.book { min-width: 0; }
.cover-frame {
  height: 255px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: 1rem;
  text-decoration: none;
}
.cover-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
  box-shadow: 0 12px 28px rgba(56,45,23,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cover-frame:hover img {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(56,45,23,.18);
}
.book-meta {
  margin: 0 0 .35rem;
  color: #98702d;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.book h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.62rem;
  line-height: 1.04;
  font-weight: 600;
}
.book-copy > p:not(.book-meta) {
  margin: .55rem 0 .7rem;
  max-width: 300px;
  color: #5e574c;
  font-size: .82rem;
  line-height: 1.5;
}
.link-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.about-line {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}
.about-line h2 {
  max-width: 370px;
  font-size: clamp(1.9rem, 2.7vw, 2.7rem);
  line-height: 1;
}
.about-copy { max-width: 590px; }
.about-copy > p {
  margin: .05rem 0 .9rem;
  color: #514a40;
  font-size: .86rem;
  line-height: 1.55;
}
.social-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.social-links a {
  color: #44351d;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 600;
}
.social-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-footer {
  padding: 20px 0;
  background: var(--night);
  color: #847d70;
  font-size: .7rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.site-footer a { color: #bcb3a2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .hero-grid { gap: 3.5rem; grid-template-columns: 1fr 230px; min-height: 470px; }
  .library-heading { gap: 2.5rem; }
  .book-grid { gap: 1.5rem; }
  .cover-frame { height: 230px; }
  .about-line { gap: 2.5rem; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1080px); }
  .header-inner { min-height: 58px; }
  .brand { font-size: 1.02rem; }
  .brand-mark { width: 29px; height: 29px; }
  nav { gap: .85rem; }
  nav a { font-size: .7rem; }

  .hero { padding: 46px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 2.4rem; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  .hero-cover { width: min(58%, 235px); justify-self: start; }

  .library { padding: 48px 0 40px; }
  .library-heading { grid-template-columns: 1fr; gap: .8rem; margin-bottom: 2rem; }
  .library-note { justify-self: start; }
  .book-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .cover-frame { height: 260px; }
  .cover-frame img { max-width: 200px; }

  .about-line { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.4rem; }
  .footer-inner { flex-direction: column; }
}

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