/* VLog public pages, colours match lib/theme/colors.dart */
@font-face { font-family: "Victor Mono"; src: url("/fonts/VictorMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ground: #0e1113; --surface: #161a1e; --line: #2a3138;
  --text: #eef1f3; --muted: #a3adb6; --accent: #f5a524; --on-accent: #1a1206;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #e9ecef; --surface: #f8f9fa; --line: #cdd4da;
    --text: #131a21; --muted: #4a5560; --accent: #0b5560; --on-accent: #ffffff;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--text);
  font: 400 1rem/1.65 "IBM Plex Sans", system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Victor Mono", ui-monospace, monospace; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
p, li { color: var(--muted); }
strong { color: var(--text); }

/* Header with desktop links and a mobile drawer */
.bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.bar-inner { max-width: 46rem; margin: 0 auto; padding: 0.9rem 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: "Victor Mono", ui-monospace, monospace; font-weight: 600; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.links { display: flex; gap: 1.5rem; }
.links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.links a:hover, .links a[aria-current="page"] { color: var(--text); }
.menu-button { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.menu-button svg { display: block; margin: auto; }
.drawer { display: none; }

@media (max-width: 768px) {
  .links { display: none; }
  .menu-button { display: block; }
  .drawer[data-open="true"] { display: block; border-top: 1px solid var(--line); }
  .drawer a { display: block; padding: 0.9rem 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .drawer a[aria-current="page"] { color: var(--accent); }
}

/* Page content */
main { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 2.5rem 16px 3rem; }
.lead { font-size: 1.1rem; }
.date { font-size: 0.9rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.25rem 0.25rem; margin-top: 1.5rem; }
.card h2 { margin-top: 0; }
ol { padding-left: 1.25rem; }
.button { display: inline-block; margin-top: 1rem; padding: 0.75rem 1.25rem; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }

/* Footer, LUNARLABS credit last */
footer { border-top: 1px solid var(--line); background: var(--surface); }
.foot { max-width: 46rem; margin: 0 auto; padding: 1.5rem 16px; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; font-size: 0.875rem; color: var(--muted); }
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot nav a { color: var(--muted); }
.credit { font-family: "Victor Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--accent); text-decoration: none; }
@media (max-width: 768px) { .foot { flex-direction: column; align-items: flex-start; } }
