/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #1B2631;
  --paper:   #FAFAF8;
  --lead:    #5D6D7E;
  --rule:    #E8E7E4;
  --surface: #F3F2EF;
  --press:   #8B1A1A;
  --nav-h:   64px;
  --max:     1080px;
  --g:       2rem;        /* gutter */
}

html {
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; }
address { font-style: normal; }

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--g);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0;
  flex-shrink: 0;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
}

.logo-rule {
  width: 3px;
  height: 34px;
  background: var(--press);
  margin-right: 11px;
  flex-shrink: 0;
}

.logo-text   { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name   { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.logo-sub    { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--lead); margin-top: 1px; }

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lead);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--press);
}

/* Hamburger button — hidden by default, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .15s ease;
  transform-origin: center;
}

/* Animate hamburger → ✕ */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── UTILITIES ────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lead);
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--press);
  flex-shrink: 0;
}

.divider { border: none; border-top: 1px solid var(--rule); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  padding: 13px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .15s;
  min-height: 44px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover  { opacity: .82; }
.btn-primary.disabled {
  background: var(--lead);
  cursor: default;
  opacity: .65;
  pointer-events: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, color .15s;
  min-height: 44px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.badge-soon {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1.5px solid var(--press);
  color: var(--press);
  white-space: nowrap;
}

/* ── PAGE HEADER (Books / About / Contact) ────────────────── */
.page-header {
  padding: 56px var(--g) 40px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: normal;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-sub { font-size: .9375rem; color: var(--lead); }

/* ── BOOK COVER PLACEHOLDER ───────────────────────────────── */
.book-cover {
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.book-cover::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--press);
  z-index: 1;
}
.book-cover-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  color: rgba(250,250,248,.78);
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
}

/* ── HOME: HERO ───────────────────────────────────────────── */
.hero {
  padding: 80px var(--g) 72px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--press);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: normal;
  line-height: 1.2;
  color: var(--ink);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: clamp(.9375rem, 2vw, 1.0625rem);
  color: var(--lead);
  max-width: 520px;
  line-height: 1.75;
}

/* ── HOME: FEATURED BOOK ──────────────────────────────────── */
.featured {
  padding: 64px var(--g);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}

.featured .book-cover { width: 200px; aspect-ratio: 2/3; }

.book-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lead);
  margin-bottom: 12px;
}

.book-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.875rem);
  font-weight: normal;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.book-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--lead);
  margin-bottom: 20px;
}

.book-desc {
  font-size: .9375rem;
  color: var(--lead);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 10px;
}

.book-author { font-size: 14px; color: var(--ink); margin-bottom: 24px; }
.book-author-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lead);
  margin-right: 8px;
}

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ── HOME: ABOUT STRIP ────────────────────────────────────── */
.home-about {
  background: var(--surface);
  padding: 56px var(--g);
  border-bottom: 1px solid var(--rule);
}

.home-about-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-statement {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink);
}

.about-detail {
  font-size: .9rem;
  color: var(--lead);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ── BOOKS PAGE ───────────────────────────────────────────── */
.books-list { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }

.book-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.book-row .book-cover { width: 140px; aspect-ratio: 2/3; }

.book-row-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.status-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lead);
}

.further-titles {
  padding: 48px 0;
  font-size: .875rem;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--lead);
}

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-body { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }

.about-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
  max-width: 640px;
}

.about-section h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.375rem);
  font-weight: normal;
  color: var(--ink);
  margin-bottom: 18px;
}

.about-section p {
  font-size: .9375rem;
  color: var(--lead);
  line-height: 1.8;
  margin-bottom: 14px;
}
.about-section p:last-child { margin-bottom: 0; }

.corp-table  { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.corp-row    { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.corp-key    { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lead); padding-top: 2px; }
.corp-val    { font-size: .875rem; color: var(--ink); line-height: 1.55; }

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--g) 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-block { padding-top: 52px; }

.contact-block h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: normal;
  color: var(--ink);
  margin-bottom: 28px;
}

.contact-item   { margin-bottom: 22px; }
.contact-label  { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lead); margin-bottom: 5px; }
.contact-val    { font-size: .9375rem; color: var(--ink); line-height: 1.6; }
.contact-val a  { text-decoration: underline; text-underline-offset: 3px; }
.contact-val a:hover { color: var(--press); }

.contact-note {
  font-size: .875rem;
  font-style: italic;
  color: var(--lead);
  line-height: 1.75;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 3px solid var(--press);
  margin-top: 6px;
}

.contact-divider { border: none; border-top: 1px solid var(--rule); margin: 26px 0; }
.corp-note  { font-size: 12px; color: var(--lead); margin-top: 4px; font-style: italic; }

