/* =============================================================================
   C.L. Stegall — clstegall.com
   Homepage styles. Direction: "Neutral Ground".
   ========================================================================== */

/* ---- BRAND PALETTE — edit these five to change the look ------------------ */
:root {
  --iron-grey:    #394648;  /* base page ground                              */
  --dark-walnut:  #581908;  /* primary accent (buttons, banner, rules)       */
  --almond-silk:  #dfbbb1;  /* primary text and headings on dark             */
  --light-blue:   #9fc2cc;  /* links, kickers, secondary text                */
  --frozen-water: #d0f4ea;  /* bright highlight (titles, link hover)         */

  /* ---- SUPPORT NEUTRALS (derived; usually leave alone) ------------------- */
  --ink:          #232c2d;  /* below iron grey — header, footer, scrim       */
  --surface:      #303c3e;  /* iron grey lifted one step — banded sections   */
  --body-text:    #cbb8b1;  /* almond silk, dimmed for long copy             */
  --muted:        #a9b9bb;  /* cool grey for fine print                      */
  --walnut-text:  #e7c8c0;  /* body copy on a walnut ground                  */

  /* ---- TYPE --------------------------------------------------------------*/
  --serif: "Bodoni Moda", Didot, "Times New Roman", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ---- LAYOUT ------------------------------------------------------------*/
  --wrap:      1180px;
  --gutter:    48px;
  --topbar-h:  20px;
  --header-h:  76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--iron-grey);
  color: var(--body-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--light-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--frozen-water); }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--frozen-water); color: var(--ink);
  padding: 10px 18px; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Shared bits --------------------------------------------------------- */
.eyebrow {
  font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--light-blue); margin-bottom: 20px;
}
.eyebrow-light { color: var(--almond-silk); opacity: .75; letter-spacing: .26em; font-size: 11px; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--dark-walnut); color: var(--almond-silk); }
.btn-primary:hover { background: #6e2109; color: var(--frozen-water); }

.btn-outline { border-color: rgba(223,187,177,.42); color: var(--almond-silk); }
.btn-outline:hover { border-color: var(--almond-silk); color: var(--frozen-water); }

.btn-shop { border-color: var(--light-blue); color: var(--frozen-water); }
.btn-shop:hover { background: rgba(159,194,204,.14); color: var(--frozen-water); }

.text-link {
  display: inline-block; margin-top: 18px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid rgba(159,194,204,.5); padding-bottom: 3px;
}

/* =============================================================================
   Top banner — 20px, locked to the top
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  background: var(--dark-walnut);
}
.topbar-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--almond-silk);
  padding: 0 12px;
  white-space: nowrap; overflow: hidden;
}
.topbar-name { font-weight: 600; }
.topbar-sub  { opacity: .55; }
.topbar-link {
  color: var(--frozen-water); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.topbar-link:hover { color: #fff; }

/* =============================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: var(--topbar-h); z-index: 55;
  background: rgba(35,44,45,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(159,194,204,.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand {
  font-family: var(--serif); font-weight: 600;
  font-size: 21px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--almond-silk);
}
.brand:hover { color: var(--frozen-water); }

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"] { color: var(--almond-silk); border-bottom-color: var(--dark-walnut); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(159,194,204,.35);
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar { display: block; width: 18px; height: 1.5px; background: var(--almond-silk); }

/* =============================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background-image: url("../img/hero-alley.jpg");
  background-size: cover;
  background-position: 62% 34%;
  border-bottom: 1px solid rgba(159,194,204,.2);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--ink) 6%,
    rgba(35,44,45,.94) 38%,
    rgba(35,44,45,.42) 66%,
    rgba(35,44,45,.74) 100%);
}
.hero-inner { position: relative; }

.hero-name { padding: 58px 0 6px; text-align: center; }
.hero-name h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--almond-silk);
  text-shadow: 0 4px 34px rgba(20,26,27,.85);
}
.hero-motto {
  margin-top: 14px;
  font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--light-blue);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 330px;
  gap: 66px; align-items: center;
  padding: 46px 0 84px;
}
.hero-title {
  font-family: var(--serif); font-weight: 600; line-height: 1;
  font-size: clamp(56px, 7vw, 88px); letter-spacing: .03em;
  color: var(--frozen-water);
}
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2vw, 22px); line-height: 1.4;
  color: var(--almond-silk);
  margin-top: 22px; max-width: 30ch;
}
.hero-blurb { margin-top: 20px; max-width: 52ch; }
.buy-label { margin-top: 34px; margin-bottom: 14px; font-size: 11px; letter-spacing: .26em; }

.buy-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-cover img {
  width: 100%;
  border: 1px solid rgba(223,187,177,.22);
  box-shadow: 0 34px 70px rgba(15,20,21,.72);
}
.hero-cover { margin: 0; }

/* =============================================================================
   Sections
   ========================================================================== */
.section { padding: 92px 0 84px; }
.band {
  background: var(--surface);
  border-top: 1px solid rgba(159,194,204,.16);
  border-bottom: 1px solid rgba(159,194,204,.16);
  padding: 76px 0;
}

.section-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--almond-silk); }
.section-rule { flex-grow: 1; height: 1px; background: rgba(159,194,204,.28); }
.section-sub { color: var(--muted); font-size: 15px; margin-bottom: 44px; }

