/* Halden Books — literary static site
   Mood: cold institutional · amber/green status accent · typography-led
   No framework. Mobile-first. */

:root {
  --ink: #1a1c1e;
  --ink-muted: #4a4f55;
  --paper: #f4f1ea;
  --paper-deep: #e8e3d8;
  --rule: #c9c3b6;
  --amber: #c48a2a;
  --green: #3d6b4f;
  --status-amber: #b8860b;
  --status-green: #2f6b4a;
  --max: 38rem;
  --wide: 52rem;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-serif);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--amber);
}

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

/* —— Header / nav —— */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--amber);
}

.nav-toggle {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--amber);
  padding-bottom: 0.1rem;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--rule);
    padding: 0.75rem 1.25rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.65rem;
  }
}

/* —— Layout —— */
.site-main {
  flex: 1;
  width: 100%;
}

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

.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 100%);
}

.hero-imprint {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
}

.hero-brand {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.65rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero-byline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}

.hero-lede {
  font-size: 1.05rem;
  font-style: italic;
  max-width: 28rem;
  margin: 0 auto 2rem;
  color: var(--ink);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  display: inline-block;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-secondary {
  border-color: var(--rule);
  color: var(--ink-muted);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

/* —— Status strip accent —— */
.status-strip {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--status-green) 0%,
    var(--status-green) 42%,
    var(--status-amber) 42%,
    var(--status-amber) 58%,
    var(--status-green) 58%,
    var(--status-green) 100%
  );
  opacity: 0.85;
}

/* —— Prose —— */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

h1.page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.page-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.5rem;
}

.page-sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.6;
}

.comps {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 2.5rem 0 0;
  letter-spacing: 0.02em;
}

.comps em {
  font-style: italic;
  color: var(--ink);
}

.tagline {
  font-style: italic;
  color: var(--ink-muted);
  margin: 1.5rem 0 0;
}

/* —— Cover (Opt D portrait ~2:3) —— */
.hero-cover {
  margin: 0 auto 1.75rem;
  max-width: 18rem;
}

.hero-cover img,
.cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 1855;
  object-fit: cover;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 28px rgba(26, 28, 30, 0.12);
  background: var(--paper-deep);
}

.cover-caption {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0.55rem 0 0;
  text-align: center;
}

.cover-block {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.cover-figure {
  margin: 0;
}

@media (min-width: 720px) {
  .cover-block,
  .cover-block--portrait {
    grid-template-columns: minmax(10rem, 14rem) 1fr;
  }
}

.blurb p {
  margin: 0 0 1rem;
}

.meta-list {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  color: var(--ink-muted);
}

.meta-list li {
  margin: 0.35rem 0;
  padding-left: 0;
}

.meta-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Excerpt —— */
.excerpt-body {
  font-size: 1.02rem;
  line-height: 1.75;
}

.excerpt-body .chapter-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}

.excerpt-body p {
  margin: 0 0 1.25rem;
  text-indent: 0;
}

.excerpt-body p + p {
  text-indent: 1.25em;
}

.excerpt-end {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

.helix-line {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 1.25rem 0;
  text-indent: 0 !important;
}

/* —— Press / contact —— */
.card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.4rem;
  margin: 1.5rem 0;
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
}

.card p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.mailto {
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 1.25rem 2.25rem;
  background: var(--paper-deep);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 0.4rem;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
}

.footer-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
  opacity: 0.85;
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* —— Watch (book page video grid) ——
   Wide: 2-up 16:9 videos, parts to come in a compact 4-up row.
   Narrow or portrait (same query as the <source media>): 9:16 swipe row. */
.watch { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.watch-grid { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(4, 1fr); }
.watch-grid:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.watch-item { margin: 0; min-width: 0; }
.watch-item--video { grid-column: span 2; }
.watch-frame { aspect-ratio: 16 / 9; background: var(--ink) center / cover no-repeat; border: 1px solid var(--rule); overflow: hidden; }
.watch-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.watch-frame video:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.watch-frame--soon { display: flex; align-items: center; justify-content: center; background: var(--paper-deep); }
.watch-frame--soon,
.watch-caption { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.watch-caption { margin: 0.55rem 0 0; }

@media (max-width: 699px), (orientation: portrait) {
  .watch-grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin: 0 -1.25rem;
    padding: 0.25rem 1.25rem 0.75rem;
    scroll-padding-inline: 1.25rem;
  }
  .watch-item {
    flex: 0 0 min(74vw, 39vh);
    flex: 0 0 min(74vw, 39svh);
    scroll-snap-align: start;
  }
  .watch-frame { aspect-ratio: 9 / 16; }
  .watch-caption { font-size: 0.72rem; }
}

/* —— Small-screen comfort (tap targets, text size, measure) —— */
.brand,
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  margin: -0.6rem 0;
}

