/* DeliverCon site styles — built from the "deep space" design system.
   Components are classes rather than the design prototype's inline styles,
   so the same rules serve every page and respond at mobile widths. */

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

html { color-scheme: dark; }

body {
  margin: 0;
  /* Two layers. First (painted on top): a small starfield tile — a flat SVG
     image, not stacked CSS gradients, because tiling several independent
     radial-gradient layers shows a faint seam at every tile edge in
     Chromium even when each dot fades to full transparency well inside its
     own tile; tiling one rendered image doesn't have that problem. Second
     (underneath, painted once): the nebula wash, sized to the body's own
     box so it's one continuous gradient top-to-bottom, no repeat,
     recalculated on any resize/reflow. */
  background-color: var(--space-900);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Ccircle cx='40' cy='60' r='1.6' fill='white' fill-opacity='.9'/%3E%3Ccircle cx='160' cy='20' r='1.2' fill='rgb(207,230,255)' fill-opacity='.75'/%3E%3Ccircle cx='260' cy='140' r='1.6' fill='rgb(255,227,184)' fill-opacity='.7'/%3E%3Ccircle cx='90' cy='190' r='1.2' fill='rgb(191,233,255)' fill-opacity='.6'/%3E%3Ccircle cx='220' cy='250' r='1' fill='white' fill-opacity='.55'/%3E%3Ccircle cx='320' cy='90' r='1.4' fill='white' fill-opacity='.5'/%3E%3Ccircle cx='20' cy='280' r='1' fill='rgb(207,230,255)' fill-opacity='.5'/%3E%3Ccircle cx='190' cy='320' r='1.3' fill='white' fill-opacity='.6'/%3E%3C/svg%3E"),
    var(--surface-space);
  /* --surface-space (deep-space theme) is itself 3 comma-separated gradient
     layers (2 radial blooms + 1 linear base), so background-image above
     expands to 4 layers total, not 2. background-size/repeat must list one
     entry per expanded layer — a short list gets *cycled*, not broadcast,
     so a 2-value list here would silently hand the nebula's own linear
     base a 340px tiled repeat instead of covering the page once, which is
     exactly the seam this is guarding against. */
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 340px 340px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
button { font: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.dc-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 0 0 8px 0;
  z-index: 20;
}
.dc-skip-link:focus { left: 0; }

.dc-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  border: 2px solid var(--ink-900);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.dc-btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-sticker);
}
.dc-btn--primary:hover { background: var(--flame-orange); }
.dc-btn--primary:active { transform: translateY(2px); box-shadow: var(--shadow-sticker-press); }

.dc-btn--outline {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--text-heading);
  box-shadow: none;
}
.dc-btn--outline:hover { background: rgba(255, 255, 255, .1); }

.dc-btn--small { padding: 10px 20px; font-size: 16px; }

.dc-btn--silver {
  background: var(--rocket-silver);
  color: var(--ink-800);
  box-shadow: var(--shadow-sticker);
}
.dc-btn--silver:active { transform: translateY(2px); box-shadow: var(--shadow-sticker-press); }

/* ---------- Nav ---------- */

.dc-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--space-900);
}

.dc-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.dc-nav__brand.is-active { border-bottom-color: var(--accent); }
.dc-nav__brand img { width: 32px; height: 32px; display: block; }
.dc-nav__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.dc-nav__toggle {
  margin-left: auto;
  display: none;
  background: none;
  border: 2px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  padding: 8px 12px;
  cursor: pointer;
}

.dc-nav__links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 12px;
}

.dc-nav__tab {
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.dc-nav__tab:hover { color: var(--text-heading); }
.dc-nav__tab.is-active { color: var(--text-heading); border-bottom-color: var(--accent); }

.dc-nav__cta { margin-left: auto; }

@media (max-width: 960px) {
  .dc-nav__toggle { display: inline-flex; }
  .dc-nav__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
  }
  .dc-nav.is-open .dc-nav__links { max-height: 600px; padding-top: 8px; }
  .dc-nav__cta { margin-left: 0; }
}

/* ---------- Hero / space background ----------
   No background of its own: the body paints one continuous nebula behind
   the whole page (see body, above), so these sections stay transparent
   and just host the starfield and its own stacking context. */

.dc-space {
  position: relative;
  overflow: hidden;
}

