/* CaveaScan policy site. System fonts only, no external requests. Colors match the app. */
:root {
  --paper: #f6efe4;
  --card: #fffcf7;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #ddcfbc;
  --brand: #4b2d84;
  --selected: #ece5f7;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--card); padding: 0.5rem 0.75rem; }
.skip:focus { left: 0.5rem; }

.site-header,
main,
.site-footer { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

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

nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
nav a { display: inline-block; padding: 0.5rem 0; font-weight: 600; }
nav a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--brand); }

main { padding-top: 1.5rem; padding-bottom: 2.5rem; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.375rem; line-height: 1.3; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.75rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1rem; }
li { margin: 0.35rem 0; }

blockquote { margin: 1rem 0; padding: 0.25rem 1rem; border-left: 4px solid var(--brand); background: var(--selected); }

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

.table { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { background: var(--selected); }
tr:last-child td { border-bottom: 0; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95em; }

.site-footer { padding-top: 1.25rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.site-footer p { margin: 0 0 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: text-decoration-thickness 120ms ease; }
}
