/* Plus Jakarta Sans, from Fontsource (SIL OFL, see /fonts/OFL-plus-jakarta-sans.txt). Each weight comes in
   three files, and the browser only fetches the ones a page's characters need. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-400-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-500-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-600-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-700-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-800-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Black and white, light by default and dark when the device is. Colour only in small details: Apple's
   blue for the live dot and focus rings, a light orange for badges. Red only for what's wrong in a form. */
:root {
  --bg: #ffffff;
  --stage: #f5f5f5;
  --card: #ffffff;
  --raised: #fafafa;
  --line: #e9e9e9;
  --line-strong: #d4d4d4;
  /* A form field's border is its only edge on the card, so it keeps a contrast of 3:1 or more. */
  --field-line: #8a8a8a;
  --ink: #0a0a0a;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  /* The inverted surface: black buttons, tiles and sponsor cards. */
  --solid: #0a0a0a;
  --solid-ink: #ffffff;
  --solid-muted: #a3a3a3;
  --solid-line: #2a2a2a;
  --error: #c62828;
  --error-bg: #fdf1f1;
  /* The bright tones are for dots, rings and glows; text uses the deeper ones, which pass contrast. */
  --blue: #007aff;
  --blue-text: #0066cc;
  --blue-soft: #e8f2ff;
  --orange: #ff9f0a;
  --orange-text: #a65200;
  --orange-soft: #fff1df;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 20px -12px rgb(0 0 0 / 0.12);
  --shadow-lift: 0 1px 2px rgb(0 0 0 / 0.06), 0 18px 40px -18px rgb(0 0 0 / 0.28);
  --bar-bg: rgb(255 255 255 / 0.82);
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 26px;
  --radius-xl: 36px;
  --gutter: clamp(16px, 4vw, 32px);
  --bar-height: 64px;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --stage: #141414;
    --card: #111111;
    --raised: #171717;
    --line: #242424;
    --line-strong: #383838;
    --field-line: #6e6e6e;
    --ink: #fafafa;
    --ink-soft: #d6d6d6;
    --muted: #a3a3a3;
    --solid: #fafafa;
    --solid-ink: #0a0a0a;
    --solid-muted: #5c5c5c;
    --solid-line: #d9d9d9;
    --error: #ff8a80;
    --error-bg: #2a1313;
    --blue: #0a84ff;
    --blue-text: #5eb0ff;
    --blue-soft: #0c2038;
    --orange: #ff9f0a;
    --orange-text: #ffb54d;
    --orange-soft: #2e1f0a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-lift: 0 18px 40px -18px rgb(0 0 0 / 0.9);
    --bar-bg: rgb(10 10 10 / 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-height) + 16px);
  /* Tab scrolls the next link only just onto the screen: this keeps its focus ring on it too. */
  scroll-padding-bottom: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  /* The font's contextual alternates draw 0x as 0× and web3-auth as web3−auth: names and handles have to
     read as typed. Every font shorthand resets this, so it follows each one. */
  font-variant-ligatures: no-contextual;
  -webkit-font-smoothing: antialiased;
  /* Builders write long domains and paste long links. Not anywhere: in flex rows that would
     break short words like the handles too. */
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

