/* tabstoai.com. Colours, radii and the base font come from tokens.css (the
   extension's light tokens). Light only. The live CSP is style-src 'self', so
   every style lives in this file: no inline styles, no <style> blocks. */
:root { color-scheme: light; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; width: 100%; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-pressed); }
a:focus-visible { border-radius: 4px; }

/* ---- Shared header and footer ---- */

.site-header { flex-shrink: 0; border-bottom: 1px solid var(--border); padding: 0 16px; }
/* The brand lines up with the reading column. */
.site-header-inner { max-width: 648px; margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 20px;
  padding: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }

/* ---- Holding page ---- */

.holding {
  background:
    radial-gradient(64rem 34rem at 50% -8rem, var(--accent-tint), transparent 100%)
    no-repeat var(--ground);
}
.holding .site-footer { border-top-color: transparent; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
}
/* 64 px: the 128 px icon is exactly 2x, so it stays sharp on Retina screens. */
.hero-logo { display: block; width: 64px; height: 64px; }
.hero-name {
  margin: 20px 0 0;
  font-size: clamp(2.5rem, 1.9rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero-tagline {
  max-width: 42ch;
  margin: 16px 0 0;
  text-wrap: balance;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.4;
}
.hero-status {
  margin: 32px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--ground);
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---- Privacy policy ---- */

.policy { max-width: 680px; margin: 0 auto; padding: 48px 16px 64px; }
.policy h1 {
  margin: 0 0 4px;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.policy h2 {
  margin: 40px 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.policy p, .policy li { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 1.25rem; }
.policy li::marker { color: var(--muted); }
.policy strong { font-weight: 600; }
.policy-updated, .policy-contact { color: var(--muted); font-size: 0.9375rem; }
.policy hr { margin: 40px 0 24px; border: 0; border-top: 1px solid var(--border); }

/* ---- 404 ---- */

.missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
}
.missing-code { margin: 0; color: var(--muted); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; }
.missing h1 { margin: 8px 0 0; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.missing-note { margin: 12px 0 24px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-pressed); color: var(--accent-ink); }
.button:focus-visible { border-radius: var(--radius-btn); }
