:root {
  --paper: #f5f0e6;
  --paper-deep: #ebe4d7;
  --ink: #141313;
  --muted: #665f57;
  --rule: #aaa398;
  --magenta: #cf0065;
  --blue: #0759c7;
  --display: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

button,
input { font: inherit; }

a {
  color: inherit;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

a:hover { color: var(--magenta); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

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

main,
footer {
  width: min(100% - 4rem, 1380px);
  margin-inline: auto;
}

.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem); }

.hero-title-wrap {
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 6vw, 7rem);
}

h1,
h2,
.startup-name { font-family: var(--display); }

h1 {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(4rem, 7.8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-transform: uppercase;
  animation: register-in 560ms cubic-bezier(.2,.8,.2,1) both;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.stamp {
  flex: 0 0 auto;
  display: grid;
  gap: 0.1rem;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 3px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  transform: rotate(-3deg);
  animation: stamp-in 480ms 260ms cubic-bezier(.2,.8,.2,1) both;
}

.lede {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.lede span {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

.disclaimer {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  margin-top: 2rem;
  padding: 1rem 0;
  border-block: 1px solid var(--ink);
  font-size: 0.92rem;
}

.disclaimer strong {
  color: var(--magenta);
  font-family: var(--display);
}

.disclaimer a { font-weight: 800; }

.search-wrap {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 0.5rem;
  padding-block: 0.5rem;
  background: var(--paper);
}

#search {
  width: 100%;
  height: 68px;
  padding: 0 1.4rem 0 3.5rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background-color: rgb(255 255 255 / 20%);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23141313%27%20stroke-linecap=%27round%27%20stroke-width=%271.8%27%3E%3Ccircle%20cx=%2711%27%20cy=%2711%27%20r=%276.5%27/%3E%3Cpath%20d=%27m16%2016%204.25%204.25%27/%3E%3C/svg%3E");
  background-position: 1.4rem center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  appearance: none;
}

#search:focus {
  border-color: var(--blue);
  outline: 3px solid color-mix(in srgb, var(--blue) 30%, transparent);
  outline-offset: 0;
}

.filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0 1.75rem;
}

.status-filters,
.season-options {
  display: flex;
  align-items: stretch;
}

.filter,
.season {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.filter {
  position: relative;
  padding: 0.6rem 1.2rem;
}

.filter:first-child { padding-left: 0; }
.filter span { margin-left: 0.35rem; font-family: var(--display); }

.filter::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 0;
  left: 1.2rem;
  height: 4px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.filter:first-child::after { left: 0; }
.filter:hover::after,
.filter.is-active::after { transform: scaleX(1); }
.filter.is-active { color: var(--magenta); }

.season-filter {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.season-label { font-weight: 700; }

.season-options {
  overflow-x: auto;
  scrollbar-width: thin;
}

.season {
  min-width: 48px;
  padding: 0 0.8rem;
  border-block: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.season:first-child { min-width: auto; border-left: 1px solid var(--ink); }
.season:hover,
.season.is-active { background: var(--magenta); color: white; }

.results-summary {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.88rem;
}

.list-head,
.startup-row {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1.15fr) 130px minmax(240px, 1.8fr) 150px 68px;
  gap: 1rem;
  align-items: center;
}

.list-head {
  min-height: 50px;
  border-top: 3px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-weight: 800;
}

.startup-entry { border-bottom: 1px solid var(--rule); }

.startup-row {
  width: 100%;
  min-height: 72px;
  padding: 0;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.startup-row:hover,
.startup-row[aria-expanded="true"] {
  border-left-color: var(--magenta);
  background: rgb(255 255 255 / 28%);
}

.startup-index {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.startup-name { font-size: clamp(1.1rem, 1.5vw, 1.45rem); }
.startup-mobile-meta { display: none; }
.startup-season,
.startup-status { font-size: 0.95rem; }
.startup-founders { color: #2d2b28; }

.startup-founder-profiles {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1.15fr) 130px minmax(240px, 1.8fr) 150px 68px;
  gap: 1rem;
  padding: 0 0 0.8rem;
  border-left: 4px solid transparent;
  font-size: 0.82rem;
}

.startup-founder-profiles[hidden] { display: none; }

.founder-profile-label {
  grid-column: 3;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.founder-profile-links { grid-column: 4 / 6; }
.founder-profile-links a { color: var(--blue); }

.details-label {
  color: var(--magenta);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.startup-details {
  padding: 1.35rem 1.5rem 1.5rem 74px;
  border-left: 4px solid var(--magenta);
  background: var(--paper-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.detail-item { min-width: 0; }
.detail-item.detail-wide { grid-column: span 2; }

.selection-source {
  grid-column: 1 / -1;
  width: fit-content;
  margin-bottom: 0.1rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
}

.selection-source a {
  color: var(--ink);
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px;
}

.selection-source a:hover { color: var(--magenta); }

.status-event .detail-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  align-items: baseline;
}

.detail-source {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value { margin: 0; }
.detail-value a { color: var(--blue); overflow-wrap: anywhere; }

.empty-state {
  padding: 4rem 0;
  border-top: 2px solid var(--ink);
  text-align: center;
}

.empty-state p { font-family: var(--display); font-size: 1.4rem; }
.empty-state button,
.contribute-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.empty-state button:hover,
.contribute-link:hover { background: var(--magenta); color: white; }

.about {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 3px solid var(--ink);
}

.about div { max-width: 760px; }
.about p { font-family: Georgia, serif; font-size: 1.2rem; }
.contribute-link { margin-top: 1rem; font-family: var(--body); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--ink);
  font-size: 0.9rem;
}

footer p { margin: 0; }

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

@keyframes register-in {
  from { opacity: 0; transform: translateY(22px); letter-spacing: -0.02em; }
  to { opacity: 1; transform: none; letter-spacing: -0.055em; }
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-3deg) scale(1.16); }
  to { opacity: 1; transform: rotate(-3deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  main,
  footer { width: min(100% - 2rem, 1380px); }

  .hero-title-wrap { display: block; }
  .stamp { width: fit-content; margin: 1.75rem 0 0 0.25rem; }
  .filters { display: grid; }
  .list-head { display: none; }

  .startup-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 0.9rem 0;
  }

  .startup-index { grid-row: 1 / span 2; }
  .startup-identity { min-width: 0; }
  .startup-mobile-meta { display: block; margin-top: 0.25rem; color: var(--muted); }
  .startup-season,
  .startup-founders { display: none; }
  .startup-founder-profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.7rem;
    padding: 0 0 0.8rem 4rem;
  }
  .startup-founder-profiles[hidden] { display: none; }
  .founder-profile-label,
  .founder-profile-links { grid-column: auto; }
  .startup-status { align-self: start; font-weight: 700; text-align: right; }
  .details-label { grid-column: 3; text-align: right; }
  .startup-details { padding-left: 1rem; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .hero { padding: 2rem 0 2rem; }
  h1 { font-size: clamp(2.15rem, 9vw, 2.75rem); line-height: 0.92; }
  .stamp { margin-top: 1.1rem; font-size: 0.9rem; }
  .lede { font-size: 1.15rem; }
  .disclaimer { grid-template-columns: 1fr; margin-top: 1.5rem; }

  .search-wrap {
    position: sticky;
    top: 0;
    margin-inline: -1rem;
    padding: 0.65rem 1rem 0.75rem;
    border-bottom: 1px solid var(--ink);
  }

  #search {
    height: 56px;
    padding: 0 0.9rem 0 3.25rem;
    background-position: 1.9rem center;
  }
  .filters { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; gap: 1.25rem; padding-top: 1.1rem; }
  .status-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .filter { min-width: 0; padding-inline: 0.35rem; border-bottom: 1px solid var(--rule); font-size: 0.88rem; line-height: 1.15; white-space: normal; }
  .filter:first-child { padding-left: 0.6rem; }
  .filter::after,
  .filter:first-child::after { left: 0.6rem; right: 0.6rem; }
  .season-filter { display: grid; gap: 0.35rem; }
  .season-options { margin-right: -1rem; scroll-snap-type: x proximity; }
  .season { scroll-snap-align: start; }
  .results-summary { margin-top: 0.25rem; }

  .startup-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .startup-status { max-width: 7rem; font-size: 0.83rem; }
  .startup-name { font-size: 1.25rem; }
  .details-label { font-size: 0.7rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 1rem; }
  .detail-item.detail-wide { grid-column: auto; }
  .selection-source { grid-column: auto; }

  .about p { font-size: 1.05rem; }
  footer { display: grid; }
}

@media (max-width: 360px) {
  h1 { font-size: 10.2vw; }
  .filter { font-size: 0.8rem; }
}
