/* Skyline Legacy Media — shared styles for every page.
   Layout: purple bands for the brand moments, warm paper bands for reading. */
:root {
  --purple: #3B1F5E;
  --purple-2: #5B2C8F;
  --gold: #C9A227;
  --paper: #F7F3EA;
  --white: #FFFFFF;
  --ink: #1E1E24;
  --muted: #4A4552;
  --line: #DCD3BF;
  --on-purple: #E8E1F2;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-2); }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 88px; }
.band--purple { background: var(--purple); color: var(--white); }
.band--white { background: var(--white); }
.band--paper { background: var(--paper); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.prose { max-width: 66ch; display: flex; flex-direction: column; gap: 18px; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-2);
}
.band--purple .eyebrow { color: var(--gold); }
.lede { font-size: 1.25rem; color: var(--muted); }
.band--purple .lede { color: var(--on-purple); }
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--purple); }
.band--purple .section-title { color: var(--white); }

/* Header */
.site-header { background: var(--purple); border-bottom: 1px solid var(--gold); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: 0.01em; }
.brand-sub { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.34em; color: var(--gold); margin-top: 4px; }
.nav-toggle {
  display: none;
  background: transparent; color: var(--white);
  border: 1px solid var(--gold); border-radius: 4px;
  font: inherit; font-size: 1rem; font-weight: 600;
  min-height: 44px; padding: 8px 16px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.site-nav a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem;
  display: inline-flex; align-items: center; min-height: 44px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--white); }
.site-nav a.nav-cta { color: var(--gold); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { width: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-top: 8px; }
  .site-nav li { border-top: 1px solid rgba(201, 162, 39, 0.35); }
  .site-nav a { width: 100%; padding: 6px 0; border-bottom: none; }
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 4px;
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #D8B23A; color: var(--ink); }
.btn--outline { border-color: var(--gold); color: var(--white); background: transparent; }
.btn--outline:hover { background: rgba(201, 162, 39, 0.15); color: var(--white); }
.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { background: var(--purple-2); color: var(--white); }

/* Hero (home + book pages) */
.hero { padding-block: 80px 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.02; }
.hero-title .sub { display: block; font-weight: 500; font-style: italic; font-size: 0.55em; color: var(--gold); margin-top: 10px; }
.byline { font-family: var(--display); font-size: 1.25rem; color: var(--on-purple); }
.cover {
  width: 100%; max-width: 360px; margin-inline: auto;
  border: 1px solid var(--gold);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
}
.status {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 4px 14px;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid .hero-art { order: -1; }
  .cover { max-width: 280px; }
}

/* Pull line under hero */
.pull { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--purple); line-height: 1.35; max-width: 34ch; }

/* Two-column feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* The Encounter typographic cover (until real cover art exists) */
.type-cover {
  aspect-ratio: 2 / 3; width: 100%; max-width: 320px; max-width: min(320px, 100%); margin-inline: auto;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--gold);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px 28px; box-shadow: 0 24px 48px rgba(30, 30, 36, 0.35);
}
.type-cover .tc-title { font-family: var(--display); font-size: 2.4rem; line-height: 1; font-weight: 700; }
.type-cover .tc-sub { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 1.3rem; margin-top: 12px; }
.type-cover .tc-author { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }
.type-cover .tc-rule { height: 1px; background: var(--gold); width: 56px; margin-top: 20px; }

/* Panels */
.panel { background: var(--white); border-top: 4px solid var(--gold); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.band--white .panel { background: var(--paper); }
.panel h3 { font-size: 1.6rem; color: var(--purple); }

/* Author block */
.author-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 760px) { .author-grid { grid-template-columns: 1fr; gap: 32px; } }
.portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 300px;
  background: var(--purple); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--display); font-size: 4rem; font-weight: 700; letter-spacing: 0.04em;
  object-fit: cover;
}

/* Book list */
.book-list { display: flex; flex-direction: column; gap: 32px; }
.book-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: start; background: var(--white); padding: 32px; border-top: 4px solid var(--gold); }
.book-row img, .book-row .type-cover { width: 180px; max-width: 100%; }
.book-row .type-cover { padding: 20px 16px; box-shadow: none; }
.book-row .type-cover .tc-title { font-size: 1.35rem; }
.book-row .type-cover .tc-sub { font-size: 0.85rem; }
.book-row .type-cover .tc-author { font-size: 0.7rem; }
.book-row h2 { font-size: 1.9rem; color: var(--purple); }
@media (max-width: 640px) { .book-row { grid-template-columns: 1fr; gap: 24px; padding: 24px; } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--purple); }
.band--purple .field label { color: var(--white); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  border: 1px solid #8C8494; border-radius: 4px; background: var(--white);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.signup .field { flex: 1 1 260px; }

/* Footer */
.site-footer { background: var(--ink); color: #CFC8D8; padding-block: 48px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer a { color: #CFC8D8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { font-family: var(--display); color: var(--white); font-weight: 700; font-size: 1.15rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; }
