/* Carter J. Whitley — author site
   Palette: Ink Navy / Signal Gold / Ledger Green / Paper
   Type: Oswald (headings) + Lora (body) — matches the book's interior */

:root {
  --navy: #101B2D;
  --navy-deep: #0B1420;
  --gold: #F0A93E;
  --green: #2E6F5E;
  --paper: #F6F3EC;
  --ink: #17171A;
  --slate: #5B6472;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Lora', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3, .nav-brand {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1.1em; }

a { color: inherit; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.measure {
  max-width: 62ch;
}

/* ---- Nav ---- */

.site-nav {
  background: var(--navy);
  border-bottom: 1px solid rgba(240, 169, 62, 0.25);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.nav-links a:hover { opacity: 1; }

/* ---- Hero ---- */

.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 3.5rem 0 4.5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-cover img {
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-copy .kicker {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.hero-copy h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.hero-copy .subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: #C9CFD9;
  font-size: 1.15rem;
  max-width: 40ch;
  margin-bottom: 1.6rem;
}

/* signature device: one wayfinding rule, used once */
.signpost-rule {
  width: 140px;
  height: 14px;
  margin: 0.4rem 0 1.6rem;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover { background: #f5b859; }

.coming-soon {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: #9AA3B2;
  letter-spacing: 0.01em;
}

/* ---- Sections on paper ---- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #EFEAE0;
}

.section h2 {
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.book-section .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.book-parts {
  border-left: 3px solid var(--green);
  padding-left: 1.4rem;
}

.book-parts h3 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--slate);
  margin-bottom: 0.9rem;
}

.book-parts ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.book-parts li {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.about-label {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.about-label + h2 { margin-top: 0.4rem; }

/* ---- Footer ---- */

.site-footer {
  background: var(--navy-deep);
  color: #9AA3B2;
  padding: 2.6rem 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.disclaimer {
  max-width: 65ch;
  font-size: 0.85rem;
  color: #77808F;
}

/* ---- Workbooks page ---- */

.workbook-hero {
  background: var(--navy);
  color: var(--paper);
  padding: 3rem 0 3.5rem;
}

.workbook-hero h1 {
  font-size: 2.1rem;
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.workbook-hero p {
  color: #C9CFD9;
  max-width: 55ch;
  margin: 0;
}

.workbook-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.workbook-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid #DCD5C6;
  flex-wrap: wrap;
}

.workbook-item:first-child { padding-top: 0; }

.workbook-item h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.workbook-item p {
  color: var(--slate);
  margin: 0;
  max-width: 48ch;
}

.workbook-meta {
  flex: 1 1 320px;
}

/* ---- Responsive ---- */

@media (max-width: 800px) {
  .hero .container,
  .book-section .container,
  .about-section .container {
    grid-template-columns: 1fr;
  }

  .hero-cover { width: 200px; }

  .hero-copy h1 { font-size: 2.1rem; }

  .nav-links { gap: 1.1rem; }

  .footer-top { flex-direction: column; }

  .workbook-item { flex-direction: column; align-items: flex-start; }
}
