@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');

/* Colours and fonts follow the book: cream paper, brown-black ink, one navy accent */
:root {
  --paper: #f6f0e4;
  --paper-2: #ede4d2;
  --card: #fffdf8;
  --ink: #241d17;
  --soft: #5e4f40;
  --muted: #7a6a58;
  --navy: #1f3a5f;
  --navy-2: #2c4d78;
  --rule: rgba(36, 29, 23, .18);
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif; font-size: 20px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 46px); text-align: center; }
h3 { font-size: 26px; }
.label { font-variant: small-caps; text-transform: lowercase; letter-spacing: .22em; font-size: 15px; color: var(--navy); }
.lead { color: var(--soft); font-size: 21px; }
.center { text-align: center; }

/* ornament: line, diamond, line */
.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 22px; }
.orn::before, .orn::after { content: ''; width: 56px; border-top: 1px solid var(--navy); }
.orn span { width: 8px; height: 8px; background: var(--navy); transform: rotate(45deg); }

/* buttons */
.btn {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-family: 'EB Garamond', serif; font-weight: 600; font-size: 21px; letter-spacing: .02em;
  padding: 15px 30px; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.18);
  transition: background .15s;
}
.btn:hover { background: var(--navy-2); }
.btn small { font-weight: 400; opacity: .85; margin-left: 8px; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); box-shadow: none; }

/* top bar */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 24px; text-decoration: none; color: var(--ink); }
.top .btn { font-size: 17px; padding: 9px 18px; }

/* hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 76px); }
.hero .sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(24px, 3vw, 30px); color: var(--soft); margin: 10px 0 18px; line-height: 1.25; }
.hero ul { list-style: none; padding: 0; margin: 0 0 28px; }
.hero li { padding-left: 22px; position: relative; margin: 6px 0; }
.hero li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--navy); transform: rotate(45deg); }
.hero .note { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* the cover shown as a physical book */
.book { perspective: 1400px; display: flex; justify-content: center; }
.book img {
  width: min(380px, 80vw); border-radius: 2px 6px 6px 2px;
  transform: rotateY(-14deg) rotateX(2deg);
  box-shadow: -2px 0 0 #d9cdb6, -10px 18px 34px rgba(36,29,23,.28), 0 2px 6px rgba(36,29,23,.18);
}

section { padding: 64px 0; }
.alt { background: var(--paper-2); }

/* story */
.story { max-width: 720px; margin: 0 auto; }
.story p { margin: 0 0 1em; }
.story .drop::first-letter { float: left; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 74px; line-height: .8; color: var(--navy); margin: 8px 10px 0 0; }

/* how a chapter works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 20px 18px; }
.step .n { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 40px; line-height: 1; color: var(--navy); }
.step h3 { font-size: 22px; margin: 6px 0 6px; }
.step p { margin: 0; font-size: 17px; color: var(--soft); line-height: 1.45; }

/* contents */
.parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.part { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 24px 26px; display: flex; gap: 18px; }
.part img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; flex: none; }
.part ol { margin: 8px 0 0; padding-left: 22px; font-size: 18px; line-height: 1.5; }
.part p { margin: 6px 0 0; font-size: 18px; color: var(--soft); }

/* look inside */
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.pages figure { margin: 0; }
.pages img { border-radius: 3px; box-shadow: 0 6px 18px rgba(36,29,23,.16), 0 1px 3px rgba(36,29,23,.15); background: #fff; }
.pages figcaption { font-size: 16px; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }

/* printables + plan */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; margin-top: 30px; }
.list { columns: 2; column-gap: 26px; padding: 0; margin: 0; list-style: none; font-size: 18px; }
.list li { break-inside: avoid; padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--rule); }
.list li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 13px; height: 13px; border: 1.5px solid var(--navy); border-radius: 2px; }
.weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.week { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; }
.week b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--navy); }
.week span { font-size: 17px; color: var(--soft); }

/* author */
.author { max-width: 720px; margin: 0 auto; text-align: center; }
.author blockquote { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(24px, 3vw, 29px); line-height: 1.35; }
.author cite { display: block; margin-top: 14px; font-style: normal; }

/* faq */
.faq { max-width: 760px; margin: 30px auto 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 26px; color: var(--navy); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: var(--soft); font-size: 18px; }

/* final call */
.cta { text-align: center; }
.cta img { width: 220px; margin: 0 auto 18px; }

