@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #f2f0e9;
  --blue: #1025c9;
  --acid: #e8ff3f;
  --line: #181818;
  --muted: #686862;
  --white: #fffef8;
  --orange: #ff5c35;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--acid);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.site-header {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  background: var(--blue);
}

.brand {
  justify-self: start;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid currentColor;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.edition,
.jump-link {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
}

.edition span { color: var(--acid); }

.jump-link {
  justify-self: end;
  color: inherit;
  text-underline-offset: 5px;
}

.masthead {
  min-height: 398px;
  padding: 60px 4vw 54px;
  display: grid;
  grid-template-columns: minmax(600px, 1.4fr) minmax(280px, .6fr);
  align-items: end;
  color: var(--white);
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.eyebrow,
.section-number,
.masthead-note,
.card-topline,
.card-bottom,
.time,
.meta-label,
.detail-kicker,
.result-count,
footer {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.eyebrow {
  margin: 0 0 15px;
  font-size: 12px;
  color: var(--acid);
}

h1 {
  max-width: 880px;
  margin: 0;
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(70px, 7.7vw, 120px);
  font-weight: 600;
  line-height: .82;
  text-transform: uppercase;
  letter-spacing: -.045em;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.masthead-note {
  max-width: 330px;
  margin: 0 0 4px auto;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.6);
  font-size: 12px;
  line-height: 1.65;
}

.masthead-note p { margin: 0 0 18px; }
.weather-line { color: var(--acid); }

.browser {
  padding: 66px 4vw 100px;
}

.browser-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-number {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

h2 {
  margin: 0;
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(43px, 4.5vw, 66px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.result-count {
  margin: 0 0 7px;
  font-size: 11px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 240px 230px;
  min-height: 86px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.search-field,
.filter-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 11px 20px;
  border-right: 1px solid var(--line);
}

.controls label,
.saved-copy small {
  display: block;
  margin-bottom: 4px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-wrap > span {
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
}

input { padding: 3px 0; }
input::placeholder { color: #8c8c86; font-weight: 400; }
select { padding: 4px 20px 4px 0; }

.saved-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 10px 20px;
  border: 0;
  color: var(--white);
  background: var(--ink);
  text-align: left;
}

.saved-toggle[aria-pressed="true"] {
  color: var(--ink);
  background: var(--acid);
}

.saved-icon { color: var(--acid); font-size: 22px; }
.saved-toggle[aria-pressed="true"] .saved-icon { color: var(--blue); }
.saved-copy small { color: #afafa8; }
.saved-toggle[aria-pressed="true"] .saved-copy small { color: #55564e; }
.saved-copy strong { display: block; font-size: 14px; }
.saved-count {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.event-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--blue);
}

.card-open {
  width: 100%;
  height: 100%;
  min-height: 284px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.card-topline,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 41px;
  padding: 9px 16px;
  font-size: 9px;
  font-weight: 600;
}

.card-topline { border-bottom: 1px solid var(--line); }
.category::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--category, var(--blue));
}

.saved-marker { color: var(--blue); }

.card-main {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  flex: 1;
  padding: 22px 16px 12px;
}

.date-block {
  align-self: start;
  display: flex;
  flex-direction: column;
  padding-right: 16px;
  border-right: 1px solid #bdbdb6;
}

.day-number {
  font-family: "Oswald", sans-serif;
  font-size: 38px;
  font-weight: 500;
  line-height: .9;
}

.day-name {
  margin-top: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.card-copy {
  display: flex;
  flex-direction: column;
  padding: 0 19px;
}

.time { margin-bottom: 10px; color: var(--blue); font-size: 10px; }

.event-title {
  max-width: 460px;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 27px;
  font-weight: 550;
  line-height: 1.08;
  text-transform: uppercase;
}

.venue {
  margin-top: auto;
  padding-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  font-size: 17px;
  transition: background-color 150ms ease, color 150ms ease;
}

.card-open:hover .card-arrow {
  color: var(--white);
  background: var(--blue);
}

.card-summary {
  padding: 6px 16px 19px 107px;
  color: #4d4d49;
  font-size: 13px;
  line-height: 1.45;
}

.card-bottom {
  border-top: 1px solid var(--line);
  color: #4d4d49;
}

.price { color: var(--ink); font-size: 12px; }

.empty-state {
  min-height: 360px;
  padding: 55px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.empty-state[hidden] { display: none; }
.empty-symbol { color: var(--blue); font-family: "Oswald", sans-serif; font-size: 76px; line-height: 1; }
.empty-state h3 { margin: 10px 0 4px; font-family: "Oswald", sans-serif; font-size: 35px; text-transform: uppercase; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.empty-state button {
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 4vw;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
}

footer p { margin: 0; }

.detail-dialog {
  width: min(620px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: -12px 0 0 var(--acid);
  overscroll-behavior: contain;
}

.detail-dialog::backdrop { background: rgba(4, 7, 31, .72); }

.detail-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
}

.detail-kicker { margin: 0; color: var(--blue); font-size: 10px; font-weight: 600; }

.close-detail {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 0 8px 12px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.close-detail span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  font-size: 17px;
}

.detail-body { padding: 42px 45px; }

.detail-category {
  margin: 0 0 16px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.detail-category::before { content: "■"; margin-right: 8px; color: var(--category); }

.detail-body h2 {
  max-width: 480px;
  font-size: clamp(48px, 5vw, 66px);
  line-height: .97;
}

.detail-deck {
  margin: 25px 0 30px;
  padding-left: 20px;
  border-left: 5px solid var(--acid);
  font-size: 17px;
  line-height: 1.55;
}

.detail-deck p { margin: 0 0 14px; }
.detail-deck p:last-child { margin-bottom: 0; color: #5f5f59; font-size: 14px; }

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.meta-cell {
  min-height: 85px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; }
.meta-cell strong { font-size: 13px; line-height: 1.35; }

.save-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 57px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--white);
  background: var(--blue);
  font-weight: 700;
}

.save-item[aria-pressed="true"] { color: var(--ink); background: var(--acid); }
.save-item .star { font-size: 19px; }

.detail-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .site-header {
    height: 58px;
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .edition { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 27px; height: 27px; }

  .masthead {
    min-height: 356px;
    display: block;
    padding: 51px 18px 34px;
    background-size: 24px 24px;
  }

  .eyebrow { margin-bottom: 19px; font-size: 9px; }
  h1 { font-size: clamp(62px, 21vw, 88px); line-height: .85; }
  .masthead-note { margin: 39px 0 0; padding-top: 12px; font-size: 9px; }
  .masthead-note p:first-child { display: none; }
  .masthead-note p { margin: 0; }

  .browser { padding: 42px 14px 64px; }
  .browser-heading { align-items: start; margin-bottom: 22px; }
  .section-number { font-size: 9px; }
  h2 { font-size: 40px; }
  .result-count { max-width: 65px; margin-top: 7px; text-align: right; font-size: 8px; }

  .controls {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
  }

  .search-field {
    grid-column: 1 / -1;
    min-height: 73px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-field { min-height: 68px; padding: 9px 13px; }
  .saved-toggle { min-height: 68px; padding: 9px 12px; }
  .saved-icon { font-size: 17px; }
  .saved-copy strong { font-size: 12px; }
  .saved-count { width: 26px; height: 26px; }

  .event-list { grid-template-columns: 1fr; gap: 10px; }
  .card-open { min-height: 255px; }
  .card-main { grid-template-columns: 60px 1fr auto; padding: 18px 13px 10px; }
  .date-block { padding-right: 12px; }
  .day-number { font-size: 32px; }
  .card-copy { padding: 0 13px; }
  .event-title { font-size: 23px; }
  .card-summary { padding: 4px 13px 16px 86px; font-size: 12px; }
  .card-topline, .card-bottom { padding-left: 13px; padding-right: 13px; }
  .event-card:hover { transform: none; box-shadow: none; }

  footer { display: block; padding: 28px 18px; }
  footer p + p { margin-top: 8px; color: #9f9f99; }

  .detail-dialog {
    width: 100vw;
    box-shadow: none;
  }

  .detail-head { min-height: 58px; padding: 8px 17px; position: sticky; top: 0; z-index: 2; background: var(--white); }
  .detail-body { padding: 30px 20px 35px; }
  .detail-body h2 { font-size: 48px; }
  .detail-deck { margin: 23px 0; font-size: 15px; }
  .meta-cell { min-height: 77px; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
