/* Stratocheck public site. Matches the app's night palette, with a light mode so
   the documents stay readable wherever a reviewer or user opens them. */

:root {
  --ink: #0d1322;
  --surface: #151c30;
  --line: rgba(230, 236, 248, 0.10);
  --text: #e9edf7;
  --muted: #9aa3ba;
  --accent: #7fd6c2;
  --measure: 46rem;
}

/* Dark is the default. Light mode is honored for whoever opens these on a
   desktop in daylight -- including an App Store reviewer. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #fbfcfe;
    --surface: #ffffff;
    --line: rgba(13, 19, 34, 0.12);
    --text: #14192a;
    --muted: #5a6478;
    --accent: #0f7f68;
  }
}

:root[data-theme="light"] {
  --ink: #fbfcfe;
  --surface: #ffffff;
  --line: rgba(13, 19, 34, 0.12);
  --text: #14192a;
  --muted: #5a6478;
  --accent: #0f7f68;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.masthead nav {
  display: flex;
  gap: 20px;
}
.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}
.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--text);
}

/* ---------- typography ---------- */

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  margin: -12px 0 32px;
}

.doc h2 {
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.doc h3 {
  font-size: 1.06rem;
  margin: 30px 0 10px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.doc strong { font-weight: 600; }

.doc ul,
.doc ol { padding-left: 1.3em; }

.doc li { margin: 7px 0; }

.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.doc blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.doc code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Tables carry the retention and data-category matrices, which are load-bearing
   in a privacy notice. They must stay readable on a phone. */
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
}
.doc th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- landing list ---------- */

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.doc-link {
  display: block;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.doc-link:hover,
.doc-link:focus-visible {
  border-color: var(--accent);
}
.doc-blurb {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

footer {
  margin: 72px auto 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin: 4px 0; }
.foot-links a { color: var(--muted); }

@media print {
  .masthead nav, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
}