img {
  max-width: 100%;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 0.6em 1em;
  border-radius: 999px;
  background: var(--solid);
  color: var(--solid-ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  padding-block: 32px 80px;
}

.narrow {
  width: min(760px, 100%);
}

.page-title {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
}

.blank {
  padding: 40px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.blank a {
  color: var(--ink);
  font-weight: 600;
}

/* Pieces */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--solid);
  border-radius: 999px;
  background: var(--solid);
  color: var(--solid-ink);
  font: 600 0.9375rem/1 var(--font);
  font-variant-ligatures: no-contextual;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.button:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: progress;
  opacity: 0.6;
  transform: none;
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.button-large {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

.button-ghost,
.button-quiet {
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--ink);
}

.button-ghost:hover,
.button-quiet:hover {
  border-color: var(--ink);
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

a.chip:hover {
  border-color: var(--ink);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* The rounded square that stands in for a logo: the first letter, white on black. */
.tile {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--solid);
  color: var(--solid-ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  object-fit: cover;
}

.tile-round {
  border-radius: 50%;
}

.tile-large {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  font-size: 2.4rem;
}

.tile-round.tile-large {
  border-radius: 50%;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--solid);
  color: var(--solid-ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The startup's name: one long word can be wider than a phone, and it wraps rather than push the page. */
.crumbs bdi {
  overflow-wrap: anywhere;
}

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--bar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.bar-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.bar-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.bar-nav a:hover {
  background: var(--stage);
  color: var(--ink);
}

/* Cover */

.cover {
  padding-top: 20px;
}

.cover-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(48px, 9vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--card) 0%, transparent 70%),
    var(--stage);
  text-align: center;
}

.cover h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.2vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.cover-lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cover-small .cover-stage {
  gap: 16px;
  padding-block: clamp(36px, 6vw, 64px);
}

.cover-small h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.cover-small .crumbs {
  justify-content: center;
  margin: 0;
}

.handle {
  overflow-wrap: anywhere;
}

/* The tiles of the latest entries, overlapping like a row of avatars. */
.stack {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.stack .tile {
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border: 3px solid var(--stage);
  font-size: 1rem;
}

.stack .tile:first-child {
  margin-left: 0;
}

.stack-note {
  margin-left: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Sponsors */

.sponsor-band {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.sponsor-band-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sponsor-band-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.sponsor-ad,
.sponsor-rent {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-l);
  text-decoration: none;
}

.sponsor-ad {
  background: var(--solid);
  color: var(--solid-ink);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sponsor-ad:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.sponsor-ad .tile {
  margin-block: 4px 6px;
  background: var(--solid-ink);
  color: var(--solid);
}

/* A logo keeps a white plate in both themes: a dark one on a transparent background would vanish on black. */
.sponsor-ad img.tile {
  background: #fff;
}

.sponsor-label {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sponsor-ad .sponsor-label {
  background: var(--orange);
  color: #1a1000;
}

/* Long sponsor names and hosts stay inside the card: the text wraps, and the button cuts the host short. */
.sponsor-name {
  max-width: 100%;
  padding-right: 88px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* In an ad the logo sits beside the label, so the name is already clear of it. */
.sponsor-ad .sponsor-name {
  padding-right: 0;
}

.sponsor-blurb {
  max-width: 100%;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sponsor-ad .sponsor-blurb {
  color: var(--solid-muted);
}

.sponsor-cta {
  display: inline-block;
  max-width: 100%;
  min-height: 36px;
  margin-top: 8px;
  overflow: hidden;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--solid-ink);
  color: var(--solid);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 36px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Drawn, not read out: the empty alt text keeps it out of the link's name. Browsers without it use the first. */
.sponsor-cta::after {
  content: '↗';
  content: '↗' / '';
  margin-left: 6px;
}

.sponsor-rent {
  border: 1.5px dashed var(--line-strong);
  background: var(--card);
}

.sponsor-rent .sponsor-blurb {
  color: var(--muted);
}

.sponsor-ask {
  margin-top: 8px;
}

/* The last row takes the spare height, so each button sits at the bottom, level across the band. */
.sponsor-ad-large {
  grid-template-rows: auto auto auto 1fr;
  min-height: 240px;
  padding: 28px;
}

.sponsor-ad-large .tile {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 1.5rem;
}

.sponsor-ad-large .sponsor-name {
  font-size: 1.375rem;
}

.sponsor-ad-large .sponsor-cta {
  margin-top: auto;
}

/* With nothing booked, the band is one wide invitation. */
.sponsor-rent-wide {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 32px;
  padding: 28px 32px;
}

.sponsor-rent-wide .sponsor-label {
  position: static;
  grid-column: 1;
  justify-self: start;
}

.sponsor-rent-wide .sponsor-name {
  grid-column: 1;
  padding-right: 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.sponsor-rent-wide .sponsor-blurb {
  grid-column: 1;
  max-width: 40rem;
}

.sponsor-rent-wide .sponsor-ask {
  grid-column: 1;
  justify-self: start;
}

/* A sample sponsor card, slightly tilted, so the empty slot shows what it sells. */
.sponsor-preview {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-items: start;
  gap: 6px;
  width: 280px;
  padding: 20px;
  border-radius: var(--radius-l);
  background: var(--solid);
  color: var(--solid-ink);
  box-shadow: var(--shadow-lift);
  transform: rotate(2deg);
}

.sponsor-preview .tile {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--solid-ink);
  color: var(--solid);
}

.sponsor-preview strong {
  font-size: 1.0625rem;
  font-weight: 800;
}

.sponsor-preview > span:not(.tile, .sponsor-cta) {
  color: var(--solid-muted);
  font-size: 0.875rem;
}

.sponsor-preview .sponsor-cta {
  margin-top: 6px;
}

/* What a listing gets you */

.facts ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
}

.fact-icon {
  display: block;
  box-sizing: content-box;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 14px;
  background: var(--stage);
}

.fact-icon-blue {
  color: var(--blue-text);
}

.fact-icon-orange {
  color: var(--orange-text);
}

.facts h2 {
  margin-bottom: 6px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.facts p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The shelf: the niches on top, then the list, with the sponsor slot beside it on niche pages. A margin
   rather than padding above it, so #shelf lands on the filter, just under the sticky bar. */

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px clamp(24px, 4vw, 48px);
  margin-top: 56px;
  padding-bottom: 88px;
}

/* The slot comes before the list in the page, as on phones, and sits on its right here. */
@media (min-width: 901px) {
  .book-split {
    grid-template-columns: minmax(0, 1fr) 248px;
  }

  .book-split .niches {
    grid-column: 1 / -1;
  }

  .book-split .book-side {
    grid-column: 2;
    grid-row: 2;
  }

  .book-split .book-main {
    grid-column: 1;
    grid-row: 2;
  }
}

/* One column that never grows past the page, whatever the sponsor writes. */
.book-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-self: start;
  min-width: 0;
}

/* Beside a long list the sponsor stays in view, where the screen is tall enough to hold all of it. */
@media (min-width: 901px) and (min-height: 700px) {
  .book-side {
    position: sticky;
    top: calc(var(--bar-height) + 16px);
  }
}

.niches h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The chips wrap rather than scroll, so every niche is in view on any width. */
.niches ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.niches a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.niches a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.niches a[aria-current='page'] {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--solid-ink);
  font-weight: 600;
}

.count {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--stage);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.niches a[aria-current='page'] .count {
  background: rgb(127 127 127 / 0.28);
  color: inherit;
}

.book-title {
  margin-bottom: 20px;
  font-size: 1.75rem;
  font-weight: 800;
}

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.entry:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.entry-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.entry-head {
  display: grid;
  flex: 1;
  min-width: 0;
}

/* The New badge drops under a name too long to share the row with it, rather than cutting the name. */
.entry-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
}

/* Small coloured labels: the one place the site uses colour. */
.badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-new {
  background: var(--blue-soft);
  color: var(--blue-text);
}

.entry-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-decoration: none;
}

/* The whole card opens the startup's page; the handle and the site keep their own links above it. */
.entry-name::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.entry-handle,
.entry-site {
  position: relative;
  z-index: 1;
}

.entry-handle {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-handle:hover {
  color: var(--ink);
  text-decoration: underline;
}

.entry-no {
  align-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-text);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.entry-tag {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-site {
  align-self: start;
  max-width: 100%;
  margin-top: auto;
  overflow: hidden;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-site::after {
  content: ' ↗';
  content: ' ↗' / '';
}

.entry-site:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* A startup's page */

/* The buttons' column stops at 22rem: a very long domain wraps in its button instead of squeezing the name. */
.ad {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) fit-content(22rem);
  align-items: center;
  gap: 24px 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--stage);
}

.ad-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ad h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.ad-tag {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}

.ad-actions {
  display: grid;
  gap: 10px;
}

/* A long domain or handle wraps inside its button instead of pushing out of the card. */
.ad-actions .button,
.side-card .button {
  padding-block: 8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  margin-top: 24px;
}

.prose {
  padding: clamp(24px, 4vw, 40px);
}

.prose h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 800;
}

.prose p {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 1em;
}

.side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
}

.side-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 16px;
  font-size: 0.9375rem;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.side-card dd a {
  text-decoration: none;
}

.side-card dd a:hover {
  text-decoration: underline;
}

.related {
  margin-top: 56px;
}

.related h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  font-weight: 800;
}

.badge-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 40px;
  margin-top: 56px;
  padding: clamp(24px, 4vw, 36px);
}

