/* timsthebomb.com
 *
 * Palette and type are lifted straight from itemmap.app's "cozy" theme --
 * warm white, deep sage, terracotta coral, Cormorant Garamond over Outfit.
 * Same person, same hand: someone arriving from the app should feel it, and
 * someone going the other way shouldn't hit a seam.
 *
 * Editorial, not clinical. The interest comes from typography and from one
 * good idea per screen -- not from darkness, glow, or neon.
 *
 * One stylesheet, no framework, no build step.
 */

@import url("fonts.5ec21abac7b8.css");

:root {
  /* Core palette — itemmap.app "cozy" */
  --sage:        #3D4F4A;   /* deep sage: headings and structural ink */
  --sage-light:  #5A6F68;
  --sage-rgb:    61, 79, 74;

  --linen:       #E8DCC8;
  --linen-light: #F2EAD9;

  --accent:      #D66853;   /* terracotta coral: the one loud colour */
  --accent-soft: #E07A65;
  --accent-rgb:  214, 104, 83;

  /* Backgrounds */
  --bg:          #FDFBF8;   /* warm white */
  --bg-alt:      #F5F0E8;   /* soft cream */
  --card:        #FFFFFF;

  /* Text */
  --ink:         #2C2C2C;   /* warm charcoal */
  --ink-muted:   #6B6560;
  --ink-light:   #9A948D;

  /* Semantic */
  --good:        #5A7F6F;
  --warn:        #B8873F;
  --bad:         #C0483A;
  --highlight:   #F0E2C8;

  /* Rules are always sage-tinted. A neutral grey line reads cold against
     cream and is the fastest way to make a warm palette look cheap. */
  --line:        rgba(61, 79, 74, 0.14);
  --line-soft:   rgba(61, 79, 74, 0.08);

  --shadow-soft:  0 2px 12px rgba(61, 79, 74, 0.06);
  --shadow-float: 0 8px 30px rgba(61, 79, 74, 0.09);

  --radius-sm:   4px;
  --radius:      12px;
  --radius-lg:   16px;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--sage); }

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

::selection { background: var(--highlight); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- top bar ------------------------------------------------------------ */

.topbar {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(253, 251, 248, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar__brand {
  color: var(--sage);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar__brand:hover { text-decoration: none; color: var(--accent); }
.topbar__dim { color: var(--ink-light); font-weight: 400; }

.topbar__mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  font-size: 0.92rem;
}
.topbar__links a { color: var(--ink-muted); }
.topbar__links a:hover { color: var(--accent); text-decoration: none; }

.topbar__cta {
  border: 1px solid var(--line);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  color: var(--sage) !important;
}
.topbar__cta:hover { border-color: var(--accent); background: var(--bg-alt); }

.topbar__logout { margin: 0; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-light);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.linkish:hover { color: var(--accent); }

/* --- hero / life header ------------------------------------------------- */

.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 3.5rem 1.25rem 3rem;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* The canvas wants the pointer -- seeding cells is the interaction -- but
     it must not eat clicks on the hero text. */
  z-index: 1;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* On cream the mesh has to be washed OUT behind the text rather than
     darkened. Same job as a dark theme's scrim, opposite direction. */
  background:
    /* protect the copy */
    radial-gradient(
      640px 320px at 50% 50%,
      rgba(253, 251, 248, 0.95) 0%,
      rgba(253, 251, 248, 0.80) 44%,
      rgba(253, 251, 248, 0.24) 72%,
      transparent 90%
    ),
    /* and let the mesh die away at the edges rather than getting cropped */
    linear-gradient(90deg,
      var(--bg) 0%, rgba(253, 251, 248, 0.78) 18%,
      rgba(253, 251, 248, 0.30) 34%, rgba(253, 251, 248, 0.30) 66%,
      rgba(253, 251, 248, 0.78) 82%, var(--bg) 100%),
    linear-gradient(180deg,
      rgba(253, 251, 248, 0.7) 0%, transparent 22%,
      transparent 78%, rgba(245, 240, 232, 0.9) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 600px;
  pointer-events: none;
}
.hero__inner a { pointer-events: auto; }

.hero__avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--accent);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero__avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.55rem;
  color: var(--sage);
}

/* The coral swash under the headline, straight off itemmap.app. */
.hero__rule {
  width: 72px;
  height: 2px;
  margin: 0 auto 1.15rem;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.9;
}

.hero__tagline {
  margin: 0 auto 0.7rem;
  color: var(--ink);
  font-size: 1.14rem;
  max-width: 36ch;
}

.hero__bio {
  margin: 0 auto;
  color: var(--ink-muted);
  max-width: 44ch;
  font-size: 0.97rem;
}

.hero__hint {
  margin: 1.7rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-light);
  font-family: var(--mono);
}

