/* boltonprep.com — the imprint site.
   ------------------------------------------------------------------
   Deliberately a different layout system from the companion site at
   /uscitizenship/. This is a document people read once; that is a tool
   people use for six weeks. What the two share is identity, and that
   lives entirely in tokens.css.

   No JavaScript. A marketing page should be readable by a crawler, by
   a screen reader, and by someone with scripting off. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }

a { color: var(--blue); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--blue); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 10;
  font: 600 15px/1 var(--sans);
}
.skip:focus { left: 0; top: 0; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- site header ----------
   The navy bar is the single strongest continuity signal between this
   site and /uscitizenship/. Same colour, same height, same lockup on
   the left. Cross the boundary and the bar does not move. */

.sitehead {
  position: sticky; top: 0; z-index: 30;
  background: var(--blue);
}
.sitehead__inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sitehead__home {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0; color: #fff; text-decoration: none;
}
.sitehead__mark { flex: none; display: flex; color: #fff; }
.sitehead__logo { height: 19px; width: auto; }
.sitehead__nav {
  display: flex; gap: 22px;
  font: 600 14px/1 var(--sans); letter-spacing: .02em;
}
.sitehead__nav a { color: rgba(255,255,255,.82); text-decoration: none; }
.sitehead__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */

.hero { padding: 68px 0 8px; }
.hero h1 { font-size: 46px; line-height: 1.14; font-weight: 700; letter-spacing: -.015em; }
.hero__lede {
  margin-top: 20px; max-width: 620px;
  font-size: 20px; line-height: 1.55; color: var(--muted);
}

/* ---------- the book ---------- */

.book { padding: 56px 0; }
.book__grid { display: flex; gap: 52px; align-items: flex-start; }
.book__detail { flex: 1; min-width: 0; }

.book h2 { font-size: 34px; line-height: 1.18; font-weight: 700; }
.book__sub {
  margin-top: 14px; font-size: 19px; line-height: 1.55; color: var(--muted);
}

.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.facts li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.5; }
.facts li::before {
  content: ''; position: absolute; left: 4px; top: .58em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue); opacity: .55;
}

/* ---------- cover ----------
   A placeholder until the real jacket exists. Swap the whole .cover
   block for  <img class="cover" src="assets/cover.jpg" alt="...">
   and delete the .cover__* rules below. */

.cover {
  flex: none; width: 264px; aspect-ratio: 2 / 3;
  background: linear-gradient(100deg, var(--blue-dark) 0 5%, var(--blue) 5% 100%);
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 1px 2px rgba(20,30,55,.2), 0 14px 34px -10px rgba(20,30,55,.42);
  padding: 30px 24px 22px 30px;
  display: flex; flex-direction: column; color: #fff;
}
.cover__rule { border: 1px solid rgba(255,255,255,.28); border-radius: 2px; padding: 24px 18px; flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; }
.cover__mark { color: #fff; opacity: .95; }
.cover__title {
  margin-top: 22px; font: 700 26px/1.2 var(--serif); letter-spacing: -.01em;
}
.cover__sub {
  margin-top: 14px; font: 400 13px/1.45 var(--sans);
  color: rgba(255,255,255,.72);
}
.cover__foot {
  margin-top: auto; padding-top: 16px; font: 600 10px/1 var(--sans);
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.66);
}

/* ---------- buttons ---------- */

.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 9px;
  font: 700 16.5px/1 var(--sans); text-decoration: none;
  border: 2px solid var(--blue); cursor: pointer;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-tint); }

/* Stands in for the Amazon button until the listing URL exists. */
.btn--pending {
  border-style: dashed; border-color: var(--line);
  background: var(--sand); color: var(--stone);
  font-weight: 600; cursor: default;
}

.actions__note { font-size: 15px; color: var(--muted); }

/* ---------- what's inside ---------- */

.inside { padding: 8px 0 56px; }
.inside h2 { font-size: 27px; font-weight: 700; }
.inside__lede { margin-top: 12px; color: var(--muted); max-width: 620px; }

.toc {
  margin: 28px 0 0; padding: 0; list-style: none;
  columns: 2; column-gap: 44px;
  border-top: 1px solid var(--line);
}
.toc li {
  break-inside: avoid;
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 16px; line-height: 1.4;
}
.toc__n {
  flex: none; width: 30px;
  font: 600 12.5px/1.5 var(--sans); letter-spacing: .06em;
  color: var(--blue); opacity: .8;
}

/* ---------- companion panel ---------- */

.companion { padding: 0 0 64px; }
.panel {
  background: var(--blue-tint); border: 1px solid var(--blue-line-2);
  border-radius: 14px; padding: 34px 34px 30px;
}
.panel h2 { font-size: 25px; font-weight: 700; }
.panel__lede { margin-top: 12px; color: var(--muted); max-width: 640px; }

.split { display: flex; gap: 40px; margin-top: 26px; }
.split > div { flex: 1; min-width: 0; }
.split h3 {
  font: 600 12px/1 var(--sans); letter-spacing: .13em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 12px;
}
.split ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 16px; }
.split li { line-height: 1.45; }

.panel .actions { margin-top: 28px; }

/* ---------- footer ----------
   Mirrors the companion's footer: imprint on the left, the two
   disclaimers beside it. The non-affiliation line is not boilerplate
   here — this audience is a standing target for immigration scams,
   and a site that helps with a government process must never be
   mistakable for the government. */

.footer { border-top: 1px solid var(--line); background: var(--sand); }
.footer__inner {
  max-width: 960px; margin: 0 auto; padding: 26px 24px;
  display: flex; gap: 40px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.footer__imprint { display: flex; flex-direction: column; gap: 9px; }
.footer__logo { height: 17px; width: auto; opacity: .85; }
.footer__legal {
  display: grid; gap: 6px; max-width: 460px;
  font: 400 13.5px/1.5 var(--sans); color: var(--stone);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .book__grid { flex-direction: column; align-items: center; gap: 36px; }
  .book__detail { width: 100%; }
  .cover { width: 216px; }
  .toc { columns: 1; }
  .split { flex-direction: column; gap: 26px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }

  /* The cover is a fixed 2:3 box, so its contents have to shrink with it —
     otherwise the wrapped tagline eats the space under the title. */
  .cover { padding: 22px 16px 16px 22px; }
  .cover__rule { padding: 18px 12px; }
  .cover__title { margin-top: 16px; font-size: 21px; }
  .cover__sub { margin-top: 10px; font-size: 11.5px; }
  .hero { padding: 44px 0 4px; }
  .hero h1 { font-size: 34px; }
  .hero__lede { font-size: 18px; }
  .book h2 { font-size: 27px; }
  .book__sub { font-size: 17.5px; }
  .sitehead__nav { display: none; }
  .panel { padding: 26px 22px 24px; border-radius: 12px; }
  .btn { width: 100%; }
  .footer__inner { gap: 22px; }
}
