:root {
  --ink: #11110f;
  --paper: #f4f0e8;
  --paper-deep: #e7e0d3;
  --muted: #6d6961;
  --line: rgba(17,17,15,.18);
  --black: #050505;
  --white: #fffef9;
  --max: 1180px;
  --shadow: 0 18px 46px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: white; padding: .75rem 1rem; z-index: 999;
}
.skip-link:focus { left: .75rem; top: .75rem; }

.site-header {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 78px; height: auto; }
.brand-wordmark { display: none; }
.site-nav { display: flex; gap: 26px; font-family: Arial, Helvetica, sans-serif; font-size: .83rem; letter-spacing: .14em; text-transform: uppercase; }
.site-nav a { text-decoration: none; opacity: .76; padding: 34px 0 30px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--white); }

.hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.055), transparent 30%),
    linear-gradient(180deg, #080808, #11110f);
  color: var(--white);
}
.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: center;
  gap: 72px;
  padding: 70px 0 84px;
}
.hero-logo { width: min(330px, 78%); margin-inline: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,.34)); }
.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 700;
  opacity: .7;
  margin-bottom: 20px;
}
h1, h2, h3 { line-height: 1.08; margin-top: 0; font-weight: 500; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.8rem); letter-spacing: -.035em; margin-bottom: 28px; max-width: 9ch; }
.hero-copy { max-width: 650px; font-size: clamp(1.12rem, 2vw, 1.42rem); color: rgba(255,255,255,.78); margin: 0 0 34px; }
.hero-rule { width: 120px; height: 1px; background: rgba(255,255,255,.38); margin: 34px 0; position: relative; }
.hero-rule::after { content: ''; position: absolute; width: 42px; height: 3px; background: white; left: 38px; top: -1px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  transition: .18s ease;
}
.button.primary { background: var(--white); color: var(--black); border-color: var(--white); }
.button:hover { transform: translateY(-1px); }
.button.primary:hover { background: transparent; color: var(--white); }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 92px 0; }
.section.compact { padding-top: 64px; padding-bottom: 64px; }
.section-head { display: grid; grid-template-columns: .55fr 1fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(2.3rem, 4vw, 4.2rem); margin-bottom: 0; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 680px; }

.books-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
.book-card {
  display: grid; grid-template-columns: 190px 1fr; gap: 30px;
  background: rgba(255,255,255,.52);
  border: 1px solid var(--line);
  padding: 28px;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  align-self: start;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17,17,15,.12);
  background: #080808;
}
.book-cover-large { max-width: 250px; }

.cover {
  aspect-ratio: 2 / 3;
  background: #0a0a0a;
  color: white;
  padding: 24px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cover::before {
  content: '';
  position: absolute; left: 10%; right: 10%; top: 28%; height: 1px; background: rgba(255,255,255,.62);
}
.cover::after {
  content: '';
  position: absolute; width: 34%; height: 2px; background: white; left: 33%; top: calc(28% - 1px);
}
.cover-series, .cover-author { font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: .55rem; opacity: .72; position: relative; z-index: 1; }
.cover-title { font-size: 1.55rem; line-height: 1; letter-spacing: -.02em; max-width: 7ch; position: relative; z-index: 1; }
.book-kicker { font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 700; color: var(--muted); }
.book-card h3 { font-size: 2.15rem; margin: 8px 0 13px; }
.book-card p { margin: 0 0 16px; color: #3f3c36; }
.meta { font-family: Arial, Helvetica, sans-serif; font-size: .8rem; line-height: 1.6; color: var(--muted); margin-top: 18px; }
.meta strong { color: var(--ink); }
.text-link { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.band { background: var(--black); color: var(--white); }
.band-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 82px 0; display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: center; }
.band h2 { font-size: clamp(2.5rem, 4.5vw, 4.7rem); margin-bottom: 20px; }
.band p { color: rgba(255,255,255,.72); max-width: 720px; }
.quote-line { border-left: 1px solid rgba(255,255,255,.3); padding-left: 28px; font-size: 1.25rem; color: rgba(255,255,255,.88); }

.page-hero { background: var(--black); color: var(--white); }
.page-hero .section { padding-top: 80px; padding-bottom: 80px; }
.page-hero h1 { font-size: clamp(3.3rem, 7vw, 6.5rem); margin-bottom: 18px; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.72); font-size: 1.2rem; }

.prose { max-width: 760px; font-size: 1.08rem; }
.prose p:first-child { font-size: 1.32rem; }
.prose h2 { font-size: 2.4rem; margin-top: 2.2em; margin-bottom: .65em; }
.prose a { text-underline-offset: 3px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.contact-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); margin-top: 0; }
.contact-card a { font-family: Arial, Helvetica, sans-serif; font-size: .95rem; word-break: break-word; }