.site-nav a[aria-current="page"] {
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}

.nav-toggle { min-height: 44px; min-width: 44px; margin: -0.35rem 0; }

.wrap .prose p,
.excerpt-body p,
.blurb p,
.card p,
.seo-context,
.note { max-width: 29em; }

.hero .buy-secondary { max-width: 29em; margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .site-nav a { display: flex; margin: 0; }
  .site-nav ul { gap: 0; }
  .meta-list,
  .note,
  .excerpt-end { font-size: 0.9rem; }
  .buy-secondary { line-height: 2.5; }
  .buy-secondary a { padding: 0.7rem 0; }
  .hero { padding-top: 2.25rem; }
  .hero-imprint { margin-bottom: 1.25rem; }
  .hero-cover { max-width: 13rem; }
  .cover-block--portrait .cover-figure { max-width: 15rem; margin: 0 auto; }
  .buy-top { justify-content: flex-start; margin: -0.75rem 0 1.75rem; }
}

@media (min-width: 721px) {
  .buy-top { display: none !important; }
}

/* —— Home hero with Mara ——
   Phones: wide 21:9 strip of Mara above the cover. 721px+: cover left, Mara + copy right.
   Cover stays the largest image (LCP); Mara is decoding="async", no fetchpriority. */
.hero-grid { display: grid; grid-template-areas: "mara" "cover" "copy"; justify-items: center; }
.hero-mara { grid-area: mara; width: 100%; margin: 0 0 1.5rem; }
.hero-mara img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); border: 1px solid var(--rule); }
.hero-grid .hero-cover { grid-area: cover; width: 100%; }
.hero-copy { grid-area: copy; }

@media (max-width: 720px) {
  .hero { padding-top: 0; }
  .hero-imprint { display: none; }
  .hero-mara { width: calc(100% + 2.5rem); margin: 0 -1.25rem 1.25rem; }
  .hero-mara img { aspect-ratio: 1200 / 514; border: 0; border-bottom: 1px solid var(--rule); }
  .hero-grid .hero-cover { max-width: 12rem; margin-bottom: 1.25rem; }
  .hero-grid .cover-caption { display: none; }
  .hero-brand { margin-bottom: 0.4rem; }
  .hero-title { margin-bottom: 0.6rem; }
  .hero-byline { margin-bottom: 1rem; }
  .hero-lede { margin-bottom: 1.25rem; }
}

@media (min-width: 721px) {
  .hero { padding-top: 1.75rem; text-align: left; }
  .hero-imprint { display: none; }
  .hero-grid {
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "cover mara" "cover copy";
    column-gap: 2.25rem;
    align-items: start;
    justify-items: stretch;
    max-width: var(--wide);
    margin: 0 auto;
  }
  .hero-grid .hero-cover { max-width: none; margin: 0; }
  .hero-mara { margin: 0 0 1rem; }
  .hero-title { margin-bottom: 0.6rem; }
  .hero-byline { margin-bottom: 1rem; }
  .hero-copy .cta-row { justify-content: flex-start; }
  .hero-lede { margin: 0 0 1.25rem; }
  .hero .buy-secondary { margin-left: 0; }
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 18rem minmax(0, 28rem); column-gap: 2.5rem; justify-content: center; }
}

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

/* Homepage CTR tweaks (2026-10-20) */
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.excerpt-note { font-family: var(--font-sans); font-size: 0.8rem; color: var(--ink-muted); margin: 0.5rem 0 1rem; }
.promise-next { font-family: var(--font-sans); font-size: 0.9rem; margin: 1rem 0 0; }
.promise-next a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-quick { display: none; }
@media (max-width: 720px) {
  .hero-grid { grid-template-areas: "mara" "cover" "quick" "copy"; }
  .hero-quick { grid-area: quick; display: flex; flex-direction: column; align-items: stretch;
                gap: 0.6rem; width: 100%; max-width: 20rem; margin: 0 auto 1.5rem; }
  .hero-quick .btn { text-align: center; letter-spacing: 0.05em; padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media (max-width: 720px) {
  .hero-excerpt, .excerpt-note { display: none; }
}
