/* Colours are the portal's PrimeVue Aura defaults: emerald primary, slate
   surfaces in light mode, zinc in dark mode. Font stack = Tailwind's default
   sans, which the portal uses. */
:root {
  --bg: #f8fafc;
  --text: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-contrast: #ffffff;
  --link: #059669;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --border: #3f3f46;
    --primary: #34d399;
    --primary-hover: #6ee7b7;
    --primary-contrast: #09090b;
    --link: #34d399;
  }
}

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

html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol', 'Noto Color Emoji';
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.page {
  flex: 1;
  padding-top: clamp(2.5rem, 12vh, 7rem);
  padding-bottom: 3rem;
}

.wordmark {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
}

.features {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.features li {
  margin-bottom: 0.6rem;
}

.features li::marker {
  color: var(--primary);
}

strong {
  font-weight: 600;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--primary-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 600;
  text-decoration: none;
}

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

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

.footer.page {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin-bottom: 0.5rem;
}

.footer nav a {
  color: var(--text-muted);
}

.footer nav a:hover {
  color: var(--text);
}

/* After the link, not before the next one: on wrap the dot stays at the line end. */
.footer nav a:not(:last-child)::after {
  content: '·';
  display: inline-block;
  padding: 0 0.5rem;
  color: var(--text-muted);
}

.footer p {
  margin: 0;
}
