/* Burnett House Books — house style
   Lamplit & Pastoral: earth tones, warm light, Georgia */

:root {
  --parchment: #FEFAF3;
  --linen: #F4ECDD;
  --umber: #8B6040;
  --umber-deep: #5C3D26;
  --ink: #2E2118;
  --body: #4A3A2E;
  --gold: #B8924A;
  --gold-soft: #D9C29A;
  --slate: #66707A;
  --line: #E4D8C4;
  --radius: 6px;
  --wrap: 1120px;
  --serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--body);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); font-weight: normal; line-height: 1.2; margin: 0; }
p { margin: 0 0 1rem; }

a { color: var(--umber); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(254, 250, 243, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--ink);
  font-size: 1.2rem; letter-spacing: .01em;
}
.brand img { width: 44px; height: 44px; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--body); text-decoration: none; font-size: .98rem;
  padding: .25rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--umber); border-bottom-color: var(--gold); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--umber); margin-bottom: .75rem;
}
.eyebrow-light { color: var(--gold-soft); }

.placeholder { font-style: italic; color: var(--slate); }
.placeholder-light { color: #CDBFAE; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--serif); font-size: 1rem;
  padding: .75rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--umber); color: #fff; }
.btn-primary:hover { background: var(--umber-deep); }
.btn-ghost { border-color: var(--umber); color: var(--umber); }
.btn-ghost:hover { background: var(--umber); color: #fff; }
.btn-light { background: var(--parchment); color: var(--umber-deep); }
.btn-light:hover { background: var(--gold-soft); }
.btn-small { font-size: .9rem; padding: .5rem 1rem; }
.btn.is-pending { opacity: .5; pointer-events: none; }

.rule {
  width: 72px; height: 2px; background: var(--gold); margin: 1.1rem auto 0;
}

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 4.5rem; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-logo { width: 100%; max-width: 480px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); margin-bottom: 1.25rem; }
.lead { font-size: 1.15rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- Book covers (placeholders until real covers arrive) ---------- */
.cover {
  aspect-ratio: 2 / 3;
  border-radius: 3px 6px 6px 3px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 1.25rem 1rem;
  color: #FBF4E6;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 10px 24px rgba(46,33,24,.18);
  position: relative;
}
.cover::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 14%;
  height: 1px; background: rgba(255,255,255,.4);
}
.cover-title { font-size: 1.15rem; line-height: 1.25; }
.cover-sub { font-size: .85rem; font-style: italic; margin-top: .5rem; opacity: .85; }
.cover-author { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 1rem; opacity: .8; }
.cover-umber { background: linear-gradient(160deg, #9A6B48, #5C3D26); }
.cover-slate { background: linear-gradient(160deg, #7C858E, #4B535B); }
.cover-gold  { background: linear-gradient(160deg, #C6A266, #8E6B33); }
.cover-night { background: linear-gradient(160deg, #3E4A63, #1F2536); }
.cover-lg { width: 220px; flex-shrink: 0; }
.cover-lg .cover-title { font-size: 1.4rem; }

/* ---------- Promotion ---------- */
.promo {
  background: linear-gradient(135deg, var(--umber-deep), var(--umber));
  color: #F4ECDD;
  padding: 3.5rem 0;
}
.promo-inner { display: flex; align-items: center; gap: 3rem; }
.promo h2 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: .75rem; }
.promo-text { max-width: 36em; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-linen { background: var(--linen); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

.book-grid, .soon-list { list-style: none; margin: 0; padding: 0; }

.book-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.25rem;
}
.book { display: flex; flex-direction: column; }
.book .cover { margin-bottom: 1.25rem; }
.book-type {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--umber); margin-bottom: .4rem;
}
.book h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.book .btn { margin-top: auto; align-self: flex-start; }

.soon-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.soon {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.soon h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.status {
  display: inline-block; margin: 0;
  font-size: .85rem; font-style: italic; color: var(--slate);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8CBB8; padding-top: 3rem; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { color: #fff; font-size: 1.2rem; margin-bottom: .35rem; }
.footer-label {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: .4rem;
}
.footer-base { padding: 1.25rem 1.5rem 1.75rem; font-size: .85rem; color: #A89884; }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .soon-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .hero-logo { max-width: 320px; }
  .lead { margin: 0 auto; }
  .actions { justify-content: center; }
  .promo-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .cover-lg { width: 180px; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: .9rem; }
  .brand span { display: none; }
}
@media (max-width: 420px) {
  .book-grid { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
