:root {
  /* Design palette */
  --paper: #F2ECDD;
  --paper-2: #EAE1CB;
  --ink: #2A241C;
  --ink-soft: #6b6252;
  --blaze: #C4552A;
  --blaze-dark: #8f3f1e;
  --chalk: #3E6280;
  --moss: #5c6b47;
  --rule: rgba(42,36,28,0.22);

  /* Legacy aliases for existing components */
  --bg: var(--paper);
  --bg2: var(--paper-2);
  --card: #ffffff;
  --text: var(--ink);
  --muted: var(--ink-soft);
  --muted2: #8a7a68;
  --line: var(--rule);
  --shadow: 0 18px 50px rgba(42,36,28,0.10);
  --radius: 18px;
  --accent: var(--blaze);
  --accent2: var(--moss);
  --accent3: var(--chalk);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(42,36,28,0.05) 1px, transparent 0);
  background-size: 3px 3px;
}

a { color: inherit; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 18px 56px;
}

/* Header */
header {
  padding: 18px 0 0;
}

.header-wordmark-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.92), rgba(43, 119, 255, 0.92));
  box-shadow: 0 12px 28px rgba(255, 90, 95, 0.18);
  display: grid;
  place-items: center;
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand h1 {
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.2px;
}

.brand .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(20, 24, 33, 0.18);
  box-shadow: 0 10px 20px rgba(20, 24, 33, 0.06);
}

.btn.primary {
  border-color: rgba(255, 90, 95, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 90, 95, 0.14),
    rgba(43, 119, 255, 0.12)
  );
}

.btn.primary:hover {
  border-color: rgba(255, 90, 95, 0.55);
}

/* Hero */
.hero {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  inset: -260px -260px auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 95, 0.10), transparent 62%);
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 33, 0.10);
  background: rgba(255, 255, 255, 0.70);
  color: var(--muted);
  font-size: 12px;
  width: fit-content;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(106, 223, 90, 0.18);
}

h2 {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fineprint {
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.45;
}

/* Sections + cards */
section { margin-top: 18px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.section-head p {
  margin: 0;
  color: var(--muted2);
  font-size: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.card {
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid rgba(20, 24, 33, 0.10);
  background: rgba(255, 255, 255, 0.90);
  padding: 14px;
  box-shadow: 0 10px 22px rgba(20, 24, 33, 0.06);
  transition: 0.15s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(20, 24, 33, 0.08);
  border-color: rgba(20, 24, 33, 0.16);
}

@media (max-width: 900px) {
  .card { grid-column: span 12; }
}

.card a { text-decoration: none; display: block; }

.card-title {
  font-weight: 850;
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid rgba(20, 24, 33, 0.10);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Utility */
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Forms */
.form-card {
  border: 1px solid rgba(20, 24, 33, 0.10);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(20, 24, 33, 0.06);
}

label {
  font-size: 12px;
  color: var(--muted);
}

input, textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(20, 24, 33, 0.12);
  background: rgba(255, 255, 255, 0.90);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
}

textarea { min-height: 110px; resize: vertical; }

footer {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  color: var(--muted2);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 33, 0.10);
  background: rgba(255, 255, 255, 0.60);
}

/* ── Redesign: header wordmark & tagline ── */
.brand {
  text-decoration: none;
}

.wordmark {
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.tagline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 8px 0 10px;
}

.header-rule {
  border: none;
  border-top: 1px dashed var(--rule);
  margin: 12px 0 0;
}

/* ── Redesign: intro / hero content ── */
.intro {
  padding: 2rem 0 1.5rem;
  max-width: 680px;
}

.intro p {
  font-size: 20px;
  line-height: 1.65;
  margin: 0 0 1.2rem;
  color: var(--ink);
}

.intro ul {
  list-style: disc;
  padding: 14px 14px 14px 36px;
  margin: 0 0 1.2rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.intro ul li {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── Redesign: run list section titles ── */
.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 13px;
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 2rem 0 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}

/* ── Redesign: run cards ── */
.run-list {
  display: grid;
  gap: 8px;
  margin: 0.75rem 0 1rem;
}

.run-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255,255,255,0.45);
  text-decoration: none;
  color: var(--ink);
  transition: 0.15s ease;
}

.run-card:hover {
  background: rgba(255,255,255,0.80);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(42,36,28,0.08);
  border-color: rgba(42,36,28,0.35);
}

.run-card--idea {
  border-style: dashed;
}

.run-card--past {
  opacity: 0.72;
}

.run-card--past .run-title {
  color: var(--ink-soft);
}

.run-card svg {
  flex-shrink: 0;
}

.run-title {
  margin: 0;
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.run-meta {
  margin: 3px 0 0;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ── Redesign: legend ── */
.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0.5rem 0 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 480px) {
  .wordmark { font-size: 30px; }
  .tagline { font-size: 14px; }
  .intro p { font-size: 17px; }
}
