/* rhodamandel.com: big, calm type for readers 60+. Colours from Rhoda's room:
   cardigan rose, butterscotch rack, pale blue wall, cream tiles. */
:root {
  --cream: #fbf7f1;
  --paper: #fffdf9;
  --ink: #2a211e;
  --muted: #5b4f49;
  --rose: #8a4558;
  --rose-dark: #6f3446;
  --rose-soft: #f4e6e8;
  --butter: #e0ad48;
  --butter-soft: #f8ecd0;
  --blue-soft: #e4eef3;
  --line: #e5d9cd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 33, 30, .06), 0 10px 30px -12px rgba(42, 33, 30, .22);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.25rem/1.6 var(--sans); /* 20px body */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p, ul { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: 1.05rem; color: var(--muted); }
.kicker {
  font: 700 .95rem/1.2 var(--sans);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rose); margin-bottom: .9em;
}
.lede { font-size: 1.4rem; color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 14px; z-index: 10; }

/* buttons: big targets */
.btn {
  display: inline-block; padding: 18px 30px; min-height: 60px;
  background: var(--rose); color: #fff; border-radius: 999px;
  font: 700 1.2rem/1.3 var(--sans); text-decoration: none; text-align: center;
  box-shadow: 0 6px 18px -8px rgba(111, 52, 70, .7);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--rose-dark); color: #fff; transform: translateY(-1px); }
.btn-big { font-size: 1.45rem; padding: 24px 40px; }
.btn-quiet { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); }
.btn-quiet:hover { background: var(--rose-soft); color: var(--rose-dark); }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 50%; }
.brand strong { display: block; font: 600 1.35rem/1.1 var(--serif); }
.brand small { display: block; font-size: .95rem; color: var(--muted); }
nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: 6px 0; }
nav a:hover { color: var(--rose); text-decoration: underline; }

.topbar { background: var(--rose); color: #fff; text-align: center; font-size: 1.05rem; padding: 10px 0; }

/* hero */
.hero { padding: clamp(40px, 7vw, 84px) 0; }
.hero-slim { padding: clamp(36px, 6vw, 72px) 0; min-height: 52vh; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1.05fr 1fr; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { background: var(--butter-soft); border: 1px solid #ecd9a8; border-radius: 999px; padding: 6px 16px; font-size: 1.05rem; font-weight: 700; }
.hero-art { position: relative; padding-bottom: 40px; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-art .cover { position: absolute; left: -24px; bottom: 0; width: 42%; }

/* the book, drawn in CSS so the title always matches site.json */
.cover {
  aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 9% 8%; text-align: center; color: #fff8ec;
  background: linear-gradient(160deg, #9a5266, var(--rose-dark));
  border-radius: 4px 10px 10px 4px;
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .14), 0 22px 40px -16px rgba(42, 33, 30, .55);
  container-type: inline-size;
}
.cover-top { font: 700 7cqi/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--butter); }
.cover-title { font: 600 13cqi/1.08 var(--serif); }
.cover-by { font: 600 8.5cqi/1 var(--serif); font-style: italic; }
.cover-tiles { display: flex; gap: 3%; width: 80%; }
.cover-tiles i { flex: 1; aspect-ratio: 3 / 4; background: #f6ecd8; border-radius: 3px; box-shadow: 0 3px 0 var(--butter); }
.cover-big { width: min(340px, 80%); margin-inline: auto; }

/* bands and sections */
.band { background: var(--blue-soft); padding: clamp(48px, 7vw, 80px) 0; }
.about, .inside, .fit, .buy, .faq { padding: clamp(52px, 8vw, 96px) 0; }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.portrait { border-radius: 50%; box-shadow: var(--shadow); border: 6px solid var(--paper); }
.disclosure { background: var(--paper); border-left: 5px solid var(--butter); padding: 14px 18px; border-radius: 6px; font-size: 1.1rem; }

.inside { background: var(--paper); border-block: 1px solid var(--line); }
.inside .lede { max-width: 720px; margin-inline: auto; }
.book-sub { font: 500 1.35rem/1.35 var(--serif); font-style: italic; color: var(--rose-dark); margin-top: -.3em; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 40px; }
.book { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 10px; border-top: 6px solid var(--rose); }
.book-bonus { border-top-color: var(--butter); }
.book-num { font-weight: 700; color: var(--rose); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.book h3 { margin-top: .35em; }
.book ul { padding-left: 1.1em; }
.book li { margin-bottom: .45em; font-size: 1.15rem; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-grid > div { border-radius: var(--radius); padding: 30px 32px 16px; }
.fit-yes { background: var(--butter-soft); }
.fit-no { background: var(--paper); border: 1px solid var(--line); }
.fit h2 { font-size: 1.7rem; }
.fit li { margin-bottom: .5em; }

.buy { background: var(--rose-soft); }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price-now { font: 600 3.2rem/1 var(--serif); color: var(--rose-dark); }
.price-note { color: var(--muted); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 38px; margin-bottom: .6em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Whop checkout box */
.checkout-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-height: 420px; }
.checkout-fallback { display: none; margin: 0; padding: 12px 6px; }
.checkout-box.is-failed { min-height: 0; }
.checkout-box.is-failed .checkout-fallback { display: block; }
.addon { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); margin-top: 56px; padding-top: 48px; border-top: 1px solid #e2c9cf; }

.card-shot { width: min(300px, 70%); margin: 22px 0 0; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-1.5deg); border: 1px solid var(--line); }

/* cheat card preview (before the free plan exists) */
.card-preview { background: var(--paper); border: 2px dashed var(--butter); border-radius: var(--radius); padding: 34px; max-width: 380px; margin-inline: auto; transform: rotate(1.5deg); box-shadow: var(--shadow); }
.card-preview p { font-size: 1.4rem; margin: .3em 0; }
.card-preview b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: #fff; margin-right: 10px; }
.card-preview-title { font: 600 1.9rem/1.2 var(--serif) !important; margin-bottom: .6em !important; }
.card-preview-rule { margin-top: 1em !important; font-weight: 700; color: var(--rose-dark); }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.25rem; list-style: none; position: relative; padding-right: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: var(--rose); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 8px; }

/* legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal h2 { font-size: 1.6rem; margin-top: 1.4em; }
.legal li { margin-bottom: .5em; }

/* footer */
.site-footer { background: var(--ink); color: #eadfd6; padding: 52px 0 40px; font-size: 1.05rem; }
.site-footer a { color: #f3d79a; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.footer-brand { font: 600 1.5rem/1.2 var(--serif); color: #fff; margin-bottom: .3em; }
.footer-fine p { color: #cbbdb3; }

@media (max-width: 860px) {
  .hero-grid, .buy-grid, .about-grid, .fit-grid, .footer-grid, .addon { grid-template-columns: 1fr; }
  .hero-art { padding-bottom: 28px; }
  .hero-art .cover { left: 12px; width: 34%; }
  .about-grid .portrait { width: 220px; }
}
@media (max-width: 520px) {
  body { font-size: 1.15rem; }
  .lede { font-size: 1.22rem; }
  .btn { width: 100%; }
  nav { gap: 4px 16px; }
  nav a { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
