@font-face {
  font-family: "Encode Display";
  src: url("assets/EncodeSansSemiCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --crimson: #a63446;
  --crimson-deep: #7c2235;
  --navy: #26375b;
  --navy-deep: #1a2642;
  --teal: #38bca8;
  --lime: #c0c854;
  --amber: #eca63a;
  --green: #2f6b4f;
  --rose: #d9503f;
  --ink: #26303f;
  --muted: #5d6675;
  --paper: #ffffff;
  --mist: #f3f5f9;
  --display: "Encode Display", "Arial Narrow", sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); color: var(--navy); }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px clamp(16px, 4vw, 48px);
  background: var(--paper);
}
.brand img { display: block; width: 86px; height: auto; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 36px); }
.bar nav a { color: var(--navy); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.bar nav a:hover { color: var(--crimson); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) 0;
  min-height: min(82vh, 760px);
  background: linear-gradient(100deg, var(--navy-deep) 0%, var(--crimson-deep) 38%, var(--crimson) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-text { align-self: center; padding-bottom: clamp(32px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.75rem); }
.tagline { margin-top: 18px; font-size: 1.25rem; font-weight: 600; }
.next { margin-top: 6px; max-width: 34ch; }
.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--crimson-deep);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--lime); color: var(--navy-deep); }

.panels {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3px, 0.5vw, 7px);
  align-items: end;
  height: clamp(380px, 62vh, 600px);
}
.panels li {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 82%;
  padding: 14px 0;
  animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both;
}
.panels li.up { height: 100%; }
.panels li:nth-child(n) { animation-delay: calc(var(--i, 0) * 45ms); }
.panels li:nth-child(2) { --i: 1; } .panels li:nth-child(3) { --i: 2; }
.panels li:nth-child(4) { --i: 3; } .panels li:nth-child(5) { --i: 4; }
.panels li:nth-child(6) { --i: 5; } .panels li:nth-child(7) { --i: 6; }
.panels li:nth-child(8) { --i: 7; } .panels li:nth-child(9) { --i: 8; }
.panels li:nth-child(10) { --i: 9; } .panels li:nth-child(11) { --i: 10; }
.panels li:nth-child(12) { --i: 11; }
.panels span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.8rem, 1.45vw, 1.2rem);
  line-height: 1;
  white-space: nowrap;
}
.p-amber { background: var(--amber); color: var(--navy-deep); }
.p-teal { background: var(--teal); color: var(--navy-deep); }
.p-navy { background: var(--navy); color: #fff; }
.p-green { background: var(--green); color: #fff; }
.p-rose { background: var(--rose); color: var(--navy-deep); }

@keyframes rise { from { transform: translateY(100%); } }

.fair {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px);
  background: var(--mist);
  scroll-margin-top: 90px;
}
.fair-when p { margin-top: 14px; max-width: 38ch; }
.fair dl { margin: 0; display: grid; gap: 20px; }
.fair dt { font-weight: 700; color: var(--crimson); }
.fair dd { margin: 0; font-size: 1.2rem; max-width: 46ch; }

.about {
  padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px) 0;
}
.about p { margin-top: 14px; max-width: 62ch; }

.speakers { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); }
.speakers ul {
  margin-top: 28px;
  columns: 3 280px;
  column-gap: 40px;
}
.speakers li {
  break-inside: avoid;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.speakers b { display: block; color: var(--navy); font-size: 1.05rem; }

footer {
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px);
  background: var(--navy-deep);
  color: #fff;
}
footer h2 { color: #fff; }
footer p { margin-top: 12px; }
footer p a { font-weight: 700; color: var(--lime); }
footer .archive { color: #d5dbe7; font-size: 0.95rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-bottom: 8px; }
  .panels { height: 300px; }
  .panels span { font-size: 0.72rem; }
  .fair { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .bar nav a { font-size: 0.85rem; }
  .brand img { width: 64px; }
  .panels { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .panels li:nth-child(n+9) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panels li { animation: none; }
}
