:root {
  --ink: #33284a;
  --muted: #675e75;
  --paper: #f8fcfd;
  --ice: #d9f2f7;
  --line: #d9cdef;
  --accent: #8060c4;
  --accent-dark: #5c3d99;
  --sky: #98dcf1;
  --mint: #d8fbda;
  --pink: #ff7f91;
  --yellow: #ffd34e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(51, 40, 74, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 72px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(51, 40, 74, 0.15);
  background: rgba(248, 252, 253, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Newsreader", serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 6px solid var(--accent);
  border-radius: 50%;
  background: var(--yellow);
}

.brand-mark span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}

.header-note,
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-note {
  color: var(--muted);
}

.intro {
  min-height: min(620px, calc(100vh - 72px));
  padding: 64px 5vw 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(152, 220, 241, 0.58), rgba(216, 251, 218, 0.46) 58%, transparent 82%),
    var(--paper);
}

.intro-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", serif;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(58px, 7.5vw, 110px);
  line-height: 0.86;
  letter-spacing: 0;
}

.lede {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.intro-image {
  position: relative;
  min-height: 360px;
  height: min(480px, 55vw);
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ice);
}

.intro-image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(51, 40, 74, 0.12);
  pointer-events: none;
}

.intro-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.intro-image figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.intro-image figcaption a {
  color: inherit;
  text-underline-offset: 2px;
}

.archive {
  padding: 88px 5vw 104px;
  background: var(--white);
}

.archive-heading {
  max-width: 1280px;
  margin: 0 auto 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
}

.search {
  width: min(100%, 440px);
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--ice);
}

.search:focus-within {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.search svg {
  width: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search input::placeholder {
  color: #756b82;
}

kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: var(--white);
  font-family: inherit;
  font-size: 12px;
}

.results-meta {
  max-width: 1280px;
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
}

.results-meta p {
  margin: 0;
}

.clear-button,
.empty-state button {
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.competition-list {
  max-width: 1280px;
  margin: 0 auto;
}

.competition {
  padding: 34px 0 38px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.competition[hidden] {
  display: none;
}

.year {
  padding-top: 4px;
  color: var(--accent);
  font-family: "Newsreader", serif;
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.competition-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

h3 {
  margin-bottom: 10px;
  font-family: "Newsreader", serif;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}

.status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-unknown {
  color: var(--muted);
  background: var(--ice);
}

.status-winner {
  color: #315d46;
  background: var(--mint);
}

.status-runner-up {
  color: #684d12;
  background: #fff8c9;
}

.status-missed {
  color: #863a51;
  background: #ffe8ed;
}

.location {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.details {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 260px));
  gap: 20px;
}

.details div {
  display: grid;
  gap: 5px;
}

.details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.note {
  max-width: 720px;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--pink);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.empty-state {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 20px;
  text-align: center;
}

.empty-state p {
  margin-bottom: 12px;
  font-family: "Newsreader", serif;
  font-size: 28px;
}

footer {
  min-height: 128px;
  padding: 32px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 780px) {
  .intro {
    min-height: 0;
    padding-top: 48px;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .intro-image {
    height: 52vw;
    min-height: 280px;
  }

  .archive {
    padding-top: 64px;
  }

  .archive-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
  }

  .search {
    width: 100%;
  }

  .competition {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .year {
    font-size: 22px;
    padding-top: 6px;
  }

  .competition-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .header-note,
  kbd {
    display: none;
  }

  .intro {
    padding-right: 20px;
    padding-left: 20px;
  }

  .intro-image {
    min-height: 240px;
  }

  .archive {
    padding: 56px 20px 72px;
  }

  .competition {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .year {
    font-size: 22px;
    padding-top: 0;
  }

  .details {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}