/* ===========================================================================
   PrintBound — landing page styles
   Brand: retro letterpress / bindery. Ink on cream paper, one brick-red accent.
   Display: Fraunces (old-style serif). Body: Newsreader (bookish serif).
   =========================================================================== */

:root {
  /* palette — ink on cream, single warm accent */
  --ink:        #221d1a;   /* warm near-black, the "ink" */
  --ink-soft:   #4a423c;   /* secondary text on paper */
  --paper:      #f6efe1;   /* primary cream paper */
  --paper-2:    #efe5d2;   /* deeper cream panel */
  --paper-card: #fbf6ec;   /* raised card */
  --brick:      #bb4430;   /* letterpress vermilion — the one accent */
  --brick-dk:   #9e3724;
  --ochre:      #c98a3a;   /* sparing warm highlight */
  --rule:       #d8cab0;   /* hairline rules on paper */
  --rule-ink:   #4a423c;   /* hairline on ink */

  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --r: 10px;
  --shadow: 0 1px 2px rgba(34,29,26,.08), 0 12px 32px rgba(34,29,26,.10);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

img, svg { display: block; max-width: 100%; }

a { color: var(--brick-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* --- skip link / a11y helpers --------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden, .vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- typographic atoms ---------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brick-dk);
  margin: 0 0 .9rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--invert { color: var(--ochre); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 2.4rem;
  color: var(--ink);
}
.section-title--left { text-align: left; }
.section-title--invert { color: var(--paper); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: .8rem 1.4rem;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { padding: .5rem 1rem; font-size: .92rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brick); color: #fff; box-shadow: 0 2px 0 var(--brick-dk); }
.btn--primary:hover { background: var(--brick-dk); box-shadow: 0 2px 0 var(--brick-dk); }

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

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }

.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.wordmark__bound { color: var(--brick); }
.wordmark__mark svg .mk-cover { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.wordmark__mark svg .mk-spine { stroke: var(--brick); stroke-width: 1.8; }
.wordmark__mark svg .mk-line  { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--brick-dk); text-decoration: underline; }
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

/* --- hero ----------------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.hero-sub { font-size: 1.18rem; color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.hero-note { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.hero-note strong { color: var(--ink); }

/* hero book artwork */
.hero-art { display: grid; place-items: center; }
.book {
  position: relative;
  width: min(300px, 78%);
  aspect-ratio: 6 / 9;
  transform: rotate(-3deg);
  filter: drop-shadow(0 22px 34px rgba(34,29,26,.28));
}
.book__cover {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--brick) 0%, var(--brick-dk) 100%);
  border-radius: 4px 8px 8px 4px;
  border-left: 7px solid var(--brick-dk);
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  padding: 2rem 1.6rem;
  color: #f7ead9;
  overflow: hidden;
}
.book__cover::after { /* deboss frame */
  content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(247,234,217,.45); border-radius: 3px;
  pointer-events: none;
}
.book__eyebrow {
  font-family: var(--font-display); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(247,234,217,.8);
}
.book__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1.05; color: #fdf5e9;
}
.book__byline {
  font-family: var(--font-display); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247,234,217,.7);
}
.book__regmark { position: absolute; bottom: 18px; right: 18px; font-size: 1.1rem; color: rgba(247,234,217,.6); }
.book__pages {
  position: absolute; top: 2%; right: -9px; width: 12px; height: 96%;
  background: repeating-linear-gradient(to bottom, #f3ead6 0 2px, #d9cdb3 2px 3px);
  border-radius: 0 3px 3px 0;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: .5rem; }
  .hero-sub { max-width: none; }
}

/* --- trust strip ---------------------------------------------------------- */
.strip { background: var(--ink); color: var(--paper); }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding-block: 1.4rem; text-align: center;
}
.strip__item { display: flex; flex-direction: column; gap: .15rem; }
.strip__item strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.strip__item span { font-size: .85rem; color: rgba(246,239,225,.72); letter-spacing: .02em; }
.strip__item + .strip__item { border-left: 1px solid rgba(246,239,225,.16); }
@media (max-width: 640px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.2rem .5rem; }
  .strip__item:nth-child(odd) { border-left: 0; }
  .strip__item:nth-child(3) { border-left: 0; }
}

/* --- sections ------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--paper { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section--ink { background: var(--ink); color: var(--paper); }

/* --- steps ---------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem);
  counter-reset: step;
}
.step { position: relative; padding-top: .6rem; border-top: 2px solid var(--ink); }
.step__num {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .12em; color: var(--brick-dk); margin-bottom: .6rem;
}
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 .5rem; }
.step p { margin: 0; color: var(--ink-soft); }
.step em { font-style: italic; color: var(--ink); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* --- cards ---------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card {
  background: var(--paper-card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
}
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; margin: 0 0 .45rem; }
.card p { margin: 0; color: var(--ink-soft); }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

/* --- pricing -------------------------------------------------------------- */
.pricing-inner {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.pricing-lede { font-size: 1.12rem; color: var(--ink-soft); }
.pricing-list { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.pricing-list li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; color: var(--ink-soft); }
.pricing-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--brick); font-size: .95rem;
}
.pricing-list strong { color: var(--ink); }

.price-card {
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 2.2rem 1.8rem;
  text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.price-card::before { /* corner registration tick */
  content: "⊕"; position: absolute; top: 12px; right: 14px; color: rgba(246,239,225,.35); font-size: 1rem;
}
.price-card__eyebrow {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ochre); margin: 0 0 .6rem;
}
.price-card__amount {
  font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; line-height: 1; margin: 0; color: #fff;
}
.price-card__cents { font-size: 1.6rem; vertical-align: super; }
.price-card__unit { font-size: .92rem; color: rgba(246,239,225,.75); margin: .5rem 0 1.4rem; }
.price-card__fine { font-size: .82rem; color: rgba(246,239,225,.6); margin: .9rem 0 0; }
@media (max-width: 760px) { .pricing-inner { grid-template-columns: 1fr; } }

