/*
 * baccalab landing page v1 — light only (Markos, widget 4 Oct 2026; Brief 62).
 *
 * Every value in :root below is copied VERBATIM from the portal's light palette,
 * apps/portal/src/styles.css:20-79, as it stood on 2026-10-04. That file is the
 * source of truth: no colour here is invented, and this page holds only the
 * tokens it actually uses. There is deliberately no dark-theme attribute selector
 * and no system-preference media query — the portal's dark palette is an explicit
 * toggle this page does not carry, so it renders the light palette always.
 *
 * Contrast was checked by computation, not by eye. Worst body-text pair is
 * --text-muted on --app-bg at 4.51:1; every body pair is >= 4.5:1. One pairing
 * was rejected by that check: --text-muted on --brand-soft measures 4.38:1, so
 * the "coming soon" label sits on a neutral chip rather than a brand-tinted one.
 */

:root {
  /* Surfaces */
  --app-bg: #eef4f2;
  --surface-1: #ffffff;

  /* Text */
  --text-primary: #132832;
  --text-secondary: #425861;
  --text-muted: #60727a;

  /* Borders */
  --border-subtle: #e2e9e6;

  /* Brand */
  --brand: #0f766e;
  --brand-hover: #0b625c;
  --on-brand: #ffffff;
  --brand-soft: #e3f3ef;
  --brand-soft-border: #87bbb4;

  /* Feedback */
  --focus: #2563eb;

  /* Shape (design.md §4) and type (§3) */
  --radius-control: 10px;
  --radius-card: 16px;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tagline-font: 'Instrument Serif', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* One centred column, readable at 360px without horizontal scroll. */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 8vw, 72px) 20px 40px;
}

main {
  flex: 1;
}

/* Header — wordmark in the UI stack, tagline in the serif italic role. */
.wordmark {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.tagline {
  margin: 2px 0 0;
  font-family: var(--tagline-font);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-muted);
}

h1 {
  margin: clamp(36px, 7vw, 56px) 0 0;
  font-size: clamp(1.75rem, 5.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.beta {
  margin: 16px 0 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* Two links styled as buttons; they wrap rather than overflow on a phone. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.button-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.button-secondary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.button-secondary:hover {
  background: var(--brand-soft);
}

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Subjects panel. */
.subjects {
  margin: clamp(40px, 8vw, 64px) 0 0;
  padding: clamp(20px, 4vw, 28px);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}

.subjects h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brand);
}

/* Not yet reachable: muted fill AND the words "coming soon", never colour alone. */
.chip-soon {
  background: var(--app-bg);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.soon {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.footer {
  margin-top: clamp(40px, 8vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer p {
  margin: 0;
}