.badge-box h2 {
  margin-bottom: 8px;
  font-size: 1.375rem;
  font-weight: 800;
}

.badge-box p {
  margin-bottom: 18px;
  color: var(--muted);
}

.badge-box textarea {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink-soft);
  font: 500 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: none;
}

/* The form */

.submit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
}

.form-card > .lede {
  margin-bottom: 28px;
}

.notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--stage);
  font-weight: 600;
}

.error-summary {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1.5px solid var(--error);
  border-radius: var(--radius);
  background: var(--error-bg);
}

.error-summary:focus-visible {
  outline-offset: 4px;
}

.error-summary h2 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 800;
}

.error-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.error-summary li + li {
  margin-top: 4px;
}

.error-summary a {
  color: var(--error);
  font-weight: 600;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}

input,
textarea,
select {
  /* Clear of the sticky bar when an error link or the browser brings a field into view. */
  scroll-margin-top: calc(var(--bar-height) + 56px);
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  font-variant-ligatures: no-contextual;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 16px) 52%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  /* Invisible, except in forced colours: there the glow is dropped and this outline is drawn instead. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgb(0 122 255 / 0.18);
}

.has-error input,
.has-error textarea,
.has-error select {
  border-color: var(--error);
}

.hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.error {
  margin-top: 8px;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* For bots only: off screen, out of the tab order and hidden from screen readers. */
