/* LoreFuel — shared styles for lorefuel.app
   Mirrors constants/theme.ts: cream paper, ink, marigold/periwinkle accents,
   square corners, hard offset shadows. Georgia stands in for DM Serif Display
   and the system mono for JetBrains Mono, the same substitution the app's
   email templates make. */

:root {
  --cream:      #EFE6D4;
  --cream-warm: #FDF7E8;
  --ink:        #1A1613;
  --ink-soft:   rgba(26, 22, 19, 0.72);
  --ink-mute:   rgba(26, 22, 19, 0.52);
  --rule:       rgba(26, 22, 19, 0.16);
  --marigold:   #F4B02C;
  --periwinkle: #6B5CB0;
  --link:       #574899;
  --surface:    #FDF7E8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream:      #1A1613;
    --cream-warm: #221D18;
    --ink:        #EFE6D4;
    --ink-soft:   rgba(239, 230, 212, 0.74);
    --ink-mute:   rgba(239, 230, 212, 0.52);
    --rule:       rgba(239, 230, 212, 0.18);
    --link:       #B6A8EF;
    --surface:    #221D18;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 22px 80px; }
.wrap.wide { max-width: 760px; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}
/* The count carries the whole line, so it gets weight rather than a colour —
   an accent hue inside a headline reads as a link. nowrap keeps "seventeen
   books" from splitting across a line break, which would strand the number and
   break the emphasis in half at narrow widths. */
h1 strong { font-weight: 700; white-space: nowrap; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 44px 0 12px; }
h3 { font-size: 1.05rem; margin: 26px 0 6px; }
p { margin: 0 0 15px; max-width: 66ch; }
a { color: var(--link); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }

.eyebrow {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.lead { font-size: 1.0625rem; color: var(--ink-soft); }
.muted { color: var(--ink-mute); font-size: 0.9375rem; }

/* masthead ---------------------------------------------------------------- */
header.top { padding: 52px 0 30px; }
header.top .brand {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  margin-bottom: 34px;
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 2px;
}

/* the printed-card treatment from components/design/card.tsx ---------------- */
.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 22px 20px;
  margin: 26px 0;
}
.card p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 22px 0; }
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
  margin-bottom: 18px;
}
.steps .n {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  width: 26px; height: 26px;
  display: grid; place-items: center;
}
.steps .t { font-weight: 600; }
.steps .d { grid-column: 2; color: var(--ink-soft); font-size: 0.9375rem; }

.price {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 4px;
}
.price small { font-size: 0.95rem; color: var(--ink-mute); font-family: inherit; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 44px 0; }

ul.plain { padding-left: 1.15rem; }
ul.plain li { margin: 7px 0; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
}
footer a { color: var(--ink-mute); }
footer .spacer { flex: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
