/* Theia — theiarights.com
   No external fonts, no scripts, no analytics. A privacy policy that phoned a
   font CDN to render would contradict its own first paragraph, so everything
   here is self-contained and the system font stack does the typography. */

:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --line: #27272b;
  --text: #f2f2f3;
  --muted: #a1a1a8;
  --amber: #f08a24;   /* guidance and brand, as in the app */
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI",
        system-ui, sans-serif;
  padding: 0 1rem;                 /* side gutter on small screens */
}

/* Header and footer share .site */
header.site, footer.site {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 0;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

header.site nav a { color: var(--muted); font-size: 0.9375rem; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 2rem; margin: 0.5rem 0 1.25rem; }
h2 { font-size: 1.3125rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.0625rem; margin: 2rem 0 0.5rem; color: var(--muted); }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin: 0 0 0.6rem; }

a { color: var(--amber); text-underline-offset: 0.15em; }
a:hover { text-decoration: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;         /* long grep lines must not force a scroll */
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* The permissions table. It has long prose cells, so on a phone it stops
   being a grid and each row becomes a labelled block instead. */
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 34rem) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  td { border: 0; padding: 0.15rem 0; }
  td:first-child { font-weight: 600; }
}

/* Landing page */
.hero { padding: 3rem 0 1rem; }
.hero h1 { font-size: 2.5rem; }
.hero .tagline { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; }

.points { list-style: none; padding: 0; }
.points li {
  border-left: 2px solid var(--amber);
  padding: 0.1rem 0 0.1rem 0.9rem;
  margin-bottom: 1rem;
}

.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.links a {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;              /* same tap target the app uses */
  line-height: 1.6;
}
.links a:hover { border-color: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  a, .links a { transition: border-color 120ms ease, color 120ms ease; }
}