.trap {
  position: absolute;
  left: -9999px;
}

.form-card .button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  font-size: 1rem;
}

.rules {
  position: sticky;
  top: calc(var(--bar-height) + 16px);
  padding: 26px;
}

.rules h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 800;
}

.rules ul {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.rules ul:last-child {
  margin-bottom: 0;
}

.rules li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.rules li::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.rules ul + h2 + ul li::before {
  background: var(--orange);
}

/* After sending, and the error pages */

/* One column as wide as the card: an implicit one would grow to fit the page's address, which can't wrap. */
.thanks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 16px;
  padding: clamp(28px, 5vw, 48px);
}

.thanks > p {
  justify-self: stretch;
}

.thanks .page-title {
  margin: 0;
}

.thanks p {
  color: var(--ink-soft);
}

.thanks .lede {
  color: var(--muted);
}

.back {
  margin-top: 8px;
  font-size: 0.9375rem;
}

/* The queue */

.review {
  margin-top: 16px;
  padding: 24px;
}

.review h3 {
  margin: 4px 0 8px;
  font-size: 1.375rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.review > p + p {
  margin-top: 0.8em;
}

.review-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.review-flag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
}

.review-tag {
  font-weight: 600;
}

.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.review-links li {
  min-width: 0;
}

.review-links a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.review-links a:hover {
  border-color: var(--ink);
}

.review-actions {
  display: flex;
  gap: 10px;
}

.announce {
  margin-top: 40px;
  padding: 24px;
}

.announce p {
  margin: 6px 0 16px;
  color: var(--muted);
}

.announce-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.announce-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--stage);
  font-size: 0.9375rem;
}

.announce-list span {
  overflow-wrap: anywhere;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.875rem;
}

.foot-row p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.foot nav {
  display: flex;
  gap: 18px;
}

.foot nav a {
  text-decoration: none;
}

.foot nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Smaller screens */

