/* Ask Bill the Butcher: shared styles */
@font-face { font-family: "Lato"; src: url("fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/Lato-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("fonts/RobotoSlab-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("fonts/RobotoSlab-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --red: #8B1E2D;
  --red-deep: #6E1622;
  --cream: #F5EFE3;
  --paper: #FBF8F2;
  --navy: #1B2A41;
  --ink: #221D19;
  --muted: #5B5249;
  --line: #DCD2C1;
  --rail: #C8CCD2;
  --ticket: #FFFFFF;
  --page-bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --heading: var(--red);
  --subheading: var(--navy);
  --button-bg: var(--red);
  --button-text: #FFFFFF;
  --focus: #1B6FD1;
  --button2-bg: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page-bg: #161E2B;
    --surface: #1F2A3B;
    --text: #F1EADC;
    --muted: #C9BFAE;
    --line: #35445B;
    --heading: #F0A3AE;
    --subheading: #F5EFE3;
    --button-bg: #A42537;
    --rail: #4A5568;
    --focus: #7DB4FF;
    --button2-bg: #36557F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
@media (min-width: 900px) { html { font-size: 118.75%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heading); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

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

/* The apron stripe: the one decorative motif, used at the very top and very bottom */
.apron {
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 14px, #F7F4EE 14px 16px);
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 42rem; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; flex-wrap: wrap; }
.wordmark { font-family: "Roboto Slab", Georgia, serif; font-weight: 800; font-size: 1.25rem; color: var(--heading); text-decoration: none; }
.masthead a.jump { font-weight: 700; color: var(--subheading); }

h1, h2, h3 { font-family: "Roboto Slab", Georgia, serif; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-weight: 800; color: var(--heading); font-size: clamp(2.4rem, 7vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-weight: 800; color: var(--heading); font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-weight: 700; color: var(--subheading); font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }

section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
section + section { border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: 0.85rem 1.6rem;
  background: var(--button-bg); color: var(--button-text);
  font-family: "Lato", Arial, sans-serif; font-weight: 700; font-size: 1.1rem;
  text-decoration: none; border-radius: 6px; border: 2px solid var(--button-bg);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.navy { background: var(--button2-bg); border-color: var(--button2-bg); color: #FFFFFF; }
.btn.navy:hover { background: #0F1A2B; border-color: #0F1A2B; }
.btn.secondary { background: transparent; color: var(--subheading); border-color: currentColor; }
.btn.secondary:hover { background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1rem; }
.small { font-size: 0.92rem; color: var(--muted); }

/* Hero */
.hero { padding-top: 1.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-photo img { border-radius: 8px; width: 100%; max-height: 640px; object-fit: cover; object-position: center 30%; }
.hero .lede { font-size: 1.2rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}

/* Ticked list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem 2.5rem; }
@media (min-width: 760px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { position: relative; padding-left: 2.1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.2rem; height: 0.65rem;
  border-left: 3px solid var(--heading); border-bottom: 3px solid var(--heading); transform: rotate(-45deg);
}

/* Meet Bill */
.bill-grid { display: grid; gap: 2rem; align-items: center; }
.bill-grid img { border-radius: 8px; }
@media (min-width: 900px) { .bill-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; } }
.signoff { font-family: "Roboto Slab", Georgia, serif; font-weight: 700; color: var(--subheading); font-size: 1.15rem; }
.disclosure { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 1rem; margin-top: 1.5rem; }

/* Offer */
.offer { background: var(--surface); }
.books { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 1rem auto 2rem; max-width: 560px; }
.books img { width: 52%; }
.books img + img { margin-left: -10%; transform: translateY(18px); }
.books.single img { width: 58%; }
.contents-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 860px) { .contents-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contents-grid ul { margin: 0; padding-left: 1.2rem; }
.contents-grid li { margin-bottom: 0.45rem; }
.pages { color: var(--muted); font-weight: 400; font-family: "Lato", Arial, sans-serif; font-size: 1rem; }

/* The shelf-edge price ticket */
.shelf { background: var(--rail); padding: 1.1rem 1rem 1.3rem; border-radius: 6px; max-width: 34rem; margin: 0 auto; box-shadow: inset 0 3px 0 rgba(255,255,255,0.45); }
.ticket { background: var(--ticket); color: #1A1A1A; border-radius: 3px; padding: 1.4rem 1.5rem 1.6rem; text-align: center; }
.ticket .what { font-weight: 700; font-size: 1.05rem; margin: 0 auto 0.4rem; }
.ticket .price { font-family: "Roboto Slab", Georgia, serif; font-weight: 800; font-size: clamp(3.6rem, 12vw, 5rem); line-height: 1; margin: 0.2rem 0 0.5rem; color: #111; }
.ticket .unit { position: relative; display: inline-block; font-size: 1.1rem; font-weight: 700; padding: 0.4rem 1.2rem; }
.ticket .unit svg { position: absolute; inset: -6px -10px; width: calc(100% + 20px); height: calc(100% + 12px); overflow: visible; }
.ticket .was { display: block; margin: 0.6rem auto 0; font-size: 0.95rem; color: #555; max-width: none; }
.buy-main { text-align: center; margin: 1.8rem 0 0.6rem; }
.buy-main .btn { font-size: 1.25rem; min-height: 3.8rem; padding-inline: 2.2rem; }
.assurances { list-style: none; padding: 0; margin: 1.4rem auto 0; max-width: 38rem; display: grid; gap: 0.6rem; }
.assurances li { padding-left: 1.6rem; position: relative; }
.assurances li::before { content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 0.55rem; height: 0.55rem; background: var(--heading); border-radius: 50%; }

.singles { margin-top: 3rem; }
.single-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.single-row:last-child { border-bottom: 1px solid var(--line); }
.single-row .name { font-weight: 700; font-size: 1.1rem; }
.single-row .name span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.single-row .btn { min-height: 3rem; font-size: 1rem; }

/* Single books */
.single-cards { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 860px) { .single-cards { grid-template-columns: 1fr 1fr; } }
.single-card { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem; border: 2px solid var(--line); border-radius: 8px; background: var(--page-bg); }
.single-card img { width: 100%; }
.single-card .name { font-weight: 700; font-size: 1.15rem; margin: 0; }
.single-price { font-family: "Roboto Slab", Georgia, serif; font-weight: 800; font-size: 2rem; color: var(--heading); margin: 0.1rem 0 0.2rem; line-height: 1.1; }
.single-desc { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.9rem; }
.single-card .btn { min-height: 3.1rem; font-size: 1rem; padding-inline: 1.1rem; }
@media (max-width: 420px) { .single-card { grid-template-columns: 5.5rem 1fr; } }

/* Look inside */
.previews { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.previews figure { margin: 0; }
.previews img { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.previews figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--muted); }

/* Savings sum */
.sum { width: 100%; max-width: 46rem; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.sum th, .sum td { text-align: left; padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sum th { color: var(--subheading); font-family: "Roboto Slab", Georgia, serif; font-weight: 700; }
.sum td:last-child, .sum th:last-child { text-align: right; white-space: nowrap; }
.sum tfoot td { font-weight: 700; font-size: 1.15rem; border-bottom: none; color: var(--heading); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 0.4rem 0; max-width: 46rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 0.8rem 2rem 0.8rem 0; list-style: none; position: relative; color: var(--subheading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.55rem; font-size: 1.5rem; color: var(--heading); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.2rem; }

/* Final call */
.final { text-align: center; }
.final h2 { max-width: 30ch; margin-inline: auto; }
.final p { margin-inline: auto; }

/* Footer */
footer { padding: 2.5rem 0 2rem; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-bottom: 1rem; }
footer nav a { color: var(--subheading); font-weight: 700; }
footer p { max-width: 70ch; }

/* Legal pages */
.legal { padding: 2rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
