@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("/fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("/fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Pixel Square"; font-weight: 400; font-display: swap; src: url("/fonts/geist-pixel-square.woff2") format("woff2"); }

/* Ceisium warm neutral tokens. */
:root {
  color-scheme: light;
  --background: oklch(0.978 0.006 60);
  --foreground: oklch(0.2161 0.0061 56.0434);
  --card: oklch(0.992 0.003 70);
  --primary: oklch(0.49 0.0955 46.008);
  --primary-foreground: oklch(0.985 0.002 70);
  --muted: oklch(0.955 0.006 58);
  --muted-foreground: oklch(0.47 0.011 58);
  --border: oklch(0.89 0.005 55);
  --ring: var(--primary);
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 20px 44px -22px rgb(60 30 10 / 20%);
  --radius: 0.4rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: oklch(0.1648 0.0096 42.9675);
    --foreground: oklch(0.9629 0.0042 56.3745);
    --card: oklch(0.215 0.011 40);
    --primary: oklch(0.5026 0.0955 46.008);
    --primary-foreground: oklch(0.985 0.002 70);
    --muted: oklch(0.27 0.016 41);
    --muted-foreground: oklch(0.74 0.009 56);
    --border: oklch(0.29 0.014 42);
    --ring: oklch(0.72 0.1 48);
    --shadow: 0 1px 2px rgb(0 0 0 / 28%), 0 24px 48px -22px rgb(0 0 0 / 55%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: oklch(0.1648 0.0096 42.9675);
  --foreground: oklch(0.9629 0.0042 56.3745);
  --card: oklch(0.215 0.011 40);
  --primary: oklch(0.5026 0.0955 46.008);
  --primary-foreground: oklch(0.985 0.002 70);
  --muted: oklch(0.27 0.016 41);
  --muted-foreground: oklch(0.74 0.009 56);
  --border: oklch(0.29 0.014 42);
  --ring: oklch(0.72 0.1 48);
  --shadow: 0 1px 2px rgb(0 0 0 / 28%), 0 24px 48px -22px rgb(0 0 0 / 55%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/1.5 Geist, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius);
}

main:focus { outline: none; }

.skip {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.skip:focus, .skip:focus-visible { left: 16px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header { padding-top: 8px; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand img { width: 24px; height: 24px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .15s;
}
.header-link:hover { color: var(--foreground); }

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 14px/1 Geist, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.button:active { transform: translateY(1px); }
.button svg { width: 16px; height: 16px; flex-shrink: 0; }

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.button-primary:hover { background: color-mix(in oklch, var(--primary) 88%, black); }

.button-secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}
.button-secondary:hover { background: var(--muted); }

.icon-button {
  width: 44px;
  padding: 0;
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}
.icon-button:hover { background: var(--muted); }

.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-light-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-light-icon { display: none; }
  :root:not([data-theme="light"]) .theme-dark-icon { display: block; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  margin-left: 4px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
}
.text-link:hover {
  color: var(--foreground);
  text-decoration-color: var(--foreground);
}

/* Main single-fold hero: centred copy, the screenshot runs off the bottom. */
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(28px, 7vh, 96px);
}
.hero h1 {
  margin: 0;
  max-width: 26ch;
  font: 400 clamp(2.25rem, 4.2vw, 4.5rem)/1.06 "Geist Pixel Square", Geist, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em;
  font-synthesis: none;
  text-wrap: balance;
}
.lead {
  margin: clamp(14px, 2.2vh, 22px) 0 0;
  max-width: 46ch;
  color: var(--muted-foreground);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  text-wrap: balance;
}
.hero-actions {
  margin-top: clamp(20px, 3.4vh, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
}

.shot {
  width: 100%;
  margin-top: clamp(32px, 6vh, 72px);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  height: auto;
}

/* One screen on desktop: the page never scrolls, the shot fills what is left. */
@media (min-height: 560px) {
  body.fold { height: 100svh; overflow: hidden; }
  .fold .shot { flex: 1; min-height: 160px; }
}

/* Not-found layout */
.not-found {
  padding-block: clamp(56px, 10vw, 112px);
}
.not-found h1 {
  margin: 0;
  font: 400 clamp(2rem, 4vw, 3rem)/1.12 "Geist Pixel Square", Geist, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-synthesis: none;
}

/* Minimal footer */
.site-footer { margin-top: auto; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 2px 8px;
  color: var(--muted-foreground);
  font-size: 13px;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 4px;
  border-radius: var(--radius);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
}
.footer-credit a {
  justify-content: flex-start;
  padding-inline: 0;
  text-decoration-color: var(--border);
}
.site-footer a:hover {
  color: var(--foreground);
  text-decoration-color: var(--foreground);
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 2.1rem; }
  .lead { font-size: 15px; margin-top: 12px; }
  .hero-actions { margin-top: 20px; }
  .text-link { margin-left: 0; }
  .shot { margin-top: 24px; }
  /* Crop the desktop shot so the mail list stays readable on a phone. */
  .shot img { width: 820px; max-width: none; }
  .footer-row {
    border-top: 1px solid var(--border);
    padding-block: 8px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .button:active { transform: none; }
}
