:root {
  color-scheme: light;
  --ink: #15254b;
  --paper: #fff7e8;
  --coral: #ff786c;
  --gold: #ffc64b;
  --blue: #4675d5;
  --mint: #d7efe5;
  --link: #204fbd;
  --muted: #5d6472;
  --rule: #c8c4ba;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-wrap: anywhere; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { color: #ba3f45; }
a:focus-visible, summary:focus-visible { outline: 3px solid #b57900; outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.6rem;
  background: white;
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header, main, footer { width: min(calc(100% - 2rem), 900px); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}
.tile {
  display: grid;
  width: 33px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--coral);
  box-shadow: 0 3px 0 var(--ink);
  line-height: 1;
  transform: rotate(-4deg);
}
.tile:nth-child(2) { background: var(--gold); transform: rotate(3deg); }
.tile:nth-child(3) { background: var(--blue); color: white; transform: rotate(-2deg); }
.brand-word { margin-left: 5px; letter-spacing: 0.02em; }
.brand[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 6px; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem 1.1rem; font-size: 0.94rem; font-weight: 750; }
nav a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
nav a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 3px; }

main { min-height: 65vh; padding: 3.25rem 0 4rem; }
main:focus { outline: none; }
h1 { max-width: 820px; margin: 0 0 1.5rem; font-size: clamp(2.2rem, 8vw, 4.15rem); letter-spacing: -0.045em; line-height: 1.08; }
h2 { margin: 2.2rem 0 0.6rem; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.25; }
p, li { max-width: 760px; }
li + li { margin-top: 0.45rem; }
.eyebrow { margin: 0 0 1rem; color: #7d5741; font-size: 0.8rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.lede { max-width: 680px; font-size: 1.18rem; }
.callout { margin: 1.75rem 0 2rem; padding: 1.2rem 1.4rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--mint); box-shadow: 0 4px 0 var(--ink); }
.callout p { margin: 0; }
.pill { display: inline-block; margin: 0.5rem 0.5rem 0.5rem 0; padding: 0.65rem 1rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--coral); box-shadow: 0 4px 0 var(--ink); color: var(--ink); font-weight: 850; text-decoration: none; }
.pill:hover { background: var(--gold); color: var(--ink); }
.text-link { display: inline-block; margin: 0.5rem 0; }
.muted { color: var(--muted); font-size: 0.95rem; }
details { padding: 1rem 0; border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { width: fit-content; font-weight: 800; cursor: pointer; }
details p { margin: 0.7rem 0 0; }
.license-list { padding-left: 1.35rem; }
.license-list li { margin-block: 0.8rem; }
section + section { margin-top: 1.4rem; }
section h2 { margin-top: 1.5rem; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 1.25rem 0; }
  nav { justify-content: flex-start; gap: 0.35rem 0.9rem; }
  main { padding-top: 2.25rem; }
  .brand-word { font-size: 1.15rem; }
  .callout { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
