:root {
  --paper: #f3eee6;
  --paper-soft: #f8f4ed;
  --ink: #261f1b;
  --ink-muted: rgba(38, 31, 27, 0.7);
  --accent: #b94e4e;
  --line: rgba(112, 98, 86, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, rgba(67, 55, 47, 0.055) 0.7px, transparent 0.8px),
    radial-gradient(circle, rgba(185, 78, 78, 0.04) 0.6px, transparent 0.7px);
  background-size: 15px 15px, 23px 23px;
  background-position: 0 0, 7px 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

.click-spark-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 70;
}

.hackathon-shell {
  width: min(94vw, 1040px);
  margin: 1.25rem auto 2.2rem;
  padding: 0 clamp(1rem, 2.1vw, 1.8rem);
  background: rgba(248, 244, 237, 0.88);
  position: relative;
}

.hackathon-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(112, 98, 86, 0.2);
  border-bottom: 1px solid rgba(112, 98, 86, 0.2);
  pointer-events: none;
}

.hackathon-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(112, 98, 86, 0.24);
  background: rgba(248, 244, 237, 0.94);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hackathon-topbar__id {
  color: var(--accent);
}

.hackathon-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hackathon-topbar__nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.14rem;
  transition: border-color 140ms ease, color 140ms ease;
}

.hackathon-topbar__nav a:hover,
.hackathon-topbar__nav a:focus-visible {
  color: var(--accent);
  border-color: currentColor;
}

.hackathon-hero {
  padding: 1.25rem 0 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 1.15rem 1.4rem;
  align-items: start;
}

.hackathon-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hackathon-hero h1 {
  margin: 0.5rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--accent);
}

.hackathon-lede {
  margin: 0.75rem 0 0;
  max-width: 50ch;
  font-size: 1rem;
  line-height: 1.64;
  color: var(--ink-muted);
}

.hackathon-facts {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hackathon-fact {
  border-top: 1px solid rgba(112, 98, 86, 0.24);
  padding-top: 0.38rem;
}

.hackathon-fact__label {
  margin: 0;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hackathon-fact__value {
  margin: 0.22rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
}

.hackathon-media {
  margin: 0;
  border-top: 1px solid rgba(112, 98, 86, 0.24);
  border-bottom: 1px solid rgba(112, 98, 86, 0.24);
  padding: 0.45rem 0;
}

.hackathon-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.02) saturate(0.92);
}

.section-block {
  border-top: 1px solid rgba(112, 98, 86, 0.22);
  padding: 1rem 0 1.2rem;
}

.section-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-block h2 {
  margin: 0.45rem 0 0;
  max-width: 20ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.info-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-card {
  border-top: 1px solid rgba(112, 98, 86, 0.24);
  padding-top: 0.42rem;
}

.info-card h3 {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-card p {
  margin: 0.48rem 0 0;
  font-size: 0.92rem;
  line-height: 1.56;
  color: var(--ink-muted);
}

.timeline {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  border-top: 1px solid rgba(112, 98, 86, 0.2);
  padding-top: 0.5rem;
}

.timeline__index {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.08rem;
}

.timeline__body h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline__body p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.54;
  color: var(--ink-muted);
}

.hackathon-footer {
  border-top: 1px solid rgba(112, 98, 86, 0.22);
  padding: 0.85rem 0 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hackathon-footer p,
.hackathon-footer a {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hackathon-footer a:hover,
.hackathon-footer a:focus-visible {
  color: var(--accent);
}

@media (max-width: 920px) {
  .hackathon-shell {
    width: min(96vw, 1040px);
    margin-top: 0.8rem;
  }

  .hackathon-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.72rem 0;
  }

  .hackathon-hero {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hackathon-facts,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hackathon-shell {
    width: 100%;
    margin: 0;
    padding: 0 0.9rem;
  }

  .hackathon-hero {
    padding-top: 1rem;
  }

  .hackathon-lede {
    font-size: 0.92rem;
    line-height: 1.56;
  }

  .hackathon-facts,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .timeline {
    gap: 0.58rem;
  }

  .timeline li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.56rem;
  }

  .timeline__body p {
    font-size: 0.84rem;
    line-height: 1.46;
  }

  .hackathon-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
