:root {
  /* Exact tokens from the app's own DarkColorScheme (ui/theme/Color.kt). Moose's brand is
     the night sky — this page commits to that dark identity regardless of system theme. */
  --ink: #0b1220;
  --panel: #141f33;
  --panel-2: #0f1729;
  --line: #263351;
  --frost: #f4f6fb;
  --frost-dim: #8c97ad;
  --green: #4ce0a0;
  --teal: #35c7c1;
  --violet: #b088f9;
  --pink: #e8a0d8;
  --amber: #ffb74d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--frost);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.display { font-family: "Unbounded", "Manrope", sans-serif; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.article-shell { max-width: 700px; margin: 0 auto; padding: 0 24px; }

/* nav */
nav.top {
  display: flex; align-items: center; gap: 12px;
  padding: 24px; max-width: 1080px; margin: 0 auto;
}
nav.top .brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav.top img { width: 32px; height: 32px; border-radius: 8px; }
nav.top .brand { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1rem; color: var(--frost); }
nav.top .download-badge { margin-left: auto; height: 40px; width: auto; display: block; }
nav.top .download-badge img { height: 100%; width: auto; border-radius: 0; }

/* blog index */
.blog-hero { padding: 20px 0 50px; }
.blog-hero .kicker {
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.blog-hero p { color: var(--frost-dim); max-width: 56ch; font-size: 1.05rem; }

.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; margin-bottom: 90px;
}
@media (max-width: 700px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--panel); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; transition: background 0.15s ease;
}
.post-card:hover { background: var(--panel-2); }
.post-card:hover h2 { color: var(--green); }
.post-card .cat {
  display: inline-flex; align-self: flex-start;
  font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 6px;
}
.cat.science { background: rgba(76,224,160,0.14); color: var(--green); }
.cat.data { background: rgba(53,199,193,0.16); color: var(--teal); }
.cat.travel { background: rgba(176,136,249,0.16); color: var(--violet); }
.cat.gear { background: rgba(232,160,216,0.16); color: var(--pink); }
.cat.tips { background: rgba(255,183,77,0.16); color: var(--amber); }
.post-card h2 { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 1.2rem; margin: 0; text-wrap: balance; transition: color 0.15s ease; }
.post-card p.excerpt { color: var(--frost-dim); font-size: 0.92rem; margin: 0; flex-grow: 1; }
.post-card .meta { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--frost-dim); }

/* article */
.article-header { padding: 40px 0 20px; }
.article-header .cat { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 6px; margin-bottom: 18px; }
.article-header h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 700; line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
.article-header .meta { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--frost-dim); }

article { padding: 10px 0 60px; font-size: 1.05rem; }
article h2 { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 1.4rem; margin: 42px 0 16px; text-wrap: balance; }
article h3 { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 1.12rem; margin: 30px 0 12px; }
article p { color: var(--frost-dim); margin: 0 0 20px; }
article strong { color: var(--frost); }
article ul, article ol { color: var(--frost-dim); padding-left: 1.3em; margin: 0 0 20px; }
article li { margin-bottom: 10px; }
article li::marker { color: var(--green); }
article li strong { color: var(--frost); }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  background: var(--panel); border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 30px 0; font-size: 0.95rem; color: var(--frost-dim);
}
.callout strong { color: var(--frost); }

.data-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 24px 0; background: var(--panel); }
.data-row { display: grid; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.data-row:last-child { border-bottom: none; }
.data-row.head { background: var(--panel-2); font-family: "JetBrains Mono", monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--frost-dim); }
.data-row div:first-child { color: var(--frost); font-weight: 600; }
.data-row div { color: var(--frost-dim); }

.app-cta {
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  padding: 30px 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin: 40px 0 10px;
}
.app-cta img { width: 44px; height: 44px; border-radius: 11px; }
.app-cta .txt { flex: 1; min-width: 200px; }
.app-cta .txt strong { display: block; font-family: "Unbounded", sans-serif; font-size: 1rem; margin-bottom: 4px; color: var(--frost); }
.app-cta .txt span { font-size: 0.88rem; color: var(--frost-dim); }
.app-cta a.btn {
  font-weight: 700; font-size: 0.88rem; background: var(--green); color: #04120d;
  padding: 11px 20px; border-radius: 100px; text-decoration: none; white-space: nowrap;
}

.post-nav { display: flex; justify-content: space-between; gap: 16px; padding: 30px 0 70px; border-top: 1px solid var(--line); margin-top: 20px; flex-wrap: wrap; }
.post-nav a { font-size: 0.9rem; color: var(--frost-dim); }
.post-nav a:hover { color: var(--green); }

footer.site { border-top: 1px solid var(--line); padding: 30px 0; }
footer.site .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--frost-dim); }
footer.site a { color: var(--frost-dim); }
footer.site a:hover { color: var(--green); }
