/* Rain Dance Press LLC — site stylesheet
   Palette and type carried forward from the 2026-08 design.
   SOURCE FILE. build.sh copies this to site/assets/style.css — edit it here, not there. */

:root {
  --bg:      #f4ecd9;
  --card:    #fbf7ec;
  --rule:    #c9c0ac;
  --ink:     #14110d;
  --muted:   #2f2820;
  --accent:  #1e3a5f;
  --med:     #4a5a3d;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --sans:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap:    1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #14253a; text-decoration-thickness: 2px; }
::selection { background: #d6e2ee; color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; width: 100%; }

/* ---------- header ---------- */
.announce {
  background: var(--ink); color: var(--bg); text-align: center;
  padding: 9px 24px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em;
}
.announce em { font-family: var(--serif); font-size: 14px; }
.announce .dim { color: #c9c0ac; }

header.site {
  border-bottom: 1px solid var(--rule); background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand span { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
nav.site { display: flex; align-items: center; gap: 26px; font-family: var(--sans); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
nav.site a { text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; padding-bottom: 3px; }
nav.site a:hover { color: var(--ink); }
nav.site a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- type ---------- */
main { flex: 1; }
h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; margin: 0 0 20px; }
h1.hero { font-size: clamp(44px, 7vw, 96px); max-width: 14ch; margin-inline: auto; text-align: center; text-wrap: balance; }
h1.page { font-size: clamp(38px, 5vw, 58px); max-width: 20ch; }
h2 { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 14px; }
h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
p  { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
p.lede { font-style: italic; font-size: 22px; line-height: 1.45; max-width: 46ch; }
.eyebrow {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em; font-weight: 500; color: var(--med); margin: 0 0 12px;
}
.eyebrow.tech { color: var(--accent); }

section { padding: 72px 0; }
section.tight { padding: 48px 0; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.card h2, .card h3 { margin: 0; }
.card p { margin: 0; }

.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: 8px; background: var(--accent); color: var(--card);
  text-decoration: none; display: inline-block; margin-top: 8px;
}
.btn:hover { background: #14253a; color: var(--card); text-decoration: none; }
.btn.med { background: var(--med); }
.btn.med:hover { background: #3a4830; }

.tag {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted);
  display: inline-block;
}
.tag.soon { background: #efe6cf; }
.tag.live { background: #dfe7d6; border-color: var(--med); color: #33402a; }

/* ---------- book detail ---------- */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.detail img.cover { width: 100%; border-radius: 4px; box-shadow: 0 6px 16px rgba(20,17,13,.10), 0 16px 36px rgba(20,17,13,.08); }
.meta { font-family: var(--sans); font-size: 14px; line-height: 1.9; color: var(--muted); list-style: none; padding: 0; margin: 16px 0 0; }
.meta strong { color: var(--ink); font-weight: 600; }

.note {
  background: var(--card); border-left: 3px solid var(--med);
  padding: 16px 20px; margin: 24px 0; border-radius: 0 6px 6px 0;
}
.note p { margin: 0; font-size: 15px; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 40px; }
.prose ul, .prose ol { font-size: 17px; line-height: 1.7; color: var(--muted); padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--rule); background: var(--bg); padding: 40px 0; margin-top: 40px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer.site p, footer.site nav { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  section { padding: 48px 0; }
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .detail img.cover { max-width: 240px; }
  header.site .wrap { padding-top: 14px; padding-bottom: 14px; }
  nav.site { gap: 18px; font-size: 13px; }
}
