/* Senior Activity Books — Memory Lane Puzzle Books
   Local static site. Large type, high contrast, no third-party scripts. */

:root {
  --cream: #F6F0E4;
  --cream-dark: #E8DFCD;
  --paper: #FFFbf5;
  --ink: #1A2744;
  --ink-soft: #3D4A63;
  --navy: #1B365D;
  --navy-deep: #12243F;
  --gold: #C4A046;
  --gold-bright: #E0C36A;
  --teal: #21605D;
  --teal-dark: #174846;
  --burgundy: #7A2E44;
  --rule: #D4CBB8;
  --shadow: 0 12px 30px rgba(18, 36, 63, 0.16);
  --radius: 10px;
  --max: 70rem;
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.2rem;
  --step-1: 1.4rem;
  --step-2: clamp(1.7rem, 1.4rem + 1.2vw, 2.15rem);
  --step-3: clamp(2.15rem, 1.6rem + 2.2vw, 3.15rem);
  --space: 1.25rem;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff") format("woff");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff") format("woff");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

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

html {
  font-size: 112.5%; /* 18px root; body steps up from there */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-dark); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--cream); }

.wrap {
  width: min(calc(100% - 2.4rem), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--navy-deep);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
  padding: 1rem 0 1.1rem;
}
.wordmark {
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.wordmark:hover { color: var(--cream); }
.wordmark-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.wordmark-series {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
}
.site-nav a:hover { background: rgba(255,255,255,0.08); color: var(--cream); }
.site-nav a[aria-current="page"] {
  background: rgba(224, 195, 106, 0.18);
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy) 70%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 3rem 0 3.4rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 0.85rem;
}
.hero h1, h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: inherit;
}
.hero .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 36rem;
  color: #F3EBDA;
  margin: 0 0 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-covers {
  position: relative;
  min-height: 18rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-covers a {
  display: block;
  width: 48%;
  max-width: 16rem;
  transition: transform 0.2s ease;
}
.hero-covers a:hover,
.hero-covers a:focus-visible { transform: translateY(-6px); }
.hero-covers img {
  width: 100%;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    3px 0 0 #0f1c33,
    10px 18px 28px rgba(0,0,0,0.35);
}
.hero-cover-1 { transform: rotate(-4deg); z-index: 1; }
.hero-cover-2 { transform: rotate(5deg); margin-left: -12%; z-index: 2; }
.hero-covers a:hover .hero-cover-1,
.hero-covers a:focus-visible .hero-cover-1 { transform: rotate(-4deg); }
.hero-covers a:hover .hero-cover-2,
.hero-covers a:focus-visible .hero-cover-2 { transform: rotate(5deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.1rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-bright); color: var(--navy-deep); }
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--cream); }
.btn-navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-deep); color: var(--cream); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-block { width: 100%; }

/* Features */
.features {
  background: var(--cream-dark);
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .feature-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.feature-list h2, .feature-list h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.feature-list p { margin: 0; color: var(--ink-soft); }

/* Sections */
.section { padding: 3.25rem 0; }
.section h2 {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 600;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}
.section-intro {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}

/* Book cards */
.book-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}
.book-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(18, 36, 63, 0.06);
}
.book-card .cover-wrap {
  background: #efe8d8;
  margin: -1.15rem -1.15rem 1rem;
  padding: 1.1rem 1.4rem 0.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: center;
}
.book-card img.cover {
  width: min(100%, 16rem);
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    2px 0 0 #1a2744,
    0 10px 24px rgba(18, 36, 63, 0.2);
}
.book-card .kicker {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.3rem;
}
.book-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.book-card .subtitle { margin: 0 0 0.75rem; color: var(--ink-soft); }
.book-card .meta {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.book-card .actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.badge {
  display: inline-block;
  width: fit-content;
  align-self: start;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin: 0 0 0.45rem;
}
.book-card.is-coming .cover-wrap { position: relative; }
.book-card.is-coming .kicker { color: var(--burgundy); }

/* Bands */
.band {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 0;
}
.band h2 { color: var(--cream); }
.band p { color: #F3EBDA; font-size: 1.25rem; max-width: 40rem; }
.band-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 700px) {
  .band-split { grid-template-columns: 1.4fr auto; }
}

/* Prose pages */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 2.6rem 0 2.4rem;
  border-bottom: 4px solid var(--gold);
}
.page-hero .lede {
  margin: 0;
  font-size: var(--step-1);
  max-width: 40rem;
  color: #F3EBDA;
}
.prose { max-width: 42rem; }
.prose p, .prose li { font-size: 1.22rem; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  margin: 2.2rem 0 0.7rem;
  font-weight: 600;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.4rem;
  font-weight: 600;
}
.prose ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.prose ol.steps > li {
  position: relative;
  padding: 0 0 1.5rem 3.3rem;
  border-left: 2px solid var(--rule);
  margin-left: 1rem;
}
.prose ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.prose ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.1rem;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.prose ol.steps h3 { margin-top: 0.15rem; }
.note {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.note p { margin: 0; }

/* Sample previews */
.preview-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (min-width: 700px) {
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
}
.preview-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(18, 36, 63, 0.07);
}
.preview-card img { width: 100%; }
.preview-card figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #E8DFCD;
  padding: 2.5rem 0 2rem;
  border-top: 4px solid var(--gold);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 1.5rem 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}
.site-footer a { color: var(--gold-bright); }
.site-footer a:hover { color: #fff; }
.site-footer h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.site-footer p { margin: 0 0 0.7rem; }
.footer-note {
  font-size: 1.05rem;
  color: #C9C0AD;
  max-width: 44rem;
}
.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(212, 203, 184, 0.25);
  font-size: 1.05rem;
  color: #C9C0AD;
}
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0.2rem 0; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }

/* Contact line */
.contact-line { font-size: 1.25rem; }

@media (max-width: 799px) {
  .hero-covers { min-height: 17rem; padding-bottom: 0.4rem; }
  .hero-covers a { width: 55%; max-width: 15rem; }
  .hero-cover-2 { margin-left: -8%; }
}

@media (max-width: 599px) {
  .hero { padding: 2.1rem 0 2.3rem; }
  .section { padding: 2.4rem 0; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-covers a { transition: none; }
}

@media print {
  .site-header, .site-footer .footer-nav, .hero-actions, .btn { }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .site-header, .site-footer, .band, .hero, .page-hero {
    background: #fff !important;
    color: #000 !important;
    border-color: #000;
  }
  .wordmark, .site-nav a, .hero .lede, .page-hero .lede { color: #000 !important; }
}

.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;
}

/* conversion additions */
.gift-banner{display:inline-block;background:#B3262E;color:#fff;font-weight:700;padding:.45rem .9rem;border-radius:999px;margin:0 0 .8rem;font-size:1.05rem}
.gift-note{color:#B3262E;font-weight:700;margin:.3rem 0}
.btn-buy{font-size:1.15rem}

/* sticky buy bar (mobile-first, hidden on wide screens) */
.buy-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;gap:.75rem;align-items:center;justify-content:space-between;padding:.6rem .9rem;background:#12243F;color:#fff;box-shadow:0 -6px 18px rgba(0,0,0,.18)}
.buy-bar-text{font-size:1rem;line-height:1.25}
.buy-bar .btn{white-space:nowrap;padding:.55rem 1rem;font-size:1.05rem}
body{padding-bottom:4.5rem}
@media (min-width:900px){.buy-bar{left:auto;right:1.25rem;bottom:1.25rem;border-radius:12px;max-width:34rem}}
@media print{.buy-bar{display:none}}
