/* =====================================================================
   site.css — layout for interstellarobservatory.com
   ---------------------------------------------------------------------
   Rules for this file (from the shared theme kit, THEME-GUIDE.md):
     - Colours ONLY through kit tokens: var(--color-…). No hex values here,
       so light, dark and every fun theme work without extra rules.
     - No images, no web fonts, no remote URLs.
   Load order in <head>: theme-base → brand-interstellarobservatory →
   site.css (this file) → themes/solstice, terminal, amber-crt → theme.js
   ===================================================================== */

/* ---------- Page frame ------------------------------------------------ */
.wrap {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--space-4);
}
main { display: block; padding-block: var(--space-6) var(--space-7); }

/* Skip link: hidden until focused by keyboard users */
.skip-link {
  position: absolute; left: var(--space-2); top: -10rem;
  background: var(--color-accent); color: var(--color-accent-contrast);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-weight: 700; z-index: 10;
}
.skip-link:focus { top: var(--space-2); color: var(--color-accent-contrast); }

/* ---------- Header (sits on --brand-gradient) -------------------------
   The kit checks header text at 3:1 "large text", so everything in the
   header stays >= 18.66px bold (the kit's .site-header sets that).     */
.site-header { padding-block: var(--space-4); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3) var(--space-5);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; margin-inline-end: auto;
}
.brand:hover { color: inherit; text-decoration: underline; }
/* LOGO SLOT: Carey's SVG logo goes here later (see index.html comment).
   Keep it inline SVG using currentColor so it follows every theme.     */
.brand-logo { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-name { font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-tight); }

.site-nav .nav a { text-decoration: none; }
.site-nav .nav a:hover,
.site-nav .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Theme picker: the label stays bold/large for header contrast; the
   <select> itself uses the kit's form colours (surface + text).        */
.theme-picker { display: inline-flex; align-items: center; gap: var(--space-2); }
.theme-picker select { font-size: var(--text-md); font-weight: 400; }

/* ---------- Hero -------------------------------------------------------- */
.hero h1 { margin-top: 0; }
.lead { font-size: var(--text-lg); }

/* ---------- Project cards ------------------------------------------- */
/* One column on phones; a 2 x 2 grid from tablet width up (four cards). */
.projects {
  display: grid; gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 46rem) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.project { display: flex; flex-direction: column; gap: var(--space-2); }
.project h3 { margin: 0; font-size: var(--text-lg); }
.project p, .project ul { margin: 0; }
.project ul { padding-inline-start: var(--space-5); }
.project-tagline { font-style: italic; color: var(--color-text-muted); }
.project-domain { font-family: var(--font-mono); font-size: var(--text-sm); }
.project-actions { margin-top: auto; padding-top: var(--space-3); }

/* Status tags: colours come from status tokens, which the kit's contrast
   check verifies as a pair with --color-surface in every theme.        */
.tag--live    { --tag-bg: var(--color-success); --tag-fg: var(--color-surface); }
.tag--soon    { --tag-bg: var(--color-warning); --tag-fg: var(--color-surface); }
.tag--planned { --tag-bg: var(--color-tint);    --tag-fg: var(--color-text); }

/* ---------- Modus Operandi ------------------------------------------- */
.principles { padding-inline-start: var(--space-5); }
.principles li { margin-block: var(--space-3); max-width: var(--measure); }
.principles strong { color: var(--color-text); }

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
  padding-block: var(--space-5);
  font-size: var(--text-sm);
}
.site-footer p { margin: var(--space-1) 0; }
.site-footer .nav { margin-top: var(--space-2); }
