/* Fluent Academy: warm peach, deep plum, marigold and rose. DM Serif Display for headings, Outfit for text.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #FDF0E6;
  --surface: #FFFFFF;
  --soft: #FBE3D2;
  --ink: #2A1636;
  --muted: #6B5470;
  --line: #EED6C4;
  --line-strong: #DFC0AA;
  --brand: #3B1F4A;
  --brand-hover: #2A1636;
  --brand-ink: #FFFFFF;
  --brand-text: #3B1F4A;
  --mari: #F2A93B;
  --rose: #D9576B;
  --eyebrow: #B23E52;
  --announce-bg: #F2A93B;
  --announce-ink: #2A1636;
  --head: "DM Serif Display", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;
  --fs-body: 1.05rem;
  --radius: 14px;
  --radius-lg: 24px;
  --btn-radius: 999px;
  --wrap: 1180px;
  --gap: 22px;
}
h1, h2, h3 { font-weight: 400; letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--rose); }
.btn { font-weight: 600; }

/* header */
.header { background: var(--bg); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; }
.logo span { font: 400 1.7rem var(--head); color: var(--brand); }
.logo i { color: var(--mari); font-style: normal; }
.nav a { font-weight: 500; }
.nav a[aria-current="page"] { background: var(--soft); }

/* hero */
.hero { padding-block: clamp(32px, 5vw, 76px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); line-height: 1.02; margin: 14px 0 18px; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* the test report card, also used by the band calculator */
.trf { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 28px 50px -34px rgba(59,31,74,.55); position: relative; }
.hero .trf { transform: rotate(1.5deg); }
.trf::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, var(--brand) 0 50%, var(--mari) 50% 75%, var(--rose) 75%); }
.trf-head { display: flex; justify-content: space-between; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding-top: 6px; }
.trf-name { font: 400 1.5rem var(--head); }
.trf ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.trf li { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: var(--bg); text-align: center; }
.trf li span { font-size: .78rem; color: var(--muted); }
.trf li b { font: 400 1.7rem var(--head); color: var(--brand); }
.trf li.short { background: #FCE4E7; }
.trf li.short b { color: var(--rose); }
.trf-overall { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--brand); color: #fff; }
.trf-overall b { font: 400 2.6rem/1 var(--head); color: var(--mari); }
.trf-foot { font-size: .86rem; color: var(--muted); }
@media (max-width: 420px) { .trf ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.week-band { background: var(--brand); color: #E6D8EC; }
.week-band .sec-title { color: #fff; }
.week { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
@media (max-width: 900px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.week li { display: grid; gap: 6px; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.08); }
.week b { font: 400 1.6rem var(--head); color: var(--mari); }
.week li:last-child { background: var(--mari); color: var(--ink); }
.week li:last-child b { color: var(--brand); }

/* band calculator */
.bc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .bc { grid-template-columns: minmax(0, 1fr); } }
.bc-in { display: grid; gap: 18px; }
.seg input:focus-visible + span { outline-color: var(--mari); }
.bc-out { position: sticky; top: 96px; }
.bc-msg { font-weight: 500; }
.bc-msg b { color: var(--rose); }

/* inner pages */
.page-head { margin-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); color: var(--brand); }

/* CTA + footer */
.cta-band { padding-block: clamp(44px, 6vw, 80px); background: var(--mari); color: var(--ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--brand); }
.cta-band p { margin-top: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { border-color: var(--brand); color: var(--brand); }
.footer { background: #2A1636; color: #CDB9D4; --footer-line: rgba(255,255,255,.14); }
.footer .logo span { color: #fff; }
.footer h2 { color: #fff; }
.f-about { margin-top: 12px; max-width: 34ch; }
.footer .credit a { color: #fff; }