@media (max-width: 1000px) {
  .sponsor-band-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsor-band-3 .sponsor-ad-large {
    min-height: 0;
  }

  .story,
  .submit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rules {
    position: static;
  }

  .ad {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ad-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .book {
    gap: 24px;
    margin-top: 40px;
  }

  /* Above the list, the slot is one compact row, so the first entry isn't pushed far down. */
  .book-side .sponsor-ad,
  .book-side .sponsor-rent {
    align-items: center;
    gap: 2px 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
  }

  .book-side .sponsor-ad {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .book-side .sponsor-ad .tile {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
    font-size: 1rem;
  }

  .book-side .sponsor-ad .sponsor-name,
  .book-side .sponsor-ad .sponsor-blurb {
    grid-column: 2;
  }

  /* Clear of the label in the corner. */
  .book-side .sponsor-ad .sponsor-name {
    padding-right: 84px;
    font-size: 1rem;
  }

  .book-side .sponsor-ad .sponsor-blurb {
    overflow: hidden;
    font-size: 0.875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .book-side .sponsor-label {
    top: 14px;
    right: 14px;
  }

  .book-side .sponsor-cta,
  .book-side .sponsor-rent .sponsor-blurb {
    display: none;
  }

  .book-side .sponsor-rent {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .book-side .sponsor-rent .sponsor-label {
    position: static;
    grid-column: 1;
    justify-self: start;
  }

  .book-side .sponsor-rent .sponsor-name {
    grid-column: 1;
    padding-right: 0;
    font-size: 1rem;
  }

  .book-side .sponsor-ask {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .facts ul {
    grid-template-columns: 1fr;
  }

  .badge-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bar-nav {
    display: none;
  }

  .bar-row .button {
    margin-left: auto;
  }

  /* Smaller chips: at 320px wide all sixteen take seven or eight rows, not nine, so a niche opened on a
     small phone shows where its list starts rather than only the filter. */
  .niches ul {
    gap: 6px 5px;
  }

  .niches a {
    gap: 5px;
    min-height: 32px;
    padding: 3px 4px 3px 10px;
    font-size: 0.8125rem;
  }

  .niches .count {
    min-width: 20px;
    padding: 1px 5px;
  }

  .sponsor-band-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsor-rent-wide {
    grid-template-columns: 1fr;
  }

  .sponsor-preview {
    display: none;
  }

  .ad {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad .tile-large {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 1.75rem;
  }

  .ad-actions {
    display: grid;
    grid-auto-flow: row;
  }

  .field-pair {
    grid-template-columns: 1fr;
  }

  .cover-actions {
    flex-direction: column;
    width: 100%;
  }

  .stack-note {
    display: none;
  }
}

/* Forced colours drop every fill: these keep what the fills were saying. */
@media (forced-colors: active) {
  /* The drawn caret is gone, and the browser's own shows that the field is a menu. */
  .field select {
    appearance: auto;
  }

  /* The current niche, marked the way the system marks a selection. */
  .niches a[aria-current='page'] {
    forced-color-adjust: none;
    border-color: Highlight;
    background: Highlight;
    color: HighlightText;
  }

  .sponsor-ad {
    border: 1px solid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .button:hover,
  .entry:hover,
  .sponsor-ad:hover {
    transform: none;
  }
}

/* Admin and privacy additions */

/* The whole link an entry would carry, which can be 2,048 characters with no space in it. */
.review-url {
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.announce-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.unlist summary,
.takedown summary {
  cursor: pointer;
  font-weight: 600;
}

.unlist summary {
  color: var(--muted);
}

.unlist[open] summary {
  color: var(--ink);
}

.unlist form {
  margin-top: 8px;
}

.takedown {
  margin-top: 40px;
  padding: 18px 24px;
}

.takedown[open] summary {
  margin-bottom: 18px;
}

p.fine-print {
  color: var(--muted);
  font-size: 0.875rem;
}

.form-card .fine-print {
  margin-top: 16px;
}

.privacy h2 {
  margin-top: 32px;
}

/* Five links don't fit one line on the narrowest phones. */
.foot nav {
  flex-wrap: wrap;
  row-gap: 8px;
}