.dc-starfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dc-star {
  position: absolute;
  background: #ffffff;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}

.dc-hero {
  position: relative;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: center;
  max-width: 1030px;
  margin: 0 auto;
}

.dc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rocket-blue);
  color: var(--space-900);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
}

.dc-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.dc-hero p.dc-lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  max-width: 34ch;
}

.dc-hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.dc-eyebrow-line {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dc-hero__patch { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dc-hero__patch img { width: 260px; height: 260px; display: block; border-radius: 999px; box-shadow: var(--shadow-card); }
.dc-hero__patch figcaption {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}

@media (max-width: 760px) {
  .dc-hero { grid-template-columns: 1fr; text-align: left; }
  .dc-hero__patch { order: -1; }
  .dc-hero__patch img { width: 180px; height: 180px; }
}

/* ---------- Section shells ---------- */

.dc-section { padding: 34px 24px; }
.dc-section--inset { background: var(--surface-inset); }
.dc-section--space { background: var(--surface-space); }
.dc-section__inner { max-width: 1112px; margin: 0 auto; }

.dc-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.dc-section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dc-link-quiet {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--link); text-decoration: none;
}

/* ---------- Card grids ---------- */

.dc-grid {
  display: grid;
  gap: 18px;
}
.dc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dc-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
  .dc-grid--3, .dc-grid--4, .dc-grid--2 { grid-template-columns: 1fr; }
}

.dc-tile {
  background: var(--surface-raised);
  border: 2px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dc-tile__icon { font-size: 40px; line-height: 1; }
.dc-tile h3 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em; color: var(--text-heading);
}
.dc-tile p { margin: 0; font-size: 16px; line-height: 1.5; }

.dc-tile-link {
  text-align: left; cursor: pointer; text-decoration: none;
  background: var(--surface-raised); border: 2px solid var(--border-hairline);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.dc-tile-link:hover { border-color: var(--accent); }
.dc-tile-link__kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.dc-tile-link__title {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: -0.02em; color: var(--text-heading);
}
.dc-tile-link__body { font-size: 16px; color: var(--text-body); }

.dc-sticker-card {
  background: var(--paper-000);
  color: var(--ink-800);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dc-sticker-card__step {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--space-600);
}
.dc-sticker-card h3 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em;
}
.dc-sticker-card p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- Agenda ---------- */

.dc-agenda-toolbar { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.dc-agenda-toolbar h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; color: var(--text-heading);
}
.dc-badge-pill {
  display: inline-flex; align-items: center;
  background: var(--rocket-silver); color: var(--ink-800);
  border: 2px solid var(--ink-900); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker); padding: 10px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}

.dc-chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dc-chip {
  background: transparent; color: var(--text-heading);
  border: 2px solid var(--border-hairline); border-radius: var(--radius-pill);
  padding: 6px 16px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  transition: all var(--dur-base) var(--ease-out);
}
.dc-chip.is-active {
  background: var(--accent); color: var(--space-900);
  border-color: var(--ink-900); box-shadow: var(--shadow-sticker-press);
  transform: translateY(2px);
}

.dc-slot { display: grid; grid-template-columns: 104px repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.dc-slot__time {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em;
  color: var(--text-heading); padding-top: 6px;
}
.dc-slot-head {
  display: grid; grid-template-columns: 104px repeat(5, 1fr); gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}

.dc-session {
  text-align: left; cursor: pointer; display: flex; flex-direction: column;
  gap: var(--space-2); padding: var(--space-4);
  background: var(--paper-000); color: var(--ink-800);
  border: 2px solid var(--ink-900); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker);
  transition: all var(--dur-base) var(--ease-out);
}
.dc-session__room { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--space-600); }
.dc-session__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--space-600); }
.dc-session__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.02em; }
.dc-session.is-starred { background: var(--accent); color: var(--space-900); box-shadow: var(--shadow-sticker-press); transform: translateY(2px); }
.dc-session.is-starred .dc-session__meta { color: var(--space-900); }
.dc-session.is-hidden { opacity: .28; }

.dc-lunch-row {
  display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center;
  background: var(--surface-inset); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 14px;
}
.dc-lunch-row__body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dc-lunch-row__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text-heading); }
.dc-lunch-row__note { font-size: 16px; color: var(--text-muted); }

@media (max-width: 900px) {
  .dc-slot, .dc-lunch-row { grid-template-columns: 1fr; }
  .dc-slot-head { display: none; }
  .dc-slot__time { padding-top: 0; margin-bottom: 4px; }
  .dc-session__room { display: block; }
}

