/* Oddlark Press · shared styles. Colours sampled from the book (coral, mustard, petrol, cover teal). */
:root {
  --paper: #FFFEFC;
  --cream: #FBF3E4;
  --coral: #EF7766;
  --coral-dk: #D65542;
  --mustard: #F4B951;
  --petrol: #204A4E;
  --teal: #28626A;
  --deep: #0C3853;
  --ink: #2B2B2B;
  --muted: #5E625F;
  --line: #E8E1D4;
  --radius: 18px;
  --hand: 'Amatic SC', 'Arial Narrow', sans-serif;
  --serif: 'Caladea', Georgia, serif;
  --sans: 'Mulish', 'Century Gothic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* Type */
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; }
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.big { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h1.title { font-family: var(--hand); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; line-height: .95; }
h1.title .big { display: block; font-size: 1.32em; line-height: .92; }
h2.section { font-family: var(--hand); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3rem); text-transform: uppercase; color: var(--ink); }
h2.section .big { font-size: 1.15em; color: var(--coral-dk); }
h3 { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; }
h3 .dot, .dot { display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--coral); margin-right: .25em; vertical-align: .15em; }
.lead { font-size: 1.2rem; max-width: 34em; }
.small { font-size: .92rem; color: var(--muted); }
.chip { display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; background: var(--ink); color: #fff; padding: .05em .7em; border-radius: 999px; margin-bottom: .6em; }
.chip.light { background: #fff; color: var(--ink); }

/* Header */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 62px; }
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand .name small { display: block; font-family: var(--hand); font-size: 1.05rem; letter-spacing: .08em; color: var(--coral-dk); }
nav.main { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav.main a { font-family: var(--hand); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: .1em .55em; border-radius: 999px; }
nav.main a:hover, nav.main a[aria-current] { background: var(--cream); }
nav.main a.cta { background: var(--coral); color: #fff; }
@media (max-width: 760px) { nav.main a:not(.cta) { display: none; } .brand .name { font-size: 1.15rem; } }

/* Bands and brush edges cut from the book's pages */
.band { position: relative; }
.band.coral { background: var(--coral); color: #fff; }
.band.mustard { background: var(--mustard); }
.band.cream { background: var(--cream); }
.band.teal { background: var(--teal); color: #fff; }
.edge { width: 100%; background-repeat: no-repeat; background-size: 100% 100%; }
.edge.coral-bottom { aspect-ratio: 3200 / 260; background-image: url(/assets/edges/coral-to-white.png); margin-top: -1px; }
.edge.mustard-top { aspect-ratio: 3200 / 144; background-image: url(/assets/edges/white-to-mustard.png); margin-bottom: -1px; }
section.pad { padding: 64px 0; }
.band.coral h1.title { color: var(--ink); }
.band.coral h1.title .big { color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 48px 0 8px; }
.hero .cover { width: min(360px, 100%); margin-inline: auto; transform: rotate(3deg); border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.hero p { color: #fff; }
.hero .lead { color: var(--ink); background: rgba(255,255,255,.88); padding: .7em 1em; border-radius: 14px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero .cover { width: 240px; } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; padding: .25em 1em; border-radius: 999px; border: 3px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; line-height: 1.3; }
.btn.coral { background: var(--coral); border-color: var(--coral); }
.btn.mustard { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.white { background: #fff; border-color: #fff; color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.soft { background: var(--cream); border: 0; }
.card img.icon { width: 72px; margin-bottom: 8px; }

/* Collection card */
.collection { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; border-top: 10px solid var(--coral); }
.collection img { border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.collection.soon { border-top-color: var(--mustard); grid-template-columns: 120px 1fr; background: var(--cream); }
.collection.soon img { box-shadow: none; }
@media (max-width: 640px) { .collection, .collection.soon { grid-template-columns: 1fr; } .collection img { width: 200px; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; padding: 0; list-style: none; }
.tags li { font-family: var(--hand); font-weight: 700; font-size: 1.2rem; background: var(--cream); padding: 0 .6em; border-radius: 999px; }

/* Look inside */
.peek { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.peek figure { margin: 0; }
.peek img { border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.14); cursor: zoom-in; }
.peek figcaption { font-family: var(--hand); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; margin-top: 8px; }
.peek.pages { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .peek, .peek.pages { grid-template-columns: 1fr 1fr; } }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.zoom img { max-height: 92vh; width: auto; border-radius: 8px; }
dialog.zoom::backdrop { background: rgba(10, 20, 24, .82); }

/* Check-a-fact steps */
.steps3 { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps3 li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
.steps3 li::before { content: counter(s); font-family: var(--hand); font-weight: 700; font-size: 2.4rem; color: var(--coral-dk); line-height: 1; }
.steps3 b { color: var(--petrol); }

/* Forms (Brevo double opt-in) */
.optin { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); margin-top: 16px; }
.optin label.field { font-weight: 800; display: block; margin-bottom: 6px; }
.optin input[type=email], .contact input, .contact textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.optin input[type=email]:focus, .contact input:focus, .contact textarea:focus { outline: none; border-color: var(--teal); }
.optin .consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .92rem; }
.optin .consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.optin button { width: 100%; justify-content: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.note { display: block; color: var(--coral-dk); font-weight: 700; min-height: 1.4em; margin-top: 8px; }
.perks { list-style: none; padding: 0; margin: 14px 0; }
.perks li { padding-left: 30px; position: relative; margin: 6px 0; }
.perks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--mustard); box-shadow: inset 0 0 0 5px #fff, 0 0 0 2px var(--mustard); }
.contact label { display: block; font-weight: 800; margin-bottom: 14px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .contact .row { grid-template-columns: 1fr; } }

/* Gift mock-up (placeholder until the real Secret Chapter cover exists) */
.gift-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .gift-row { grid-template-columns: 1fr; } }
.mock { aspect-ratio: 8.5 / 11; max-width: 330px; margin-inline: auto; background: var(--coral); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.22); transform: rotate(-3deg); display: flex; flex-direction: column; justify-content: space-between; padding: 30px 26px; color: #fff; position: relative; overflow: hidden; }
.mock .k { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; color: var(--ink); }
.mock .t { font-family: var(--hand); font-weight: 700; font-size: 2.3rem; color: var(--ink); line-height: .95; text-transform: uppercase; }
.mock .t .big { display: block; color: #fff; font-size: 1.5em; }
.mock img { width: 120px; align-self: flex-end; background: var(--paper); border-radius: 50%; padding: 10px; }
.mock .stamp { position: absolute; top: 18px; right: -34px; transform: rotate(35deg); background: var(--mustard); color: var(--ink); font-family: var(--hand); font-weight: 700; font-size: 1.1rem; padding: 2px 40px; }

/* Sources */
details.src { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
details.src summary { cursor: pointer; padding: 14px 18px; font-family: var(--hand); font-weight: 700; font-size: 1.55rem; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.src summary::after { content: "+"; color: var(--coral-dk); }
details.src[open] summary::after { content: "–"; }
details.src .body { padding: 0 18px 16px; }
details.src dl { margin: 0; }
details.src dt { font-weight: 800; margin-top: 12px; }
details.src dd { margin: 2px 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.pending { background: #FFF6DD; border: 2px dashed var(--mustard); border-radius: 12px; padding: 10px 14px; font-size: .95rem; }

/* Thank-you / steps pages */
ol.steps { list-style: none; padding: 0; display: grid; gap: 18px; margin: 30px 0; }
ol.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
ol.steps .n { font-family: var(--hand); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--coral-dk); text-align: center; }
ol.steps h2 { font-family: var(--hand); font-size: 1.7rem; text-transform: uppercase; margin: 0; }

/* Prose pages */
.prose h2 { font-family: var(--hand); font-weight: 700; font-size: 2rem; text-transform: uppercase; margin-top: 1.4em; }
.prose li { margin: 4px 0; }

/* Footer */
footer.site { background: var(--petrol); color: #E9F1EF; margin-top: 70px; }
footer.site .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding: 40px 0 26px; }
footer.site a { color: #fff; }
footer.site .motto { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 4px 0; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; font-size: .88rem; color: #BFD3CF; }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mt0 { margin-top: 0; }

/* Readability: the hand font (Amatic SC) is kept for big titles only; small labels use Mulish heavy caps. */
.chip, nav.main a, .btn, .tags li, .peek figcaption, .mock .stamp { font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.chip { font-size: .78rem; padding: .35em 1em; }
nav.main a { font-size: .82rem; padding: .55em .9em; }
.btn { font-size: .9rem; padding: .75em 1.4em; }
.tags li { font-size: .75rem; padding: .3em .8em; }
.peek figcaption { font-size: .8rem; color: var(--muted); }
.brand .name small { font-family: var(--sans); font-weight: 700; font-size: .7rem; letter-spacing: .04em; text-transform: none; }
h3 { font-size: 2.3rem; line-height: 1; }
details.src summary { font-size: 1.9rem; }
.mock .stamp { font-size: .8rem; padding: 4px 40px; }
ol.steps h2 { font-size: 2rem; }
/* Contrast: lead text on coral sits on a light card; icons painted on white paper blend into cream/mustard. */
.band.coral .lead { color: var(--ink); background: rgba(255,255,255,.9); padding: .7em 1em; border-radius: 14px; }
.card img.icon, .collection.soon img, img.blend, .mock img { mix-blend-mode: multiply; }
.mock img { background: transparent; padding: 0; }
/* Collections hub: four-up grid, the book "shelf" inside a collection card, breadcrumb */
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }
.grid.four .card img.icon { height: 64px; width: auto; }
.shelf { list-style: none; padding: 0; margin: 14px 0 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.shelf li a, .shelf li.ghost { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--cream); border-radius: 12px; padding: 8px 14px 8px 8px; font-size: .85rem; line-height: 1.25; }
.shelf li img { width: 44px; border-radius: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.shelf li.ghost { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.shelf li.ghost .q { width: 44px; height: 66px; border-radius: 3px; background: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--coral-dk); }
.crumb { font-size: .85rem; font-weight: 700; margin: 0 0 10px; }
.crumb a { color: #fff; }
.tips { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; text-align: left; }
.tips li { background: var(--cream); border-radius: 12px; padding: 10px 14px; }
