:root {
  /* Palette — exact codes from the printed cover spec */
  --green-bg: #31402c;        /* Military olive green (main background) */
  --green-deep: #263322;      /* Spine / darker forest green */
  --green-panel: #38492f;     /* Slightly lifted panel */
  --green-panel-alt: #2c3a26; /* Alternate band */
  --green-line: #4b5e43;      /* Muted green border */
  --gold: #d4af37;            /* Scholarly gold */
  --gold-bright: #e6c561;
  --blue: #58a6ff;            /* Electric ice blue */
  --white: #ffffff;
  --sage: #d1d8cc;            /* Soft sage / off-white blurb */
  --olive: #a4b39d;           /* Muted light olive (secondary text) */

  --max: 1120px;
  --radius: 12px;
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--sage);
  background: var(--green-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(38, 51, 34, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { filter: drop-shadow(0 0 6px rgba(212,175,55,0.35)); }
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.4px;
  color: var(--gold);
}
.site-nav { display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.6rem); }
.site-nav a { color: var(--olive); font-size: 0.94rem; font-weight: 500; }
.site-nav a:hover { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.7rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #2a2410; box-shadow: 0 8px 22px rgba(212,175,55,0.28);
}
.btn-gold:hover { color: #2a2410; }
.btn-outline { border: 1px solid var(--green-line); color: var(--sage); }
.btn-outline:hover { color: var(--gold-bright); border-color: var(--gold); }
.btn-ghost {
  border: 1px solid var(--blue); color: var(--blue) !important;
  padding: 0.45rem 1.1rem;
}
.btn-ghost:hover { background: rgba(88,166,255,0.12); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--olive); margin: 0 0 0.6rem;
}
.title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 4.4rem); line-height: 1.04;
  color: var(--gold); margin: 0 0 0.8rem; letter-spacing: 0.5px;
  text-shadow: 0 2px 18px rgba(212,175,55,0.18);
}
.subtitle {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--olive);
  margin: 0 0 1.4rem;
}
.lede { color: var(--sage); font-size: 1.05rem; max-width: 34rem; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-actions.center { justify-content: center; }
.edition {
  margin-top: 1.6rem; font-family: var(--font-serif); font-style: italic;
  letter-spacing: 3px; text-transform: uppercase; font-size: 0.78rem; color: var(--olive);
}

/* ---------- Interactive 3D cover ---------- */
.hero-cover { display: flex; flex-direction: column; align-items: center; }
.cover-stage { perspective: 1600px; width: 100%; max-width: 380px; }
.cover-3d {
  position: relative; width: 100%; aspect-ratio: 690 / 1000;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.cover-3d.flipped { transform: rotateY(180deg); }
.cover-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.18);
}
.cover-face img { width: 100%; height: 100%; object-fit: cover; }
.cover-back { transform: rotateY(180deg); }
.cover-3d:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

.cover-controls { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.chip {
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  color: var(--sage); background: var(--green-panel);
  border: 1px solid var(--green-line); border-radius: 999px;
  padding: 0.5rem 1.1rem; cursor: pointer; transition: all 0.15s ease;
}
.chip:hover { color: var(--gold-bright); border-color: var(--gold); transform: translateY(-1px); }
.cover-hint { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--olive); }