/* ── 404 ──────────────────────────────────────────────────── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--g);
  max-width: var(--max);
  margin: 0 auto;
}
.not-found-code { font-size: 72px; font-family: Georgia, serif; font-weight: normal; color: var(--rule); line-height: 1; margin-bottom: 16px; }
.not-found-msg  { font-size: 1.0625rem; color: var(--lead); margin-bottom: 32px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 28px var(--g);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy  { font-size: 12px; color: var(--lead); letter-spacing: .03em; }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--lead); letter-spacing: .05em; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet  (≤ 900px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .featured { gap: 32px; }
  .featured .book-cover { width: 160px; }
  .home-about-inner { gap: 32px; }
  .book-row { gap: 24px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Hamburger breakpoint  (≤ 768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --g: 1.25rem; --nav-h: 60px; }

  /* Show hamburger, hide desktop nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    z-index: 199;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px var(--g);
    font-size: 13px;
    border-bottom: 1px solid var(--rule);
    border-bottom-width: .5px;
  }

  .nav-links li:last-child a { border-bottom: none; }

  /* Hero */
  .hero { padding: 52px var(--g) 48px; }

  /* Featured book — stack */
  .featured {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px var(--g);
  }
  .featured .book-cover {
    width: 160px;
    max-width: 45vw;
  }

  /* Home about */
  .home-about-inner { grid-template-columns: 1fr; gap: 24px; }
  .home-about { padding: 44px var(--g); }

  /* Books list */
  .book-row {
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
    gap: 20px 20px;
  }
  .book-row .book-cover { width: 120px; }
  .book-row-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  /* About */
  .about-section { max-width: 100%; padding: 40px 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 48px; }
  .contact-block:first-child { border-bottom: 1px solid var(--rule); padding-bottom: 40px; }
  .contact-block:last-child  { padding-bottom: 0; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile  (≤ 560px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  /* Book row: full stack */
  .book-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .book-row .book-cover {
    width: 130px;
    max-width: 38vw;
  }

  /* Page header */
  .page-header { padding: 40px var(--g) 28px; }

  /* Corp table: stack labels */
  .corp-row { grid-template-columns: 1fr; gap: 2px; }
  .corp-key { font-size: 10px; }

  /* CTA row: stack buttons */
  .cta-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Footer links */
  .footer-links { gap: 16px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile  (≤ 400px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  :root { --g: 1rem; }
  .logo-sub  { display: none; }
  .logo-img  { width: 32px; height: 32px; }
  .logo-rule { height: 28px; }
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITY & PRINT
   ════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--press);
  outline-offset: 3px;
}

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

@media print {
  .site-nav, .site-footer, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: var(--lead); }
}

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contact-intro {
  font-size: .9375rem;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 22px;
}

.contact-form  { display: flex; flex-direction: column; gap: 18px; }
.form-field    { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lead);
}
.form-field .req { color: var(--press); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
  transition: border-color .15s;
}
.form-field textarea { resize: vertical; min-height: 140px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

/* Honeypot — visually removed, still present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit { align-self: flex-start; cursor: pointer; border: none; font: inherit; }
.form-submit:disabled { opacity: .55; cursor: default; }

.form-status      { font-size: .875rem; line-height: 1.6; min-height: 1em; margin: 0; }
.form-status.ok   { color: #1e6b3a; }
.form-status.err  { color: var(--press); }

/* ── ARTICLES ─────────────────────────────────────────────── */
.page-intro {
  font-size: .9375rem;
  color: var(--lead);
  line-height: 1.75;
  max-width: 620px;
  margin-top: 14px;
}

.articles-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--g) 72px;
}

.article-card {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.article-card:first-child { border-top: none; padding-top: 28px; }

.article-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lead);
  margin-bottom: 12px;
}

.article-title {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-subtitle {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--lead);
  line-height: 1.5;
  margin-bottom: 14px;
}

.article-byline {
  font-size: .8125rem;
  color: var(--lead);
  letter-spacing: .03em;
  margin-bottom: 26px;
}

.article-preview p,
.article-full p {
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 18px;
}

.article-full h3 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 1.1875rem;
  color: var(--ink);
  margin: 34px 0 14px;
}

.article-full a { text-decoration: underline; text-underline-offset: 3px; }
.article-full a:hover { color: var(--press); }

.article-toggle { margin-top: 8px; cursor: pointer; font: inherit; }
.article-collapse { margin-top: 24px; }

.article-callout {
  padding: 16px 20px;
  background: var(--surface);
  border-left: 3px solid var(--press);
  margin: 24px 0;
}
.article-callout p { margin-bottom: 0; font-size: .9rem; line-height: 1.75; }

.article-callout-support { border-left-color: var(--ink); }

.article-footnote {
  font-size: 12px !important;
  color: var(--lead) !important;
  margin-top: 30px;
}

.articles-more {
  font-size: .875rem;
  font-style: italic;
  color: var(--lead);
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