.site-footer { background: #0a0a0a; color: rgba(255,255,255,.66); }
.footer-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 46px 0; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 62px; }
.footer-brand strong { color: white; font-family: Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.footer-small { font-family: Arial, Helvetica, sans-serif; font-size: .75rem; line-height: 1.6; text-align: right; }
.footer-small a { color: rgba(255,255,255,.8); }

.notice { border: 1px solid var(--line); padding: 18px 20px; background: rgba(255,255,255,.35); color: var(--muted); font-size: .95rem; }

@media (max-width: 850px) {
  .header-inner { min-height: 78px; }
  .brand img { width: 60px; }
  .site-nav { gap: 14px; font-size: .72rem; letter-spacing: .1em; }
  .site-nav a { padding: 27px 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding: 58px 0 70px; }
  .hero-logo { width: 170px; margin: 0; order: -1; }
  .hero h1 { max-width: 11ch; }
  .section-head, .band-inner { grid-template-columns: 1fr; gap: 24px; }
  .books-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner { width: min(var(--max), calc(100% - 28px)); align-items: flex-start; padding: 12px 0; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; }
  .site-nav a { padding: 8px 0; }
  .hero-inner, .section, .band-inner, .page-hero .section, .footer-inner { width: min(var(--max), calc(100% - 28px)); }
  .hero h1 { font-size: 3.1rem; }
  .section { padding: 66px 0; }
  .book-card { grid-template-columns: 118px 1fr; gap: 20px; padding: 18px; }
  .cover { padding: 16px 12px; }
  .cover-title { font-size: 1.1rem; }
  .book-card h3 { font-size: 1.75rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-small { text-align: left; }
}

/* Author page */
.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 90px;
  align-items: start;
}
.author-bio { max-width: 780px; }
.author-bio p:first-child { font-size: 1.28rem; }
.author-mark {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.author-mark img { width: 130px; margin-bottom: 28px; filter: invert(1); mix-blend-mode: multiply; }
.author-mark .eyebrow { margin-bottom: 8px; color: var(--muted); opacity: 1; }
.author-mark strong { font-size: .9rem; }
.author-books .section { padding-top: 78px; padding-bottom: 88px; }
.author-books .section-head p { color: rgba(255,255,255,.7); }
.author-books .section-head h2 { color: var(--white); }
.author-cover-row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 36px; }
.author-cover-link { text-decoration: none; color: var(--white); }
.author-cover-link img { width: 100%; height: auto; box-shadow: 0 18px 46px rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.12); }
.author-cover-link span { display: block; margin-top: 14px; font-size: 1.08rem; }
.author-cover-link small { display: block; margin-top: 4px; font-family: Arial, Helvetica, sans-serif; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.author-cover-link:hover img { transform: translateY(-2px); }
.author-cover-link img { transition: transform .18s ease; }

@media (max-width: 850px) {
  .author-layout { grid-template-columns: 1fr; gap: 48px; }
  .author-mark { max-width: 320px; }
}

@media (max-width: 600px) {
  .author-cover-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .author-mark img { width: 100px; }
}
