/* ============================================================
   Open Word Publishing — Design Tokens
   ============================================================ */

:root {
  /* Color */
  --ink: #15130f;          /* near-black, warm */
  --ink-soft: #232019;     /* lifted panels on dark */
  --parchment: #f6f1e4;    /* page background */
  --parchment-deep: #efe7d3;
  --charcoal: #2b2822;     /* body text on light */
  --gold: #c9a227;         /* primary accent */
  --gold-bright: #e4c667;
  --gold-deep: #8b6f2e;    /* text-safe gold on light bg */
  --ember: #a8562e;        /* small warm highlight, echoes Broken cover */
  --hairline: rgba(201, 162, 39, 0.35);
  --hairline-dark: rgba(201, 162, 39, 0.28);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-label: "Inter", -apple-system, sans-serif;

  --container: 1120px;
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow--on-dark { color: var(--gold-bright); }

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

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

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--hairline-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-word {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-word small {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.site-nav a {
  text-decoration: none;
  color: var(--parchment);
  opacity: 0.82;
  position: relative;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; }

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--hairline);
    color: var(--parchment);
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    cursor: pointer;
  }
  .site-nav {
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    border-bottom: 1px solid var(--hairline-dark);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; }
  .site-header { position: relative; }
}

/* ============================================================
   Hero (dark, with radiating light motif)
   ============================================================ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--parchment);
  overflow: hidden;
  padding: 96px 0 108px;
}

.hero-rays {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  max-width: 220%;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--parchment);
  margin-bottom: 0.4em;
}

.hero .eyebrow { display: block; margin-bottom: 18px; }

.hero-sub {
  font-size: 19px;
  color: rgba(246, 241, 228, 0.82);
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero-sub em { color: var(--gold-bright); font-style: italic; }

/* Smaller page-header variant for interior pages */
.page-header {
  background: var(--ink);
  color: var(--parchment);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-header .container { position: relative; z-index: 1; max-width: 760px; }

.page-header h1 { color: var(--parchment); font-size: clamp(2rem, 4vw, 2.7rem); }

.page-header .eyebrow { margin-bottom: 14px; display: block; }

.page-header p.lede {
  color: rgba(246, 241, 228, 0.82);
  font-size: 18px;
  max-width: 620px;
  margin-top: 0.6em;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover { background: var(--gold-bright); }

.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn--dark {
  background: var(--ink);
  color: var(--parchment);
}
.btn--dark:hover { background: var(--ink-soft); }

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Sections
   ============================================================ */

section { padding: 88px 0; }

.section--tight { padding: 64px 0; }

.section--deep {
  background: var(--parchment-deep);
  border-top: 1px solid rgba(43,40,34,0.08);
  border-bottom: 1px solid rgba(43,40,34,0.08);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 22px auto 0;
}

.rule--left { margin: 22px 0 0; }

/* ============================================================
   Book feature / card
   ============================================================ */

.book-feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 720px) {
  .book-feature { grid-template-columns: 1fr; }
  .book-feature img { max-width: 260px; margin: 0 auto; }
}

.book-cover-frame {
  position: relative;
}

.book-cover-frame img {
  box-shadow: 0 24px 48px rgba(21, 19, 15, 0.28);
}

.book-meta .eyebrow { margin-bottom: 10px; display: block; }

.book-meta h2,
.book-meta h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.2em;
}

.book-author {
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.book-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ember);
  margin-bottom: 22px;
  line-height: 1.4;
}

.book-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin: 26px 0 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(43,40,34,0.12);
}

.book-facts dt {
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.book-facts dd { margin: 0; }

/* Catalog grid (future-ready for more titles) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.catalog-card {
  text-align: center;
}

.catalog-card img {
  margin: 0 auto 18px;
  box-shadow: 0 16px 32px rgba(21, 19, 15, 0.22);
}

.catalog-card h4 { font-size: 1.15rem; margin-bottom: 4px; }

.catalog-card .book-author { margin-bottom: 0; }

.catalog-card--placeholder {
  border: 1px dashed rgba(43,40,34,0.25);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgba(43,40,34,0.55);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* ============================================================
   About / mission
   ============================================================ */

.mission {
  max-width: 720px;
  margin: 0 auto;
}

.mission blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.07);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}

.mission blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-label);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
  text-align: left;
}

@media (max-width: 640px) {
  .value-grid { grid-template-columns: 1fr; }
}

.value-card h4 {
  font-size: 1.05rem;
  font-family: var(--font-label);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 8px;
}

.value-card p { font-size: 16px; color: var(--charcoal); }

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(43,40,34,0.1);
  padding: 36px;
}

.contact-card h3 { font-size: 1.3rem; margin-bottom: 6px; }

.contact-card p.desc {
  color: rgba(43,40,34,0.7);
  font-size: 15.5px;
  margin-bottom: 22px;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(43,40,34,0.1);
  font-family: var(--font-label);
  font-size: 15px;
}

.contact-line:first-of-type { border-top: none; }

.contact-line dt {
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

.contact-line dd {
  margin: 0;
  text-align: right;
}

.contact-line a { text-decoration: none; }
.contact-line a:hover { color: var(--gold-deep); }

.notice-panel {
  margin-top: 28px;
  padding: 22px 24px;
  background: rgba(201, 162, 39, 0.09);
  border: 1px solid var(--hairline);
  font-family: var(--font-label);
  font-size: 14.5px;
  color: var(--charcoal);
  line-height: 1.6;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(246, 241, 228, 0.7);
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline-dark);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 34px; }

.footer-brand span {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 17px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-label);
  font-size: 13.5px;
}

.footer-links a { text-decoration: none; color: rgba(246, 241, 228, 0.75); }
.footer-links a:hover { color: var(--gold-bright); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(246, 241, 228, 0.5);
}