@media (hover: none) {
  /* No cursor to seed with, so do not promise one. */
  .hero__hint { display: none; }
}

/* --- linktree ----------------------------------------------------------- */

.tree {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.1rem 4rem;
}

.tree__featured { display: grid; gap: 0.8rem; margin-bottom: 0.8rem; }

.tree__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 0.8rem;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, transform 0.18s ease,
              box-shadow 0.18s ease;
}

.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-float);
}

.card--featured { padding: 1.35rem; }
.card--featured .card__label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
.card--featured .card__glyph { width: 46px; height: 46px; }

.card__glyph {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}
.card__glyph svg { width: 21px; height: 21px; fill: currentColor; }
.card__glyph img { width: 100%; height: 100%; object-fit: contain; display: block; }

.card__text { display: flex; flex-direction: column; min-width: 0; gap: 0.08rem; }
.card__label { font-weight: 600; color: var(--sage); letter-spacing: -0.01em; }
.card__blurb { color: var(--ink-muted); font-size: 0.88rem; line-height: 1.45; }

.card__chevron {
  margin-left: auto;
  color: var(--ink-light);
  transition: transform 0.18s ease, color 0.18s ease;
}
.card:hover .card__chevron { transform: translateX(3px); color: var(--accent); }

/* --- writing ------------------------------------------------------------ */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.8rem 0 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-light);
  font-weight: 600;
}
.section-heading a {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
}

.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li + li { border-top: 1px solid var(--line-soft); }
.postlist a { display: grid; gap: 0.1rem; padding: 0.95rem 0.2rem; color: var(--ink); }
.postlist a:hover { text-decoration: none; }
.postlist a:hover .postlist__title { color: var(--accent); }
.postlist__date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}
.postlist__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.postlist__summary { color: var(--ink-muted); font-size: 0.9rem; }

.tree__foot { margin-top: 2.8rem; text-align: center; font-size: 0.88rem; }

.empty { color: var(--ink-light); }

/* --- prose (blog posts) ------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 2.6rem 1.1rem 4rem; }

.post__meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-light);
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
}
.post__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--sage);
}
.post__subtitle {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 1.05rem;
  margin: -0.1rem 0 1.8rem;
}

.prose { color: var(--ink); font-size: 1.05rem; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sage);
  margin-top: 2.2rem;
  letter-spacing: -0.01em;
}
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 0 0.1rem 1.2rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.prose pre {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; }
.prose th { background: var(--bg-alt); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

/* --- messages ----------------------------------------------------------- */

.messages { max-width: var(--wrap); margin: 1rem auto 0; padding: 0 1.1rem; }
.message {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--card);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
}
.message + .message { margin-top: 0.5rem; }
.message--error, .message--danger { border-left-color: var(--bad); }
.message--warning { border-left-color: var(--warn); }
.message--success { border-left-color: var(--good); }

/* --- forms -------------------------------------------------------------- */

.form { display: grid; gap: 1rem; }
.form label { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.3rem; }

input[type="text"], input[type="password"], input[type="url"],
input[type="email"], input[type="number"], textarea, select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 0.62rem 0.75rem;
  font: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 104, 83, 0.14);
}
textarea { resize: vertical; min-height: 90px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sage);
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.btn:hover { border-color: var(--accent); text-decoration: none; background: var(--bg-alt); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn--ghost { background: transparent; }
.btn--danger:hover { border-color: var(--bad); color: var(--bad); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.errorlist {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--bad);
  border-radius: var(--radius-sm);
  color: var(--bad);
  font-size: 0.9rem;
  background: rgba(192, 72, 58, 0.06);
}

/* --- auth --------------------------------------------------------------- */

.auth { max-width: 400px; margin: 4rem auto; padding: 2rem 1.1rem; }
.auth__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.9rem;
  box-shadow: var(--shadow-float);
}
.auth__title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.auth__sub { color: var(--ink-light); font-size: 0.9rem; margin: 0 0 1.5rem; }

/* --- footer ------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
  padding: 1.6rem 1.1rem;
  font-size: 0.82rem;
  color: var(--ink-light);
  background: var(--bg-alt);
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* ========================================================================
 * Exocortex — behind the login wall.
 * Thumb-first: opened one-handed, standing up, outdoors. Tap targets stay
 * >= 44px and nothing important hides behind a hover.
 * ==================================================================== */

.exo { max-width: 640px; }

.daybar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.daybar__date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.25rem;
}
.daybar__sub { margin: 0; color: var(--ink-light); font-size: 0.9rem; }

