/* ---------------------------------------------------------------
   WAMAI Design System — Base Stylesheet
   Reference in any portal sub-app: <link rel="stylesheet" href="/base.css">
   --------------------------------------------------------------- */

/* Design tokens — override in sub-app <style> to customise */
:root {
  /* Surfaces */
  --color-bg:             #0d1117;
  --color-surface:        #161b22;
  --color-surface-hover:  #1c2233;

  /* Borders */
  --color-border:         #30363d;
  --color-border-focus:   #58a6ff;

  /* Brand accent */
  --color-accent:         #58a6ff;

  /* Text */
  --color-text:           #c9d1d9;
  --color-text-muted:     #8b949e;
  --color-text-dim:       #484f58;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Radii */
  --radius-card:   12px;
  --radius-sm:     6px;

  /* Motion */
  --transition-ui: 0.15s ease;
}

/* ---------------------------------------------------------------
   Reset
   --------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */

/* Vertically and horizontally centred single-column page */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  gap: 2.5rem;
}

/* ---------------------------------------------------------------
   Branding
   --------------------------------------------------------------- */

.wordmark {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---------------------------------------------------------------
   Nav cards — launcher-style navigation tiles
   --------------------------------------------------------------- */

.nav-cards {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 2.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--color-text);
  min-width: 148px;
  transition:
    border-color var(--transition-ui),
    background   var(--transition-ui);
}

.nav-card:hover {
  border-color: var(--color-border-focus);
  background: var(--color-surface-hover);
  text-decoration: none;
}

.nav-card .icon  { font-size: 2rem; line-height: 1; }
.nav-card .label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.nav-card .desc  { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

footer {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  text-align: center;
}

footer a {
  color: var(--color-accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
