/* ===== Brand colours and type: change these to restyle the whole site ===== */
:root {
  --navy: #16213E;
  --navy-2: #2E4478;
  --amber: #F5A524;
  --amber-ink: #8A5700;      /* amber dark enough for small text */
  --amber-deep: #B36B00;     /* wordmark and rules */
  --amber-soft: #FFF4DE;
  --teal: #2A9D8F;
  --white: #fff;
  --text: #1C2437;
  --muted: #5A6274;
  --radius: 6px;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h-weight: 500; --h-track: -.012em;
  --bg: #FBF8F3; --tint: #F3EEE4; --line: #E2DACB;
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-hover: #2E4478;

}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--sans); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: var(--h-weight); line-height: 1.15; color: var(--navy); letter-spacing: var(--h-track); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 12px; }
a { color: var(--navy-2); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 80px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; color: var(--muted); }

/* ----- Buttons ----- */
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 24px; border-radius: 3px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid var(--btn-bg); text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-sm { padding: 7px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
button.btn { font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer; }
.btn.disabled, .btn:disabled { background: var(--tint); color: var(--muted); border-color: var(--line); pointer-events: none; cursor: default; }
.sample-box .btn.disabled { background: var(--white); }

/* ----- Keyboard and screen reader helpers ----- */
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 3px; }
.site-footer :focus-visible, .legal-hero :focus-visible, .hero-panel :focus-visible { outline-color: var(--amber); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 3px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ----- Brand / header ----- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.1; }
.brand b { color: var(--navy); font-weight: 700; }
.brand em { font-style: normal; color: var(--amber-deep); font-weight: 700; }
.brand small { font-weight: 400; color: var(--navy); font-size: 1em; }
.brand.light b, .brand.light small { color: var(--white); }
.brand.light em { color: var(--amber); }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .96rem; }
nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ----- Worksheet mock-up used on product covers ----- */
.sheet { --accent: var(--amber); position: absolute; right: 8%; top: 0; width: 260px; height: 340px; background: var(--white); border-radius: 3px; box-shadow: 0 1px 2px rgba(22,33,62,.12), 0 10px 24px rgba(22,33,62,.12); padding: 0 20px 20px; transform: rotate(2deg); overflow: hidden; }
.sheet.reading { --accent: var(--teal); }
.sheet-top { display: flex; align-items: center; gap: 8px; margin: 0 -20px 16px; padding: 10px 20px; background: var(--navy); color: var(--white); font: 600 .72rem var(--sans); letter-spacing: .02em; border-bottom: 4px solid var(--accent); }
.sheet-top span { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.sheet-title { font: 600 1.1rem var(--serif); color: var(--navy); margin-bottom: 14px; }
.q { display: flex; gap: 10px; align-items: center; margin: 12px 0 8px; }
.q i { font: 700 .75rem var(--sans); font-style: normal; width: 22px; height: 22px; border-radius: 4px; background: var(--amber-soft); color: var(--navy); display: grid; place-items: center; flex: none; }
.sheet.reading .q i { background: #E3F4F1; }
.q p { margin: 0; height: 8px; flex: 1; border-radius: 4px; background: var(--line); }

/* ----- Steps ----- */
.steps-wrap { padding: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-left: 20px; padding-right: 20px; background: linear-gradient(var(--line), var(--line)) 20px 0 / calc(100% - 40px) 1px no-repeat, linear-gradient(var(--line), var(--line)) 20px 100% / calc(100% - 40px) 1px no-repeat; }
.steps > div { padding: 30px 32px 32px 0; }
.steps > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.steps span { display: block; font: 400 1.9rem/1 var(--serif); color: var(--amber-ink); margin-bottom: 10px; }
.steps h3 { margin: 0 0 4px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ----- Shop ----- */
#shop { padding-top: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-title { max-width: 40em; }
.section-head .intro { margin: 8px 0 0; }
.tabs { display: flex; gap: 28px; }
.tab { padding: 8px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 600 1rem var(--sans); cursor: pointer; border-radius: 0; }
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--amber); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.price-note { margin: 22px 0 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 860px; margin: 32px auto 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.product { display: flex; flex-direction: column; position: relative; transition: border-color .2s; }
.product:hover { border-color: #B9C0D0; }
.badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 3px; }
.cover { background: var(--tint); border-radius: 3px; height: 190px; position: relative; overflow: hidden; }
.cover .sheet { width: 150px; height: 200px; right: auto; left: 50%; top: 22px; margin-left: -75px; padding: 0 12px; transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(22,33,62,.15), 0 8px 18px rgba(22,33,62,.14); }
.cover .sheet-top { margin: 0 -12px 10px; padding: 7px 12px; font-size: .55rem; }
.cover .sheet-title { font-size: .8rem; margin-bottom: 6px; }
.cover .q { margin: 7px 0; }
.cover .q i { width: 15px; height: 15px; font-size: .55rem; border-radius: 3px; }
.cover .q p { height: 6px; }
.product h3 { margin: 20px 0 6px; font-size: 1.25rem; }
.product p { margin: 0 0 10px; color: var(--muted); font-size: .98rem; }
.meta { font-size: .84rem !important; }
.buttons { margin-top: auto; display: grid; gap: 8px; padding-top: 10px; }
.prices { margin: auto 0 0 !important; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy) !important; font-weight: 600; font-size: .96rem !important; }
.prices + .buttons { margin-top: 0; }
.empty { color: var(--muted); padding: 40px; text-align: center; background: var(--tint); border-radius: var(--radius); }

/* ----- Sample ----- */
.sample { padding: 8px 0 80px; }
.sample-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--amber-soft); border: 1px solid #F1D9A4; border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 36px 40px; }
.sample-box h2 { margin-bottom: 6px; }
.sample-box p { margin: 0; max-width: 36em; }
.sample-box .consent { margin-top: 10px; color: #4F5870; }

/* ----- Licences ----- */
#licences { background: var(--tint); }
.licence h3 { margin: 0 0 4px; font-size: 1.35rem; }
.licence ul { padding: 0; list-style: none; margin: 16px 0 0; }
.licence li { padding: 6px 0 6px 26px; position: relative; }
.licence li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 6px; height: 11px; border: solid #1F7A6E; border-width: 0 2px 2px 0; transform: rotate(40deg) scale(.9); transform-origin: 50% 50%; }
.licence.featured { border: 2px solid var(--navy); }

/* ----- About ----- */
.about-box { display: flex; gap: 28px; align-items: center; max-width: 860px; }
.about-box p { margin: 0; color: var(--muted); }

/* ----- FAQ ----- */
#faq { padding-top: 0; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #AEB8CF; padding: 44px 0 30px; }
.site-footer .small { color: #9DA8C2; }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer nav { flex-wrap: wrap; gap: 18px; }
.site-footer nav a, .site-footer nav span { color: #DCE3F2; font-size: .92rem; }

/* ----- Legal page ----- */
.legal-hero { background: var(--navy); color: #DCE3F2; padding: 48px 0; }
.legal-hero h1 { color: var(--white); margin: 0 0 8px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-nav a { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 3px; font-size: .9rem; }
.legal-nav a:hover { border-color: var(--amber); }
.legal { padding-top: 40px; }
.legal h2 { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.legal h2:first-child { margin-top: 0; border-top: 0; }
.legal h3 { margin-top: 28px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .94rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--tint); }

/* ----- Hero (A: publisher) ----- */
.hero { padding: 76px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 14px; font: 600 1rem var(--sans); letter-spacing: .01em; color: var(--amber-ink); margin: 0 0 24px; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--amber); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.06; margin: 0 0 26px; max-width: 11.5em; }
.lead { font-size: 1.22rem; line-height: 1.6; color: #39435B; max-width: 31em; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn { padding: 13px 28px; }
.facts { list-style: none; padding: 22px 0 0; margin: 48px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0; }
.facts li { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); line-height: 1.4; }
.facts li:last-child { border: 0; margin: 0; padding: 0; }
.facts strong { display: block; white-space: nowrap; color: var(--navy); font-weight: 600; font-size: .98rem; }
.facts span { display: block; color: var(--muted); font-size: .92rem; }
.hero-sheets { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 440px; padding: 0 0 0 0; }
.hero-sheets img { border-radius: 2px; background: #fff; }
.sheet-front { position: relative; z-index: 2; width: 91%; box-shadow: 0 0 0 1px rgba(22,33,62,.07), 0 2px 4px rgba(70,50,20,.08), 0 18px 36px rgba(70,50,20,.14), 0 40px 70px rgba(70,50,20,.12); }
.sheet-back { position: absolute; z-index: 1; width: 91%; right: 0; top: -16px; transform: rotate(2.2deg); transform-origin: 10% 95%; box-shadow: 0 0 0 1px rgba(22,33,62,.07), 0 10px 24px rgba(70,50,20,.1); }
.hero-sheets figcaption { position: relative; z-index: 2; margin: 26px 0 0; font: italic 400 1rem/1.4 var(--serif); color: var(--muted); text-align: left; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 52px 0 68px; }
  .hero-sheets { margin: 0 auto; max-width: 400px; padding-right: 0; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 12px 0; margin: 0; white-space: normal; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts li:last-child { border-bottom: 0; }
  .hero h1 { font-size: 2.45rem; }
  .lead { font-size: 1.12rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-sheets { max-width: 330px; }
}

/* ----- Phones ----- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps > div, .steps > div + div { padding: 22px 0; border-left: 0; }
  .steps > div + div { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  nav { gap: 18px; }
  nav a:not(.btn) { display: none; }
  .site-footer nav a { display: inline; }
  .brand { font-size: 1.2rem; }
  section { padding: 56px 0; }
  #shop { padding-top: 56px; }
  .sample-box { padding: 28px 22px; }
  .about-box { flex-direction: column; text-align: center; }
  .sample-box .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .site-header .wrap { padding-left: 14px; padding-right: 14px; }
  nav { gap: 10px; }
  .brand { gap: 7px; font-size: 1.06rem; }
  .brand img { width: 30px; height: 30px; }
  .site-header .btn-sm { padding: 6px 10px; font-size: .86rem; white-space: nowrap; }
}