.streak {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  line-height: 1.1;
}
.streak__n {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.streak__label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}
.panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--ink-light);
  font-weight: 700;
}
.panel__note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--ink-light); }
.panel--bizops { border-left: 3px solid var(--accent); }

.staleness {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}
.staleness--stale { color: var(--warn); }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-light);
  display: inline-block;
  flex: 0 0 auto;
  opacity: 0.5;
}
.dot--live { background: var(--good); opacity: 1; }

.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.7rem;
}
.stat {
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}
.stat__label {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 0.15rem;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--sage);
  line-height: 1.1;
  /* Cormorant defaults to oldstyle figures -- lovely in a sentence, wrong in
     a KPI tile, where 18 and 25 end up sitting at different heights. Numbers
     you scan want lining and tabular. */
  font-variant-numeric: lining-nums tabular-nums;
}

/* --- bizops goals --- */

.panel__subtitle {
  margin: 1.4rem 0 0.5rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  font-weight: 700;
}

.goals { list-style: none; margin: 0; padding: 0; }

.goal {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.94rem;
}
.goal__pos {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-light);
}
.goal__body { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.goal__text { color: var(--ink); }
.goal__detail {
  font-size: 0.78rem;
  color: var(--ink-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goal__status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--warn);
  flex: 0 0 auto;
}
.goal--hit .goal__text { color: var(--ink-light); text-decoration: line-through; }
.goal--hit .goal__pos { border-color: var(--good); color: var(--good); }
.goal--hit .goal__status { color: var(--good); }
.goal--missed .goal__status { color: var(--bad); }

/* --- runs in flight --- */

.runcard {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
}
.runcard + .runcard { margin-top: 0.6rem; }
.runcard:hover { text-decoration: none; border-color: var(--accent); }
.runcard__head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.runcard__name { font-weight: 600; color: var(--sage); }
.runcard__count { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.runcard__meta { display: block; margin-top: 0.45rem; font-size: 0.75rem; color: var(--ink-light); }

.bar {
  height: 5px;
  background: rgba(61, 79, 74, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- launching --- */

.launchgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; }
.launchgrid form { margin: 0; }

.launch {
  width: 100%;
  min-height: 64px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.launch:hover { border-color: var(--accent); background: var(--card); }
.launch:active { transform: translateY(1px); }
.launch--quiet { background: transparent; }
.launch__name { font-weight: 600; color: var(--sage); }
.launch__meta { font-size: 0.76rem; color: var(--ink-light); }

/* --- steps --- */

.runbody__progress { display: flex; align-items: center; gap: 0.85rem; margin: 1.5rem 0 1.25rem; }
.runbody__progress .bar { flex: 1; }
.runbody__count { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-muted); white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps form { margin: 0; }

.step { border-bottom: 1px solid var(--line-soft); }
.step:first-child { border-top: 1px solid var(--line-soft); }

.step__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0.35rem;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 54px;
}
.steps--static .step__btn { cursor: default; }
.step__btn:hover .step__box { border-color: var(--accent); }
.step__btn[disabled] { opacity: 0.6; cursor: default; }

.step__box {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  margin-top: 1px;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--card);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.step--done .step__box { background: var(--accent); border-color: var(--accent); }
.step__text { display: flex; flex-direction: column; gap: 0.12rem; }
.step--done .step__text { color: var(--ink-light); text-decoration: line-through; text-decoration-thickness: 1px; }
.step__detail { font-size: 0.84rem; color: var(--ink-light); text-decoration: none; }
.step--done .step__detail { text-decoration: line-through; }
.step__tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
  margin-left: 0.4rem;
  vertical-align: 1px;
}

.runbody__actions { display: flex; gap: 0.6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.runbody__actions form { margin: 0; }
.runbody__closed { margin-top: 1.6rem; color: var(--ink-light); font-size: 0.88rem; }

/* --- capture --- */

.capture { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.capture input { flex: 1; }

.captures { list-style: none; margin: 0; padding: 0; }
.captures li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.93rem;
  color: var(--ink);
}
.captures li span:first-child { flex: 1; }
.captures form { margin: 0; }
.captures__empty { color: var(--ink-light); border-top: 0 !important; }

.capture__done {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-light);
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 0.85rem;
}
.capture__done:hover { border-color: var(--good); color: var(--good); }

/* --- lists --- */

.donelist { list-style: none; margin: 0; padding: 0; }
.donelist li { border-top: 1px solid var(--line-soft); }
.donelist a, .donelist__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.2rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.donelist a:hover { text-decoration: none; color: var(--ink); }
.donelist__tick { color: var(--good); flex: 0 0 auto; width: 1.2em; text-align: center; }
.donelist__tick--bad { color: var(--bad); }
.donelist__time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-light);
  white-space: nowrap;
}