/* --- waitlist + web order ------------------------------------------------- */
.waitlist-inner {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start;
}
.waitlist-lede { font-size: 1.12rem; color: rgba(246,239,225,.82); max-width: 46ch; }
.waitlist-form { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--font-body); font-size: 1.05rem;
  padding: .8rem 1rem; border-radius: var(--r);
  border: 1.5px solid rgba(246,239,225,.4); background: rgba(246,239,225,.06); color: var(--paper);
}
.waitlist-form input::placeholder { color: rgba(246,239,225,.5); }
.waitlist-form input:focus-visible { outline-color: var(--ochre); background: rgba(246,239,225,.1); }
.waitlist-status { min-height: 1.4em; margin: .8rem 0 0; font-size: .95rem; color: var(--ochre); }
.waitlist-status[data-state="error"] { color: #f0a58e; }

.weborder {
  border: 1px solid rgba(246,239,225,.22); border-radius: 14px; padding: 1.6rem 1.5rem;
  background: rgba(246,239,225,.04);
}
.weborder__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 .7rem; color: #fff; }
.weborder__list { margin: 0 0 1rem; padding: 0; list-style: none; }
.weborder__list li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; color: rgba(246,239,225,.82); font-size: .98rem; }
.weborder__list li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--ochre); font-size: .9rem; }
.weborder__copy { margin: 0; color: rgba(246,239,225,.66); font-size: .92rem; }
@media (max-width: 760px) { .waitlist-inner { grid-template-columns: 1fr; } }

/* --- proof (social-proof scaffold) ---------------------------------------- */
.proof-inner { max-width: 880px; margin-inline: auto; text-align: center; }
.proof-lede {
  font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch;
  margin: -1.2rem auto 0; /* pull up under the section-title's bottom margin */
}
.proof-gallery {
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.proof-frame {
  aspect-ratio: 6 / 7;
  display: grid; place-items: center;
  border: 1.5px dashed var(--rule); border-radius: var(--r);
  background: var(--paper-card);
  color: var(--ink-soft);
}
.proof-frame__label {
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: color-mix(in srgb, var(--ink-soft) 70%, transparent);
}
.proof-foot { margin: 1.6rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.proof-foot a { color: var(--brick-dk); }
@media (max-width: 680px) { .proof-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .proof-gallery { grid-template-columns: 1fr; } }

/* --- faq ------------------------------------------------------------------ */
.faq-inner { max-width: 760px; margin-inline: auto; }
.faq { margin: 0; }
.faq__item { border-top: 1px solid var(--rule); padding: 1.3rem 0; }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq dt { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: .4rem; }
.faq dd { margin: 0; color: var(--ink-soft); }

/* --- footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.wordmark--footer .wordmark__text { color: var(--paper); }
.wordmark--footer .wordmark__bound { color: var(--ochre); }
.footer-tag { margin: .4rem 0 0; font-size: .92rem; color: rgba(246,239,225,.7); }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: rgba(246,239,225,.85); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { flex-basis: 100%; margin: .6rem 0 0; font-size: .82rem; color: rgba(246,239,225,.55); }
.footer-legal a { color: rgba(246,239,225,.78); text-decoration: underline; }
.footer-legal a:hover { color: #fff; }

/* ===========================================================================
   Legal / policy pages (terms.html, privacy.html, refund.html)
   Single readable column of prose on cream paper, same ink + accent system.
   =========================================================================== */
.legal-head {
  background: var(--paper-2); border-bottom: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.8rem, 4vw, 2.6rem);
}
.legal-head .eyebrow { margin-bottom: .7rem; }
.legal-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.06; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
}
.legal-meta { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.legal-meta a { color: var(--brick-dk); }

.legal-note {
  margin: 1.4rem 0 0; padding: .9rem 1.1rem;
  border-left: 3px solid var(--ochre); background: var(--paper-card);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .92rem; color: var(--ink-soft);
}
.legal-note strong { color: var(--ink); }

.legal-body { padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal-prose { max-width: 68ch; margin-inline: auto; }
.legal-prose h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.2;
  margin: 2.4rem 0 .3rem; color: var(--ink);
  padding-top: 1.2rem; border-top: 1px solid var(--rule);
}
.legal-prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: .5rem; }
.legal-prose h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  margin: 1.6rem 0 .3rem; color: var(--ink);
}
.legal-prose p, .legal-prose li { color: var(--ink-soft); }
.legal-prose p { margin: .7rem 0; }
.legal-prose ul, .legal-prose ol { margin: .7rem 0; padding-left: 1.3rem; }
.legal-prose li { margin: .35rem 0; }
.legal-prose strong { color: var(--ink); }
.legal-prose a { color: var(--brick-dk); }
.legal-prose .lead { font-size: 1.12rem; color: var(--ink); }
.legal-prose .placeholder {
  font-style: normal; font-weight: 600; color: var(--brick-dk);
  background: color-mix(in srgb, var(--ochre) 18%, transparent);
  padding: 0 .3em; border-radius: 3px; white-space: nowrap;
}
.legal-prose .updated { margin-top: 2.6rem; font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.legal-toc { margin: 1.6rem 0 0; font-size: .95rem; }
.legal-toc a { color: var(--brick-dk); }
