/* Shared shell — sizes come from Customize (pt). Keep twin in index.html inline. */
:root {
  --bg: #070b10;
  --panel: #10161e;
  --line: #243040;
  --text: #eef1f6;
  --muted: #9aa6b8;
  --dim: #6a7588;
  --cyan: #5ee7ff;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tap: 48px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, #142a32 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
}
.site-header {
  padding: calc(1.1rem + var(--safe-t)) 0 1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: .45rem;
}
h1 {
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.subhead {
  margin-top: .45rem;
  color: var(--muted);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}
.intro {
  margin: .15rem auto 0;
  color: var(--muted);
  max-width: 38em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-top: 1.15rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .4rem .95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  touch-action: manipulation;
}
.btn.primary {
  background: linear-gradient(180deg, #163d48, #0e262e);
  border-color: #1a4a54;
  color: var(--cyan);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
/* Balanced air between header rule and footer rule */
main.wrap {
  padding: 1.6rem 0 1.6rem;
}
.link-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.link-card {
  display: block;
  padding: .95rem 1rem;
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  touch-action: manipulation;
}
.link-card:hover {
  border-color: #3a5060;
  text-decoration: none;
  filter: brightness(1.06);
}
.link-card strong {
  display: block;
  color: var(--cyan);
  margin-bottom: .2rem;
}
.link-card span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}
.link-card.is-empty { display: none; }
.is-empty { display: none !important; }
/* Full-width rule like header; text stays in .wrap */
.site-footer {
  margin-top: 0;
  padding: 1rem 0 calc(1.25rem + var(--safe-b));
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--dim);
  width: 100%;
}
#lastUpdated {
  font-variant-numeric: tabular-nums;
  margin-top: .35rem;
  font-size: 11pt;
  color: var(--dim);
}
@media (max-width: 480px) {
  .wrap { padding-left: max(.9rem, env(safe-area-inset-left, 0px)); padding-right: max(.9rem, env(safe-area-inset-right, 0px)); }
  .btn { width: 100%; max-width: 20rem; }
  .link-card { padding: 1rem 1.05rem; }
}
@media (min-width: 720px) {
  .wrap { padding: 0 1.5rem; }
  .btn { width: auto; }
}
