/* Sensory Lab website. Colours match the books and cards. No web fonts, no scripts. */
:root {
  --teal: #2A7F7A;
  --teal-dark: #1F5F5B;
  --teal-light: #E3F1EF;
  --coral: #E0705A;
  --coral-dark: #A4442F;
  --coral-light: #FBE9E4;
  --sage: #A9B99B;
  --sage-light: #EEF2EA;
  --sand: #F6F1E8;
  --ink: #2B2B2B;
  --muted: #5A5A5A;
  --line: #E2DCD1;
  --white: #FFFFFF;
  --youtube: #C4302B;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(43, 43, 43, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--teal-dark); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 1.2em 0 .4em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .3em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 32px; padding-bottom: 40px; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 190px; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: .97rem; }
.main-nav a:hover { background: var(--teal-light); }
.main-nav a[aria-current="page"] { background: var(--teal); color: var(--white); }

/* Buttons */
.btn { display: inline-block; background: var(--teal); color: var(--white); text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--teal); }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-big { padding: 14px 26px; font-size: 1.05rem; }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn-youtube { background: var(--youtube); border-color: var(--youtube); }
.btn-youtube:hover { background: #A12520; border-color: #A12520; }
.btn-ghost { background: transparent; color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-light); color: var(--teal-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.text-link { font-weight: 700; color: var(--teal-dark); }

/* Badges */
.badges { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: var(--coral-light); color: var(--coral-dark); font-weight: 700; padding: 5px 13px; border-radius: 999px; font-size: .92rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--white), var(--sand)); }
.hero-grid { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 32px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--coral-dark); margin: 0; font-size: .85rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 48px; padding-bottom: 56px; } }

/* Topic cards (home) */
.topic-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.topic-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 6px solid var(--teal); }
.topic-card.accent-coral { border-top-color: var(--coral); }
.topic-card img { border-radius: 8px; border: 1px solid var(--line); }
.topic-card:hover { transform: translateY(-2px); }
.topic-body { display: flex; flex-direction: column; gap: 6px; }
.topic-title { font-size: 1.3rem; font-weight: 800; color: var(--teal-dark); }
.meta { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* Download cards */
.topic-section { margin-top: 28px; }
.topic-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 2px solid var(--line); }
.topic-head h2 { margin-bottom: .3em; }
.dl-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 20px; }
.dl-card, .video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl-card img, .video-card img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--sand); }
.video-card img { aspect-ratio: 16 / 10; }
.dl-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.15rem; margin: 0; }
.dl-body p { margin: 0; }
.dl-body .btn { margin-top: auto; align-self: flex-start; }
.dl-body .meta { margin-top: 4px; margin-bottom: 10px; }
.kind { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 800; color: var(--coral-dark); }
.soon-art { aspect-ratio: 3 / 2; display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--sage-light), var(--sage-light) 14px, var(--white) 14px, var(--white) 28px); color: var(--teal-dark); font-weight: 800; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
.dl-card.soon, .video-card.soon { opacity: .92; }

/* Steps band */
.band { background: var(--teal-light); }
.steps { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.steps h3 { margin-top: .4em; }
.steps p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--coral-dark); color: var(--white); font-weight: 800; }

/* Splits and notes */
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.note-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-left: 6px solid var(--sage); margin: 20px 0; }
.note-card h2, .note-card h3 { margin-top: 0; font-size: 1.15rem; }
.tick-list { padding-left: 1.2em; }
.tick-list li { margin: .35em 0; }
.crumbs { color: var(--muted); font-size: .95rem; margin: 0; }

/* Guides */
.guide-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 20px 0 8px; }
.guide-card { background: var(--white); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--sage); }
.guide h2 { font-size: 1.3rem; margin-top: 1.5em; }
.guide ul { padding-left: 1.2em; }
.guide li { margin: .4em 0; }
.source { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1.6fr; } }
.footer-logo { width: 160px; }
.free-line { font-weight: 700; color: var(--teal-dark); }
.fine { font-size: .88rem; color: var(--muted); margin: 0 0 .7em; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-row { justify-content: center; }
  .main-nav { justify-content: center; }
  .main-nav a { padding: 6px 10px; font-size: .93rem; }
  .topic-card { grid-template-columns: 90px 1fr; }
  .btn-big { width: 100%; text-align: center; }
}