/* ---------- Unconference page ---------- */

.dc-split {
  padding: 48px 24px;
  display: grid; grid-template-columns: 1.2fr 280px; gap: 40px; align-items: center;
  max-width: 1112px; margin: 0 auto;
}
.dc-spin-rocket {
  width: 220px; height: 220px; display: block; justify-self: center;
  filter: drop-shadow(0 0 28px rgba(62, 167, 205, .55));
  animation: dc-spin 7s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dc-spin-rocket { animation: none; } }
.dc-split .dc-kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dc-split h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-heading);
}
@media (max-width: 760px) { .dc-split { grid-template-columns: 1fr; } .dc-spin-rocket { order: -1; } }

/* ---------- Past events ---------- */

.dc-past-lead {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface-raised); border: 2px solid var(--accent);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 14px;
}
.dc-past-lead img { width: 84px; height: 84px; display: block; }
.dc-past-lead__meta { display: flex; flex-direction: column; gap: 6px; }
.dc-past-lead__kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dc-past-lead__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--text-heading); }

.dc-past-row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-hairline); padding: 16px 4px;
}
.dc-past-row__badge {
  width: 72px; height: 72px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 999px; background: var(--space-600); border: 2px solid var(--border-hairline);
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--paper-000);
  overflow: hidden;
}
.dc-past-row__badge img { width: 100%; height: 100%; object-fit: cover; }
.dc-past-row__meta { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.dc-past-row__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text-heading); }
.dc-past-row__date { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--text-muted); }
.dc-past-row__desc { font-size: 16px; flex: 1; min-width: 220px; }
.dc-past-row__links { display: flex; align-items: center; gap: 14px; }

/* ---------- Code of conduct ---------- */

.dc-tldr-banner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px 24px;
}
.dc-tldr-badge {
  display: inline-flex; background: var(--signal-lime); color: var(--space-900);
  border: 2px solid var(--ink-900); border-radius: var(--radius-pill); box-shadow: var(--shadow-sticker);
  padding: 12px 26px; font-family: var(--font-display); font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em; white-space: nowrap;
}

/* ---------- Prose (markdown content) ---------- */

.dc-prose { font-size: 17px; line-height: 1.6; }
.dc-prose h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; color: var(--text-heading); margin: 40px 0 14px;
}
.dc-prose h2:first-child { margin-top: 0; }
.dc-prose h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; color: var(--text-heading); margin: 28px 0 10px;
}
.dc-prose p, .dc-prose ul, .dc-prose ol { margin: 0 0 14px; }
.dc-prose ul, .dc-prose ol { padding-left: 22px; }
.dc-prose li { margin-bottom: 6px; }
.dc-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.dc-prose th, .dc-prose td {
  border: 1px solid var(--border-hairline); padding: 10px 12px; text-align: left; vertical-align: top;
}
.dc-prose th { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.dc-prose a { color: var(--link); }

/* ---------- Facilitation quote ---------- */

.dc-quote-row {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface-raised); border: 2px solid var(--border-hairline);
  border-radius: var(--radius-lg); padding: 22px 24px;
}
.dc-quote-row p { margin: 0; font-family: var(--font-hand); font-size: 26px; line-height: 1.2; color: var(--paper-000); }

/* ---------- Support ---------- */

.dc-needs-list { display: flex; flex-direction: column; gap: 14px; }
.dc-need {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface-raised); border: 2px solid var(--border-hairline);
  border-radius: var(--radius-lg); padding: 20px 24px;
}
.dc-need__icon { font-size: 28px; line-height: 1; }
.dc-need p { margin: 0; font-size: 17px; line-height: 1.5; }

/* ---------- Footer ---------- */

.dc-footer {
  padding: 34px 24px; border-top: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, .04);
}
.dc-footer__inner {
  max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px;
}
.dc-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
}
.dc-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-heading); }
.dc-footer__blurb { font-size: 15px; color: var(--text-muted); max-width: 30ch; margin-top: 8px; }
.dc-footer__col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dc-footer__col a, .dc-footer__col button {
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: 15px; color: var(--link); text-align: left;
}
.dc-footer__tag {
  align-self: flex-end;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .12em; color: var(--text-muted);
}

@media (min-width: 620px) {
  .dc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .dc-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* ---------- Utilities ---------- */

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