/* ─────────────────────────────────────────────────────────────
   SHIPPING MODE
   Fonts: Share BoldItalic (wordmark) · Red Hat Mono (system)
          Geist (page text)
   ───────────────────────────────────────────────────────────── */

:root {
  --background: #111111;
  --surface: #202020;
  --muted: #404040;
  --text: #EDEDED;
  --accent: #D9FF3F;

  --text-dim: #8A8A8A;
  --line: #262626;

  --font-display: "Share", Georgia, serif;
  --font-mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 900px;
  --pad: 24px;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* faint grid, so the page reads as an instrument panel */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
}

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

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

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--background);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 4px;
}

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

/* ── Header ───────────────────────────────────────────────── */

.header {
  padding-block: clamp(40px, 9vw, 84px) clamp(32px, 6vw, 56px);
  border-bottom: 1px solid var(--line);
}

.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: clamp(22px, 4vw, 32px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
}

.status--muted { color: var(--text-dim); }

.status--active {
  color: var(--accent);
  border-color: rgba(217, 255, 63, .28);
  background: rgba(217, 255, 63, .06);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217, 255, 63, .55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 255, 63, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(217, 255, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 255, 63, 0); }
}

/* Wordmark — the one place Share BoldItalic is allowed */
.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(46px, 12.5vw, 128px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  column-gap: .22em;
}

.wordmark__ship { color: var(--text); }

.wordmark__mode {
  color: var(--accent);
  text-shadow: 0 0 42px rgba(217, 255, 63, .22);
}

.tagline {
  margin: clamp(18px, 3vw, 26px) 0 0;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.8vw, 17px);
}

/* ── Social links ─────────────────────────────────────────── */

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 4vw, 30px);
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .01em;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.social__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(217, 255, 63, .07);
}

.social__icon {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ── Section titles ───────────────────────────────────────── */

.section-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--text-dim);
}

/* ── Metrics ──────────────────────────────────────────────── */

.system {
  padding-block: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--surface);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--text-dim);
}

.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.metric__value--accent { color: var(--accent); }

.metric__delta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ── Timeline ─────────────────────────────────────────────── */

.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: clamp(34px, 5vw, 52px) 20px;
}

.timeline-head__note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 clamp(60px, 12vw, 120px);
  position: relative;
}

/* the running line */
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: clamp(60px, 12vw, 120px);
  left: 5px;
  width: 1px;
  background: linear-gradient(to bottom, var(--muted), var(--line));
}

.entry-item {
  position: relative;
  padding-left: 30px;
}

.entry-item + .entry-item { margin-top: 14px; }

/* node on the line */
.entry-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--muted);
}

.entry-item:first-child::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px rgba(217, 255, 63, .45);
}

.entry {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(32, 32, 32, .72);
  transition: border-color .15s ease;
}

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

.entry--latest {
  border-color: rgba(217, 255, 63, .22);
  background: rgba(32, 32, 32, .92);
}

.entry__rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
}

.entry__day {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.entry__date {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-dim);
}

.entry__flag {
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--background);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.entry__title {
  margin: 0 0 10px;
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.entry__note {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.entry__log {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.entry__log li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
}

.entry__log li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.entry__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--background);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.stat__k { color: var(--muted); }

.stat__v {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat__v--accent { color: var(--accent); }

.entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.watch,
.post {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.watch:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}

/* secondary action — the accent stays reserved for the video */
.post {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-dim);
}

.post:hover {
  border-color: var(--muted);
  color: var(--text);
}

.watch__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.watch__day {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid currentColor;
  font-weight: 500;
  opacity: .55;
}

/* ── End of log ───────────────────────────────────────────── */

.entry-item--end { padding-top: 6px; }

.entry-item--end::before { display: none; }

.timeline-end {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted);
}

.timeline-end__mark { color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 700px) {
  :root { --pad: 18px; }

  .entry {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .entry__rail {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .entry__day { font-size: 18px; }

  .entry__flag { margin-top: 0; }

  .watch,
  .post { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .watch__day { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
