/* blɘnding foundation: one stylesheet, no build. */
:root {
  color-scheme: light dark;
  --canvas: #fffdf7;
  --surface: #ffffff;
  --ink: #1d1b2e;
  --muted: #5d5a73;
  --line: #e6e2d6;
  --math: #2f6df6;
  --geometry: #f0a51b;
  --music: #e24b8a;
  --accent: #2f6df6;
  --focus: #1d4ed8;
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #15131f;
    --surface: #1e1b2b;
    --ink: #f4f1ff;
    --muted: #b3aec9;
    --line: #2d2940;
    --accent: #8fb2ff;
    --focus: #8fb2ff;
  }
}

* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
  color: var(--ink);
  font-family:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
main:focus {
  outline: none;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.skip:focus {
  top: 1rem;
}

/* header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top .in {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand img {
  width: 2rem;
  height: 2rem;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0.125rem;
}
.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* the backwards e: a real e, mirrored, so it reads as "blending" to a screen reader */
.flip {
  display: inline-block;
  transform: scaleX(-1);
}

main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  max-width: 22ch;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}
h3 {
  font-size: 1.125rem;
  margin-top: 1.25rem;
}
p,
li {
  max-width: var(--measure);
}
.lede {
  font-size: 1.25rem;
  color: var(--muted);
}
.placeholder {
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
}

/* the hero: mark and words side by side when there's room */
.hero {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
}
@media (min-width: 48rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 14rem;
  }
}
.hero .mark {
  width: min(14rem, 60vw);
  height: auto;
  justify-self: center;
}

/* the three subjects */
.three {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .three {
    grid-template-columns: repeat(3, 1fr);
  }
}
.three li {
  max-width: none;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 0.375rem solid var(--c);
  border-radius: 0.75rem;
  background: var(--surface);
}
.three h3 {
  margin-top: 0;
}
.three .math {
  --c: var(--math);
}
.three .geometry {
  --c: var(--geometry);
}
.three .music {
  --c: var(--music);
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  .cta {
    color: #0f0d1a;
  }
}
.cta:hover {
  filter: brightness(1.08);
}

blockquote {
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 0.25rem solid var(--geometry);
  color: var(--muted);
  max-width: var(--measure);
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer .in {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: grid;
  gap: 0.5rem;
}
footer p {
  margin: 0;
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    transition: none !important;
    animation: none !important;
  }
}