/* ---------- Bands ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); }
.band-alt { background: var(--green-panel-alt); border-top: 1px solid var(--green-line); border-bottom: 1px solid var(--green-line); }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-inner.narrow { max-width: 760px; }
.band-inner.center { text-align: center; }
.section-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--gold); margin: 0 0 1.4rem;
}
.band p { font-size: 1.06rem; color: var(--sage); }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem; margin-top: 2rem;
}
.card {
  background: var(--green-panel); border: 1px solid var(--green-line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-glyph { font-family: var(--font-serif); font-size: 2.3rem; font-style: italic; color: var(--blue); line-height: 1; margin-bottom: 0.5rem; }
.card h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold); margin: 0 0 0.5rem; }
.card p { font-size: 0.97rem; color: var(--olive); margin: 0; }

/* ---------- Buy ---------- */
.buy { background: radial-gradient(1200px 400px at 50% -10%, rgba(88,166,255,0.10), transparent), var(--green-bg); }
.fine { font-size: 0.85rem; color: var(--olive); margin-top: 1rem; }
.buy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem; margin-top: 2.4rem; text-align: left;
}
.buy-card {
  position: relative; background: var(--green-panel);
  border: 1px solid var(--green-line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
}
.buy-card h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); margin: 0.3rem 0 0.6rem; }
.buy-card p { font-size: 1rem; color: var(--sage); }
.buy-card .btn { margin-top: 0.6rem; }
.buy-badge {
  position: absolute; top: -0.7rem; left: 1.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: #2a2410; background: var(--gold); padding: 0.25rem 0.7rem; border-radius: 999px;
}
.buy-badge.alt { background: var(--blue); color: #06213f; }

/* ---------- Forms ---------- */
.lead-p { max-width: 720px; color: var(--sage); font-size: 1.06rem; }
.form-wrap {
  margin-top: 2.4rem; background: var(--green-panel);
  border: 1px solid var(--green-line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); max-width: 820px;
}
.form-title { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold); margin: 0 0 1.2rem; }
.site-form label {
  display: block; font-size: 0.9rem; font-weight: 600; color: var(--olive);
  margin-bottom: 1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.site-form input[type="text"],
.site-form input[type="email"],
.site-form select,
.site-form textarea {
  display: block; width: 100%; margin-top: 0.4rem;
  font-family: var(--font-sans); font-size: 1rem; color: var(--white);
  background: var(--green-deep); border: 1px solid var(--green-line);
  border-radius: 8px; padding: 0.65rem 0.8rem;
}
.site-form textarea { resize: vertical; }
.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}
.site-form select option { color: var(--white); background: var(--green-deep); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.h-captcha { margin: 0.6rem 0 0.2rem; min-height: 78px; }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.4rem; flex-wrap: wrap; }
.form-status { font-size: 0.92rem; color: var(--olive); }
.form-status.is-ok { color: #8fd694; }
.form-status.is-error { color: #e79a9a; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 3rem 1.5rem 2.5rem; background: var(--green-deep); border-top: 1px solid var(--green-line); }
.footer-mark { margin: 0 auto 1rem; filter: drop-shadow(0 0 8px rgba(212,175,55,0.3)); }
.footer-title { font-family: var(--font-serif); color: var(--gold); font-size: 1.15rem; margin: 0 0 0.3rem; }
.footer-sub { color: var(--olive); font-size: 0.9rem; max-width: 640px; margin: 0 auto 1rem; }
.footer-copy { color: var(--olive); font-size: 0.84rem; margin: 0; }
.contact { color: var(--olive); }

/* ---------- Zoom lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 22, 12, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-close {
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 2rem; line-height: 1; color: var(--sage);
  background: none; border: none; cursor: pointer; z-index: 2;
}
.lb-close:hover { color: var(--gold-bright); }
.lb-toolbar {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.5rem; z-index: 2;
  background: rgba(38,51,34,0.85); border: 1px solid var(--green-line);
  border-radius: 999px; padding: 0.4rem 0.7rem;
}
.lb-btn {
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; min-width: 2.2rem;
  color: var(--sage); background: none; border: none; cursor: pointer;
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.lb-btn:hover { color: var(--gold-bright); background: rgba(212,175,55,0.12); }
.lb-sep { width: 1px; height: 1.2rem; background: var(--green-line); margin: 0 0.2rem; }
.lb-stage {
  width: 100%; height: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none;
}
.lb-stage.grabbing { cursor: grabbing; }
.lb-stage img {
  max-width: 82vw; max-height: 82vh; user-select: none;
  transform-origin: center center; will-change: transform;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.05s linear;
}
.lb-hint { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; font-size: 0.82rem; color: var(--olive); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-cover { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-3d { transition: none; }
  .lb-stage img { transition: none; }
}
