/* FreedomBooks website. Self-hosted, system fonts only, no external requests. */
:root {
  --paper: #faf7f1;
  --panel: #ffffff;
  --ink: #1f1b24;
  --ink-soft: #4a4452;
  --plum: #4f2f5e;
  --plum-dark: #3a2146;
  --plum-tint: #efe8f2;
  --sage: #2f6b4a;
  --sage-tint: #e6f0e9;
  --sand: #efe5d2;
  --line: #ddd3c3;
  --focus: #b35c00;
  --radius: 14px;
  --max: 70rem;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
@media (min-width: 900px) { html { font-size: 125%; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--plum-dark); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.45em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.3rem; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 0.35em 0.7em; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { background: var(--plum-tint); }
.site-nav a[aria-current="page"] { background: var(--plum); color: #fff; }
.site-nav a.nav-get { border: 2px solid var(--plum); font-weight: 650; }
.site-nav a.nav-get[aria-current="page"] { border-color: var(--plum); }

/* Status ribbon */
.status { background: var(--sand); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.status .wrap { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.status strong { color: var(--plum-dark); }

main { padding: 2.5rem 0 3rem; }
main > .wrap > :last-child, main > .wrap > .narrow > :last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; }

/* Home hero */
.hero { display: grid; gap: 2rem; }
.hero-copy { display: grid; gap: 1rem 2.5rem; align-items: start; }
.hero-copy > div { min-width: 0; }
@media (min-width: 960px) { .hero-copy { grid-template-columns: 1fr 1.15fr; } }
.hero-copy .lead { font-size: 1.05rem; }
.hero-copy .actions { margin-top: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.1rem); }
.hero .kicker { display: inline-block; background: var(--sage-tint); color: var(--sage); font-weight: 650; border-radius: 999px; padding: 0.2em 0.85em; font-size: 0.95rem; margin-bottom: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.btn { display: inline-block; padding: 0.7em 1.3em; border-radius: 10px; font-weight: 650; text-decoration: none; border: 2px solid var(--plum); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); color: #fff; }
.btn-plain { background: var(--panel); color: var(--plum); }

figure.shot { margin: 0; }
figure.shot img { display: block; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(40, 25, 50, 0.12); background: #fff; }
figure.shot figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* Points and cards */
.points { display: grid; gap: 1.1rem; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.points > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 599px) { .points { grid-template-columns: minmax(0, 1fr); } }
.points li, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0; }
.points li p:last-child, .card p:last-child { margin-bottom: 0; }
.points h3 { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sage); flex: none; }

.band { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 3rem 0; padding: 1.3rem; }
.band h2 { margin-top: 0; }
.band p:last-child { margin-bottom: 0; }
.checklist { margin-bottom: 1rem; }

.checklist { list-style: none; padding: 0; columns: 2 16rem; column-gap: 2rem; }
.checklist li { break-inside: avoid; padding-left: 1.7rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 0.5em; width: 0.55rem; height: 0.95rem; border: solid var(--sage); border-width: 0 3px 3px 0; transform: rotate(45deg); }

.note { background: var(--plum-tint); border-left: 5px solid var(--plum); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.3rem; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }

/* Get it */
.places { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.5rem 0; }
@media (max-width: 1199px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .places { grid-template-columns: minmax(0, 1fr); } }
.place { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.place h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0; }
.place svg { width: 2rem; height: 2rem; flex: none; color: var(--plum); }
.place p { margin: 0; color: var(--ink-soft); }
.place .tag { align-self: flex-start; font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 0.1em 0.75em; background: var(--sand); color: #5b4318; }
.place .tag.live { background: var(--sage-tint); color: var(--sage); }
.place .go { margin-top: auto; font-weight: 650; }
.place-featured { grid-column: 1 / -1; border: 3px solid var(--plum); padding: 1.6rem 1.7rem; display: grid; gap: 0.7rem 2rem; }
@media (min-width: 760px) { .place-featured { grid-template-columns: auto 1fr auto; align-items: center; } }
.place-featured svg { width: 2rem; height: 2rem; }
.place-featured h3 { font-size: 1.5rem; }
.place-featured .go { margin: 0; }

/* FAQ */

/* Roadmap */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.6rem 3.6rem; margin: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--panel); border: 3px solid var(--plum); color: var(--plum); font-weight: 750; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 1.2rem; top: 2.6rem; bottom: 0.2rem; width: 3px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.now::before { background: var(--plum); color: #fff; }
.steps .when { display: inline-block; font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 0.05em 0.7em; background: var(--sand); color: #5b4318; margin-left: 0.4rem; vertical-align: middle; }
.steps li.now .when { background: var(--sage-tint); color: var(--sage); }

/* Footer */
.site-foot { background: var(--plum-dark); color: #f3edf5; padding: 2.2rem 0; font-size: 0.95rem; }
.site-foot a { color: #fff; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.site-foot p { margin: 0 0 0.4rem; }
.center { margin-left: auto; margin-right: auto; }
.card h2 { margin-top: 0; }
.steps h2 { margin: 0.25rem 0 0.5rem; }
.faq .qa { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.faq .qa h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.faq .qa p:last-child { margin-bottom: 0; }
