/* Aha & After · temporary homepage (Stage A pilot).
   Identity: the Page & Ampersand mark, cobalt page and marigold next sheet, ink on warm paper.
   Square edges throughout. The two covers borrow each course's own colours. */
:root {
  --paper: #FBF7EE; --sheet: #FFFDF8; --ink: #1E2547; --muted: #565B74; --hair: #E3DDCB;
  --pg: #2F49B8; --nx: #F6BE45; --poppy: #D8472B;
  --night: #0A1440; --night-text: #DFE5FA; --turq: #19C3D8; --coral-b: #FF8062;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pg); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 5; }
.skip:focus { left: 0; }

.top, main, .foot { max-width: 72rem; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup svg { width: 30px; height: 35px; display: block; }
.wm { font: 600 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.wm i { font-style: italic; color: var(--pg); }
.tag { font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 2px solid var(--ink); padding: 7px 10px; white-space: nowrap; }

.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(36px, 7vw, 88px) 0 clamp(32px, 6vw, 72px); }
.kick { font: 700 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pg); margin: 0 0 18px; }
h1 { font: 600 clamp(2.5rem, 7vw, 5rem)/1 var(--serif); letter-spacing: -.025em; margin: 0 0 26px; text-wrap: balance; }
h1 em { font-style: italic; color: var(--pg); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; margin: 0 0 14px; }
.lede.small { font-size: 1rem; color: var(--muted); }
.hero-mark { justify-self: end; width: min(100%, 300px); }
.hero-mark svg { display: block; width: 100%; height: auto; box-shadow: 14px 14px 0 var(--ink); }

h2 { font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 22px; border-top: 2px solid var(--ink); }
h2 span { display: inline-block; background: var(--ink); color: var(--paper); padding: 9px 12px 8px; }

.covers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
.cover { display: flex; flex-direction: column; min-height: clamp(340px, 42vw, 460px); padding: clamp(22px, 3vw, 34px); text-decoration: none; position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.cover:hover, .cover:focus-visible { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.c-top { display: flex; justify-content: space-between; gap: 12px; font: 700 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.c-title { display: block; margin: auto 0 16px; padding-top: 40px; line-height: .98; text-wrap: balance; }
.c-desc { display: block; font-size: 1rem; line-height: 1.5; max-width: 30em; }
.c-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; font: 700 .95rem/1 var(--sans); padding-top: 16px; border-top: 2px solid currentColor; }
.c-go svg { width: 30px; height: 12px; transition: transform .18s ease; }
.cover:hover .c-go svg { transform: translateX(6px); }

/* How Reading Works: its cobalt page and marigold next sheet */
.hrw { background: var(--pg); color: #FFFDF8; }
.hrw::after { content: ""; position: absolute; right: 0; bottom: 0; border-style: solid; border-width: 0 0 54px 54px; border-color: transparent transparent var(--nx) transparent; }
.hrw .c-kind { color: var(--nx); }
.hrw .c-title { font: 600 clamp(2.2rem, 4.6vw, 3.6rem)/.98 var(--serif); letter-spacing: -.02em; }
.hrw .c-go { margin-right: 60px; }

/* What Is Dyslexia?: its Night + Folio look */
.dys { background: var(--night); color: var(--night-text); }
.dys .c-kind { color: var(--turq); }
.dys .c-title { font: 400 clamp(2.3rem, 4.8vw, 3.8rem)/1 Didot, "Bodoni 72", "Bodoni MT", "Playfair Display", var(--serif); color: #fff; letter-spacing: -.01em; }
.dys .c-go { color: var(--coral-b); }
.dys .c-desc { font-family: Charter, "Iowan Old Style", Cambria, Georgia, serif; }

.notes { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 5vw, 56px); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
h3 { font: 600 1.3rem/1.2 var(--serif); margin: 0 0 8px; }
.cols p { margin: 0; color: var(--muted); }
.placeholder { border-left: 4px solid var(--nx); padding-left: 12px; font-style: italic; }

.foot { border-top: 2px solid var(--ink); padding-top: 18px; padding-bottom: 40px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot p { margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; width: 132px; order: -1; }
  .hero-mark svg { box-shadow: 8px 8px 0 var(--ink); }
  .covers, .cols { grid-template-columns: 1fr; }
  .cover { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .cover, .c-go svg { transition: none; } .cover:hover, .cover:focus-visible { transform: none; } }

/* a course that is not open yet: no hover lift, quieter */
.cover.held { opacity: .72; }
.cover.held:hover { transform: none; box-shadow: none; }