.cta .note { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* launch price strip (only when a promo date is set in config.js) */
.promo { background: var(--navy); color: #fff; text-align: center; font-size: 17px; padding: 8px 0; }
.promo s { opacity: .7; margin: 0 6px 0 2px; }
.promo [data-countdown] { font-variant-numeric: tabular-nums; font-weight: 600; }
s[data-full-price]:empty { display: none; }
.btn s { opacity: .75; }

/* guarantee */
.guar-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 17px; color: var(--soft); }
.seal-sm { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }

/* who it is for */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.fit-col { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 24px 26px; }
.fit-col h3 { font-size: 24px; margin-bottom: 10px; }
.fit-col ul { list-style: none; padding: 0; margin: 0; font-size: 18px; }
.fit-col li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px solid var(--rule); }
.fit-col li:last-child { border-bottom: 0; }
.fit-col li::before { position: absolute; left: 2px; top: 7px; font-weight: 600; }
.fit-col.yes li::before { content: '✓'; color: var(--navy); }
.fit-col.no { background: transparent; }
.fit-col.no li { color: var(--soft); }
.fit-col.no li::before { content: '×'; color: #8a3b2e; font-size: 22px; line-height: 1; top: 8px; }

/* offer box */
.offer { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 40px 44px; box-shadow: 0 10px 30px rgba(36,29,23,.08); outline: 1px solid var(--rule); outline-offset: -10px; }
.stack { list-style: none; padding: 0; margin: 0 0 28px; font-size: 18px; }
.stack li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px dashed var(--rule); }
.stack li::before { content: '✓'; position: absolute; left: 4px; top: 10px; color: var(--navy); font-weight: 600; }
.stack b { font-weight: 600; }
.offer-buy { text-align: center; }
.offer-price { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 52px; line-height: 1; margin-bottom: 14px; }
.offer-price s { font-size: 30px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.offer-buy .note { font-size: 16px; color: var(--muted); margin-top: 10px; }
.guar { display: flex; gap: 22px; align-items: center; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--rule); }
.guar h3 { font-size: 24px; margin-bottom: 4px; }
.guar p { margin: 0; font-size: 17px; color: var(--soft); line-height: 1.5; }
.seal { flex: none; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--navy); outline: 1px solid var(--navy); outline-offset: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy); }
.seal b { font-family: 'Cormorant Garamond', serif; font-size: 36px; line-height: 1; }
.seal span { font-variant: small-caps; text-transform: lowercase; letter-spacing: .18em; font-size: 13px; }

/* buy bar on phones, appears after the first screen */
.sticky { display: none; }

footer { border-top: 1px solid var(--rule); padding: 30px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer nav a { margin-right: 18px; }
footer .disc { flex-basis: 100%; font-size: 14px; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; font-size: 18px; }
.legal h1 { font-size: 44px; margin-bottom: 6px; }
.legal h2 { font-size: 26px; text-align: left; margin: 30px 0 8px; }
.legal .upd { color: var(--muted); font-size: 16px; }

@media (max-width: 860px) {
  body { font-size: 19px; }
  .hero { padding: 36px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero .book { order: -1; }
  .book img { width: min(280px, 70vw); }
  .steps { grid-template-columns: 1fr 1fr; }
  .parts, .two { grid-template-columns: 1fr; }
  .pages { grid-template-columns: 1fr 1fr; }
  section { padding: 48px 0; }
  .fit { grid-template-columns: 1fr; }
  .sticky {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--card); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px rgba(36,29,23,.12);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky.on { transform: none; }
  .sticky b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; line-height: 1.1; }
  .sticky > div > span { font-size: 15px; color: var(--soft); }
  .sticky .btn { width: auto; font-size: 17px; padding: 10px 18px; white-space: nowrap; }
  footer { padding-bottom: 100px; }
}
@media (max-width: 520px) {
  .steps, .weeks { grid-template-columns: 1fr; }
  .pages { grid-template-columns: 1fr 1fr; gap: 12px; }
  .list { columns: 1; }
  .part { flex-direction: column; }
  .part img { width: 90px; height: 90px; }
  .top .btn small { display: none; }
  .btn { width: 100%; text-align: center; }
  .top .btn { width: auto; }
  .offer { padding: 28px 20px; outline: none; }
  .guar { flex-direction: column; text-align: center; }
  .promo { font-size: 15px; }
}
