@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-800.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bricolage-700.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-400-italic.woff2") format("woff2");
}

:root {
  --blue: #2531d6;
  --signal: #ffd23f;
  --on-blue: #ffffff;
  --mist: #c9cef7;
  --ink: #0d1033;
  --paper: #f6f7fb;
  --muted: #4b4f75;
  --rule: #d6d9ec;
  --link: #2531d6;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #1a239f;
    --ink: #eceefc;
    --paper: #0a0c28;
    --muted: #a5a9d0;
    --rule: #26295a;
    --link: #a3acff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

h1,
h2,
.site-name,
.link-name {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--signal);
  color: #0d1033;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--signal);
  color: #0d1033;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Hero */

.hero {
  background: var(--blue);
  color: var(--on-blue);
  overflow: hidden;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-name {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--on-blue);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--on-blue);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}

.hero-body {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  max-width: 15ch;
  font-weight: 800;
  font-size: clamp(2.5rem, 1rem + 7.2vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero--tall .hero-body {
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* Event lanes: five partitions, events arrive once on load */

.lanes {
  display: block;
  width: 100%;
  height: clamp(7.5rem, 14vw, 12.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.lane-lines line {
  stroke: var(--mist);
  stroke-opacity: 0.35;
  stroke-width: 1;
}

.events rect {
  fill: var(--on-blue);
  animation: arrive 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.events .dim {
  fill: var(--mist);
  fill-opacity: 0.55;
}

.events .signal {
  fill: var(--signal);
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateX(-180px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .events rect {
    animation: none;
  }
}

/* Home intro */

main {
  flex: 1;
}

.intro {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.intro-text {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.3125rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.5;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.links li {
  border-bottom: 1px solid var(--rule);
}

.links a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1.1rem 0;
  color: var(--ink);
  text-decoration: none;
}

.link-name {
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.link-handle {
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

.links a:hover .link-name {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

@media (min-width: 62rem) {
  .intro {
    grid-template-columns: 7fr 5fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
  }
}

/* About: question left, answer right */

.qa {
  display: grid;
  gap: 0.5rem 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.qa:first-child {
  border-top: 0;
}

.qa h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.qa p {
  margin: 0;
  max-width: 38rem;
}

main > .wrap {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 52rem) {
  .qa {
    grid-template-columns: 19rem 1fr;
  }
}

/* Footer */

.site-footer {
  padding: 1.75rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  max-width: 82rem;
  margin-inline: auto;
}

/* Event arrival delays, generated: one rule per rect, in document order */
.events rect:nth-of-type(1) { animation-delay: 233ms; }
.events rect:nth-of-type(2) { animation-delay: 327ms; }
.events rect:nth-of-type(3) { animation-delay: 433ms; }
.events rect:nth-of-type(4) { animation-delay: 588ms; }
.events rect:nth-of-type(5) { animation-delay: 688ms; }
.events rect:nth-of-type(6) { animation-delay: 822ms; }
.events rect:nth-of-type(7) { animation-delay: 916ms; }
.events rect:nth-of-type(8) { animation-delay: 255ms; }
.events rect:nth-of-type(9) { animation-delay: 333ms; }
.events rect:nth-of-type(10) { animation-delay: 450ms; }
.events rect:nth-of-type(11) { animation-delay: 561ms; }
.events rect:nth-of-type(12) { animation-delay: 694ms; }
.events rect:nth-of-type(13) { animation-delay: 805ms; }
.events rect:nth-of-type(14) { animation-delay: 972ms; }
.events rect:nth-of-type(15) { animation-delay: 355ms; }
.events rect:nth-of-type(16) { animation-delay: 466ms; }
.events rect:nth-of-type(17) { animation-delay: 588ms; }
.events rect:nth-of-type(18) { animation-delay: 1155ms; }
.events rect:nth-of-type(19) { animation-delay: 761ms; }
.events rect:nth-of-type(20) { animation-delay: 877ms; }
.events rect:nth-of-type(21) { animation-delay: 988ms; }
.events rect:nth-of-type(22) { animation-delay: 366ms; }
.events rect:nth-of-type(23) { animation-delay: 466ms; }
.events rect:nth-of-type(24) { animation-delay: 561ms; }
.events rect:nth-of-type(25) { animation-delay: 677ms; }
.events rect:nth-of-type(26) { animation-delay: 750ms; }
.events rect:nth-of-type(27) { animation-delay: 877ms; }
.events rect:nth-of-type(28) { animation-delay: 988ms; }
.events rect:nth-of-type(29) { animation-delay: 444ms; }
.events rect:nth-of-type(30) { animation-delay: 505ms; }
.events rect:nth-of-type(31) { animation-delay: 627ms; }
.events rect:nth-of-type(32) { animation-delay: 711ms; }
.events rect:nth-of-type(33) { animation-delay: 844ms; }
.events rect:nth-of-type(34) { animation-delay: 905ms; }
.events rect:nth-of-type(35) { animation-delay: 1011ms; }
.events rect:nth-of-type(36) { animation-delay: 1138ms; }
