/* ============================================================
   groundpoint games — shared stylesheet
   Edit layout/colors HERE only. All pages link to this file,
   so every page stays identical and in sync.
   ============================================================ */

:root {
  --bg: #070b09;
  --ink: #cfe8dd;
  --muted: #5e7d70;
  --accent: #00ff88;
  --accent-dim: #00b863;
  --line: #14201b;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* One column width + padding shared by every page = aligned edges */
  --measure: 880px;
  --pad-x: clamp(1.5rem, 5vw, 3rem);
  --pad-top: clamp(2.5rem, 7vw, 5rem);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #0b1310 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: var(--font-mono);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Shared content column. Top-aligned on every page so the first line
   (the command prompt) starts at the same x and y everywhere. */
.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x);
}

/* ---- terminal command prompt motif ---- */
.cmd {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.cmd .prompt { color: var(--accent-dim); margin-right: 0.55em; }

/* ---- links ---- */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover, a:focus-visible { border-bottom-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- footer (shared nav) ---- */
footer {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem var(--pad-x) 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.foot-nav { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.foot-nav .sep { color: var(--line); }
.foot-nav .current { color: var(--ink); }

/* ============================================================
   home page
   ============================================================ */
.hero-out {
  margin: 0;
  font-size: clamp(2rem, 8.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--accent);
}
/* Caret flows inline as part of the text, so it always sits right
   after the last word — even if the title wraps to two lines. */
.caret {
  display: inline-block;
  width: 0.56ch;
  height: 0.78em;
  margin-left: 0.1em;
  vertical-align: baseline;
  background: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tagline {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  color: var(--ink);
  max-width: 48ch;
  margin: 1.6rem 0 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(2.6rem, 7vw, 4rem) 0;
}

.project-out {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink);
  max-width: 52ch;
}
.project-out b { color: var(--accent); font-weight: 700; }

.meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.6rem;
  font-size: 0.95rem;
}
.row { display: flex; gap: 1.2rem; align-items: baseline; }
.key {
  color: var(--muted);
  min-width: 8rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.val { color: var(--ink); }
.status .val::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6rem;
  transform: translateY(-0.1em);
  box-shadow: 0 0 8px var(--accent);
}

/* ============================================================
   subpage headings (messages, privacy)
   ============================================================ */
.page-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

/* ============================================================
   messages page
   ============================================================ */
.lede {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 clamp(2.2rem, 6vw, 3.2rem);
}
.feed { display: flex; flex-direction: column; }
.entry {
  padding: clamp(1.8rem, 5vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}
.permalink { color: var(--muted); }
.permalink:hover, .permalink:focus-visible { color: var(--accent); }
.tag { letter-spacing: 0.08em; }
.tag.press { color: var(--accent); }
.tag.blog { color: var(--accent-dim); }
.entry-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}
.entry-body { color: var(--ink); margin: 0; max-width: 62ch; }
.entry-body p { margin: 0 0 1rem; }
.entry-body p:last-child { margin-bottom: 0; }

/* ============================================================
   privacy page
   ============================================================ */
.policy p { margin: 0 0 1.3rem; max-width: 60ch; }
.policy .label { color: var(--muted); }
.policy .updated {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}