/* Visual language follows workshops.thisdot.co: deep navy, hairline-bordered
   surfaces, tight bold headlines, tracked small caps, and a color per track. */
:root {
  --bg: #08101f;
  --bg-deep: #050d1a;
  --surface: #11192a;
  --line: rgba(245, 245, 241, 0.14);
  --text: #ffffff;
  --muted: rgba(245, 245, 241, 0.62);
  --faint: rgba(245, 245, 241, 0.4);
  --red: #dc3927;
  --blue: #3a7faf;
  --white: #e8e8e4;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 7.8vw, 112px);
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

/* Small tracked labels, as on the workshops site */
.pill, .eyebrow, .tags li, .facts dt, .open {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6875rem;
  line-height: 1.6;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(56px, 8vw, 96px);
  background: radial-gradient(60% 80% at 85% 0%, rgb(58 127 175 / 0.14), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > :not(.hero-canvas) { position: relative; }

.logo { display: block; width: 132px; height: auto; margin-bottom: clamp(48px, 8vw, 88px); }

.pill {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 16px;
  border: 1px solid rgb(220 57 39 / 0.35);
  border-radius: 999px;
  background: rgb(220 57 39 / 0.08);
  color: var(--red);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 40rem;
  text-wrap: pretty;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}

/* Series sections */
main { padding: 0 var(--gutter) 40px; }

.series { padding: clamp(48px, 7vw, 80px) 0 0; }

.eyebrow { margin: 0 0 12px; color: var(--muted); letter-spacing: 0.22em; font-size: 0.75rem; }

.series h2 {
  margin: 0 0 32px;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

/* Workshop card */
.card {
  --accent: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 18px;
  background: var(--surface);
}

.card[data-accent='red'] { --accent: var(--red); }
.card[data-accent='blue'] { --accent: var(--blue); }

.thumb {
  display: block;
  aspect-ratio: 16 / 9;
  margin: 20px 20px 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
}

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

.thumb-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  color: var(--muted);
}

.card-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 28px 28px;
}

/* Large faint part number, top right */
.part {
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}

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

.tags li {
  padding: 3px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-size: 0.625rem;
}

.card[data-accent='white'] .tags li { color: var(--white); }

.card h3 {
  position: relative;
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.subtitle { margin: 10px 0 0; color: var(--text); opacity: 0.85; font-weight: 500; font-size: 0.9375rem; }

.description { margin: 14px 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.facts div { min-width: 0; }
.facts dt { color: var(--accent); font-size: 0.625rem; }
.card[data-accent='white'] .facts dt { color: var(--faint); }
.facts dd { margin: 2px 0 0; font-size: 0.875rem; color: var(--text); }

.actions { margin-top: auto; padding-top: 26px; }

.open {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.open:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* Planned workshop: visible in the series, but no deck yet */
.card.is-planned { border-style: dashed; border-top-style: solid; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.card.is-planned .thumb { border-style: dashed; }
.card.is-planned .thumb-fallback { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.card.is-planned h3, .card.is-planned .description { opacity: 0.6; }
.open.is-disabled { border-color: var(--line); color: var(--faint); cursor: not-allowed; }
.open.is-disabled:hover { background: none; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8125rem;
}

footer p { margin: 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .open { transition: none; }
}
