/* Values copied from mobile/src/theme/tokens.ts (Vault & Vellum on Nord).
   A theme change there means a change here too, the site has no build step. */

@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fonts/Manrope_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fonts/Manrope_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/JetBrainsMono_500Medium.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --background: #2e3440;
  --surface-container: #3b4252;
  --surface-container-high: #434c5e;
  --text-primary: #eceff4;
  --text-secondary: #d8dee9;
  --outline: #4c566a;
  --brand-primary: #88c0d0;
  --on-primary: #2e3440;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --radius-md: 12px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 400 16px/24px "Inter", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

a { color: var(--brand-primary); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 4px; }

h1 {
  margin: 0;
  color: var(--brand-primary);
  font: 700 32px/40px "Manrope", system-ui, sans-serif;
  letter-spacing: -0.32px;
}

h2 {
  margin: 0 0 var(--space-xs);
  font: 500 18px/24px "Manrope", system-ui, sans-serif;
}

p { margin: 0 0 var(--space-sm); }
p:last-child, ul:last-child { margin-bottom: 0; }

ul { margin: 0 0 var(--space-sm); padding-left: 20px; }
li + li { margin-top: var(--space-xs); }

strong { font-weight: 600; }

.site-header {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: var(--brand-primary);
  font: 700 18px/24px "Manrope", system-ui, sans-serif;
  text-decoration: none;
}

.site-header img { width: 40px; height: 40px; border-radius: var(--space-xs); }

.updated {
  margin: var(--space-xs) 0 var(--space-lg);
  color: var(--text-secondary);
  font: 500 12px/16px "JetBrains Mono", monospace;
  letter-spacing: 0.96px;
  text-transform: uppercase;
}

.intro { color: var(--text-secondary); margin-bottom: var(--space-md); }
h1 + .intro { margin-top: var(--space-xs); }

.card {
  margin-bottom: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface-container);
  border-radius: var(--radius-md);
}

.services { margin: 0 0 var(--space-sm); }
.services div { padding: var(--space-xs) 0; border-top: 1px solid var(--outline); }
.services div:first-child { border-top: 0; padding-top: 0; }
.services dt { font-weight: 600; }
.services dd { margin: 0; color: var(--text-secondary); }

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  text-align: center;
}

.home-logo {
  width: 140px;
  height: 140px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 16px rgba(136, 192, 208, 0.5);
}

.home .intro { margin: var(--space-xs) 0 var(--space-lg); }

.nav-rows { width: 100%; max-width: 360px; }

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  background: var(--surface-container);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.nav-row:hover { background: var(--surface-container-high); }
.nav-row::after { content: "\203A"; color: var(--text-secondary); font-size: 20px; line-height: 1; }

.site-footer {
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.site-footer a { margin-right: var(--space-sm); }