/* ---- Book grid ----------------------------------------------------------- */
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 34px; }
.book img {
  width: 100%; aspect-ratio: 5 / 8; object-fit: cover;
  box-shadow: 0 18px 40px rgba(15,20,21,.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book a:hover img { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(15,20,21,.62); }
.book-kicker {
  display: block; margin-top: 16px;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--light-blue);
}
.book-title {
  display: block; margin-top: 4px;
  font-family: var(--serif); font-size: 22px; color: var(--almond-silk);
}
.book-serial img { outline: 1px solid rgba(208,244,234,.42); outline-offset: 5px; }
.book-serial .book-kicker { color: var(--frozen-water); }

/* ---- About + newsletter cards -------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; align-items: stretch; }

.card { padding: 38px; }
.card-about {
  background: var(--iron-grey);
  border: 1px solid rgba(223,187,177,.2);
  display: flex; gap: 28px; align-items: flex-start;
}
.card-portrait { width: 126px; flex-shrink: 0; filter: grayscale(.35); }
.card-title { font-size: 27px; color: var(--almond-silk); }
.card-title-lg { font-size: 31px; }
.card-text { margin-top: 14px; font-size: 15px; }
.card-text-light { color: var(--walnut-text); }

.card-signup {
  background: var(--dark-walnut);
  display: flex; flex-direction: column; justify-content: center;
}

.signup-form { display: flex; gap: 10px; margin-top: 24px; }
.signup-form input {
  flex-grow: 1; min-width: 0;
  background: rgba(35,44,45,.5);
  border: 1px solid rgba(223,187,177,.4);
  color: var(--almond-silk);
  padding: 14px 16px;
  font-family: var(--sans); font-size: 14.5px;
}
.signup-form input::placeholder { color: rgba(223,187,177,.6); }
.signup-form input:focus-visible { outline-offset: 1px; }
.signup-form input[aria-invalid="true"] { border-color: var(--frozen-water); }
.signup-form button {
  background: var(--frozen-water); color: #2b3536; border: 0;
  padding: 14px 26px; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px;
  letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
  transition: background-color .18s ease;
}
.signup-form button:hover { background: #e7fbf4; }

.form-msg { margin-top: 12px; font-size: 13.5px; color: var(--frozen-water); }
.form-msg[data-state="error"] { color: #f0d2ca; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--almond-silk); opacity: .72; }

/* =============================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-top: 56px; padding-bottom: 48px;
}
.footer-brand {
  font-family: var(--serif); font-size: 19px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--almond-silk);
}
.footer-fine { font-size: 13px; color: #8fa2a4; margin-top: 6px; }

.social { display: flex; gap: 14px; align-items: center; }
.social a {
  display: flex; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(159,194,204,.3);
  transition: border-color .18s ease, background-color .18s ease;
}
.social a:hover { border-color: var(--frozen-water); background: rgba(208,244,234,.08); }
.social svg { width: 19px; height: 19px; }

/* =============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --gutter: 36px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 280px; gap: 44px; }
  .book-grid { gap: 24px; }
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 36px 0 64px; }
  .hero-cover { max-width: 300px; }
  .hero-tagline, .hero-blurb { max-width: 58ch; }
  .book-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; --header-h: 69px; }

  .topbar-sub { display: none; }

  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(159,194,204,.2);
    padding: 8px 0;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 15px var(--gutter);
    border-bottom: 0;
    font-size: 13px;
  }
  .nav a[aria-current="page"] { border-bottom: 0; color: var(--frozen-water); }

  .header-inner { position: relative; padding-top: 12px; padding-bottom: 12px; }

  .section { padding: 64px 0 60px; }
  .band { padding: 56px 0; }

  .card { padding: 28px; }
  .card-about { flex-direction: column; gap: 20px; }
  .card-portrait { width: 108px; }

  .signup-form { flex-direction: column; }
  .signup-form button { padding: 15px 26px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 520px) {
  .book-grid { grid-template-columns: 1fr; gap: 32px; max-width: 300px; }
  .buy-row .btn { width: 100%; text-align: center; }
  .hero-name { padding-top: 40px; }
  .social { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .book a:hover img { transform: none; }
}