.listgrid { display: grid; gap: 0.7rem; }

.pill {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  margin-left: 0.45rem;
  vertical-align: 2px;
  font-weight: 700;
}
.pill--off { border-color: var(--line); color: var(--ink-light); }

.status { font-family: var(--mono); font-weight: 700; font-size: 0.78rem; }
.status--done { color: var(--good); }
.status--pending { color: var(--warn); }
.status--claimed { color: var(--accent); }
.status--failed, .status--expired { color: var(--bad); }

.audit { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.73rem; }
.audit li {
  display: flex;
  gap: 0.7rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-light);
  flex-wrap: wrap;
}
.audit__actor { color: var(--accent); }
.audit__action { color: var(--ink-muted); }

.dispatch { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.dispatch select { flex: 1; min-width: 200px; }

.json {
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  overflow-x: auto;
  margin: 0;
}

.exo__foot { margin-top: 2.5rem; font-size: 0.85rem; color: var(--ink-light); text-align: center; }
.exo__foot a { color: var(--ink-muted); }
.exo__foot a:hover { color: var(--accent); }

/* --- the reward modal --- */

body.is-locked { overflow: hidden; }

.reward { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.25rem; }
.reward[hidden] { display: none; }
.reward__scrim { position: absolute; inset: 0; background: rgba(44, 44, 44, 0.55); backdrop-filter: blur(5px); }

.reward__card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 24px 70px rgba(61, 79, 74, 0.25);
  animation: reward-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reward-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.reward__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}
.reward__name {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.8rem;
  font-weight: 500;
}
.reward__media { margin-bottom: 1rem; }
.reward__media video, .reward__media img {
  width: 100%;
  max-height: 46vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: block;
}
.reward__caption { color: var(--ink-muted); margin: 0 0 1.25rem; font-size: 0.92rem; }
.reward__caption[hidden] { display: none; }

/* --- the success page --------------------------------------------------- */

.success {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.1rem 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.success__inner {
  width: min(720px, 100%);
  text-align: center;
  animation: success-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.success__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 1;
}

.success__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--shadow-float);
  line-height: 0;
}

.success__media video,
.success__media img {
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
  display: block;
}

.success__sound {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(253, 251, 248, 0.9);
  backdrop-filter: blur(6px);
  color: var(--sage);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}
.success__sound:hover { border-color: var(--accent); color: var(--accent); }
.success__sound[hidden] { display: none; }

.success__caption {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  color: var(--sage);
  font-size: 1.35rem;
  font-weight: 600;
}

.success__actions { margin-top: 1.4rem; display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

.success__count { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-light); }

.success__empty-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; margin-bottom: 0.6rem; }
.success__empty { color: var(--ink-muted); font-size: 0.95rem; max-width: 46ch; margin: 0 auto 0.9rem; }
.success__path { margin: 0 0 1.2rem; overflow-x: auto; }
.success__path code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
}

/* The button that gets you there. It is a reward — it should look like one. */
.success-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.success-cta:hover {
  text-decoration: none;
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #fff;
}

/* --- consulting --------------------------------------------------------- */

.consult { max-width: var(--wrap); margin: 0 auto; padding: 3.2rem 1.1rem 4rem; }

.consult__head { text-align: center; margin-bottom: 2.6rem; }

/* The two questions ARE the pitch, so they get display type and the headline
   sits under them as the answer. The second one is the one that lands. */
.consult__ask {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  margin: 0 0 0.15rem;
  line-height: 1.25;
}
.consult__ask--two { color: var(--sage); margin-bottom: 1.1rem; }

.consult__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--sage);
}

.consult__lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.consult__levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.level {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
.level__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--accent);
}
.level p { margin: 0; font-size: 0.94rem; color: var(--ink-muted); line-height: 1.55; }

.consult__cta {
  text-align: center;
  padding: 2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.consult__cta .btn { font-size: 1.05rem; padding: 0.75rem 1.6rem; }
.consult__cta-note {
  margin: 0.9rem auto 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 42ch;
}

.post__origin {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--ink-light);
}

/* --- consulting credentials --------------------------------------------- */

.creds {
  list-style: none;
  margin: 0 0 2.8rem;
  padding: 0;
  max-width: 60ch;
  margin-inline: auto;
}

.cred {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.cred:last-child { border-bottom: 1px solid var(--line-soft); }

/* A small coral lozenge instead of a bullet — reads as a checklist of proof
   without literally being ticks, which would overpromise. */
.cred::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.cred__lead {
  display: block;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -0.01em;
}
.cred__note {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
