@font-face {
  font-family: "DejaVu Sans";
  src: url("fonts/DejaVuSans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DejaVu Sans";
  src: url("fonts/DejaVuSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-elev: #0c0c0e;
  --bg-card: #101014;
  --text: #e6e6ea;
  --muted: #b4b4bc;
  --dim: #7a7a82;
  --green: #36e036;
  --magenta: #c010cc;
  --line: rgba(180, 180, 188, 0.16);
  --line-strong: rgba(180, 180, 188, 0.28);
  --btn-bg: #36e036;
  --btn-fg: #000000;
  --header-bg: rgba(0, 0, 0, 0.92);
  --ribbon-bg: #141418;
  --media-bg: #000000;
  --max: 1120px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f5f5f2;
  --bg-elev: #ecece8;
  --bg-card: #ffffff;
  --text: #121214;
  --muted: #4a4a52;
  --dim: #5c5c64;
  --green: #0f6b12;
  --magenta: #8a0a92;
  --line: rgba(18, 18, 20, 0.12);
  --line-strong: rgba(18, 18, 20, 0.22);
  --btn-bg: #36e036;
  --btn-fg: #000000;
  --header-bg: rgba(245, 245, 242, 0.94);
  --ribbon-bg: #e8e8e4;
  --media-bg: #000000;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DejaVu Sans", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--green); }
button, input { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 8px 12px;
  z-index: 100;
}

/* Mockup ribbon — not part of the live site */
.ribbon {
  background: var(--ribbon-bg);
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.ribbon strong { color: var(--muted); font-weight: 700; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
}
.brand img {
  width: 28px;
  height: auto;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--btn-bg);
  color: var(--btn-fg) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.btn-nav:hover { filter: brightness(1.08); color: var(--btn-fg) !important; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 40px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  margin: 4px auto;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  max-width: 40em;
}
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  max-width: 560px;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 4px;
  outline: none;
}
.signup input[type="email"]::placeholder { color: var(--dim); }
.signup input[type="email"]:focus {
  border-color: var(--green);
}
.signup button {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.signup button:hover { filter: brightness(1.08); }
.signup-note {
  width: 100%;
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 13px;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-more {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.link-more:hover { color: var(--text); }

/* Featured */
.featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.poster-wrap {
  position: relative;
  background: var(--media-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
}
.play-btn {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.72);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn svg { margin-left: 3px; }
.feat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--dim);
}
.tag {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.tag-magenta { color: var(--magenta); }
.featured h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.featured h3 a { color: var(--text); }
.featured h3 a:hover { color: var(--green); }
.excerpt {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 42em;
}
.excerpt + .excerpt { margin-top: -6px; }
.feat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

/* Post list */
.posts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.post {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.post-date {
  color: var(--dim);
  font-size: 13px;
  padding-top: 3px;
}
.post h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.post h3 a { color: var(--text); }
.post h3 a:hover { color: var(--green); }
.post p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.placeholder-flag {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
}

/* Trackers */
.tracker-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.tracker-copy { padding: 32px; }
.tracker-copy h3 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.tracker-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}
.tracker-copy .tag {
  margin: 0 0 10px;
  color: var(--green);
}
.dates {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.dates li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.dates li:last-child { border-bottom: 1px solid var(--line); }
.dates strong {
  color: var(--green);
  font-weight: 700;
}
.tracker-visual {
  position: relative;
  background: var(--media-bg);
  border-left: 1px solid var(--line);
  min-height: 240px;
}
.tracker-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

/* Methods teaser */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.methods-grid h3 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.methods-grid p {
  margin: 0 0 14px;
  color: var(--muted);
}
.signup-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.signup-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.signup-panel .lede-s {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* Footer */
.footer {
  padding: 40px 0 56px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer .brand { margin-bottom: 10px; }
.footer p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--green); }

/* Mobile */
@media (max-width: 800px) {
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 16px; }
  .featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .poster-wrap {
    width: 220px;
    margin: 0 auto;
  }
  .featured h3 { font-size: 26px; }
  .post { grid-template-columns: 1fr; gap: 4px; }
  .tracker-card { grid-template-columns: 1fr; }
  .tracker-visual {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    aspect-ratio: 16 / 9;
  }
  .methods-grid { grid-template-columns: 1fr; gap: 28px; }
  .tracker-copy { padding: 24px; }
  .section { padding: 40px 0; }
}

@media (max-width: 640px) {
  .header-inner { height: auto; min-height: 60px; padding: 10px 16px; flex-wrap: wrap; }
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; margin-left: 0; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 8px 0 12px;
  }
  .header.open .nav { display: flex; }
  .hero h1 { font-size: 30px; }
  .signup { max-width: none; }
  .signup button { width: 100%; }
  .ribbon { font-size: 11px; padding: 6px 12px; }
  .poster-wrap { width: 200px; }
}

.about-blurb {
  padding: 40px 0 8px;
}
.about-blurb h2 { margin-bottom: 16px; }
.about-blurb p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}


/* Inner pages */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.page-hero .lede { margin-bottom: 0; }
.page-hero .meta {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
}
.hero-actions { margin: 0; }
.page-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.page-section:last-of-type { border-bottom: 0; }
.page-section > .wrap > h2,
.prose > h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}
.prose {
  max-width: 42em;
  margin-left: 0;
  margin-right: auto;
}
.prose p,
.page-section p {
  margin: 0 0 1em;
  color: var(--muted);
}
.prose p:last-child,
.page-section p:last-child { margin-bottom: 0; }
.prose ul, .prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
  color: var(--muted);
}
.prose li { margin: 0 0 0.45em; }
.prose a, .page-section a { color: var(--green); }
.prose a:hover, .page-section a:hover { color: var(--text); }
.prose blockquote, .quote {
  margin: 0 0 1.1em;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--green);
  color: var(--text);
}

.sources {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sources li {
  margin: 0 0 8px;
  word-break: break-word;
  font-size: 14px;
}
.sources a { color: var(--green); }
.sources a:hover { color: var(--text); }

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
table.data th {
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg-elev);
}
table.data tr:last-child td { border-bottom: 0; }
table.data td.when {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
  width: 7.5em;
}

.empty-log {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  color: var(--dim);
  font-size: 15px;
}
.empty-log p { margin: 0; color: var(--dim); }

.article-head { margin-bottom: 28px; }
.article-head .feat-meta { margin-bottom: 10px; }
.article-head h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (max-width: 800px) {
  .page-hero { padding: 32px 0 20px; }
  .page-hero h1 { font-size: 30px; }
  .article-head h1 { font-size: 26px; }
  .page-section { padding: 36px 0; }
}

@media (max-width: 700px) {
  table.data { min-width: 0; }
  table.data thead { display: none; }
  table.data tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  table.data tr:last-child { border-bottom: 0; }
  table.data td {
    display: block;
    width: 100%;
    padding: 2px 0;
    border-bottom: 0;
    white-space: normal;
  }
  table.data td.when {
    padding-bottom: 6px;
  }
  table.data td:nth-child(3) {
    color: var(--dim);
    font-size: 13px;
    padding-top: 6px;
  }
}

/* Theme toggle */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Logo stays white-on-black in light mode */
html[data-theme="light"] .brand img {
  background: #000;
  padding: 3px;
  border-radius: 4px;
}

/* Map and video stills keep a black panel in light mode */
html[data-theme="light"] .poster-wrap,
html[data-theme="light"] .tracker-visual,
html[data-theme="light"] .media-panel {
  background: #000;
  border-color: rgba(18, 18, 20, 0.2);
  box-shadow: 0 0 0 1px rgba(18, 18, 20, 0.08);
}
.media-panel {
  background: var(--media-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 640px) {
  .header-tools { margin-left: auto; }
  .theme-toggle { width: 40px; height: 36px; }
}

