/* Sweatch — site stylesheet
   One file for every page. Brand tokens first, then the column, type,
   header, footer, content blocks and print. No JavaScript, no web fonts. */

/* ---------- tokens ---------- */
:root {
  --canvas: #FFFFFF;
  --ink: #0B0B0C;
  --ink-2: #6E6E73;
  --accent: #DB3816;
  --accent-tint: rgba(219, 56, 22, 0.10);
  --surface: #F5F5F7;
  --hairline: #EDEDED;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --column: 640px;
  --gutter: 16px;
  --radius: 12px;
  --pill: 999px;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* the column: 640px, 16px gutters on phones */
.wrap {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main { flex: 1 0 auto; }
main.wrap { padding-top: 32px; padding-bottom: 56px; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
}

h1 { font-size: 1.875rem; margin: 0 0 8px; }
h2 { font-size: 1.375rem; margin: 40px 0 12px; }
h3 { font-size: 1.125rem; margin: 28px 0 8px; }

@media (min-width: 600px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
}

p, ul, ol, dl, table, blockquote, pre { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }
li > ul, li > ol { margin-top: 0.35em; margin-bottom: 0; }

strong, b { font-weight: 600; }
small, .small { font-size: 0.875rem; }

/* "Last updated …" and other quiet lines */
.meta {
  color: var(--ink-2);
  font-size: 0.9375rem;
  margin: 0 0 28px;
}

/* the one larger intro paragraph on a page */
.lead {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 1.25em;
}

.muted { color: var(--ink-2); }

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

/* ---------- links: the accent, underlined ---------- */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* headings inside links (the header lockup) keep the ink */
a.plain { color: inherit; text-decoration: none; }

/* ---------- the one button ---------- */
.button {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 22px;
  border-radius: var(--pill);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.button:hover { text-decoration: none; filter: brightness(0.95); }

/* ---------- content blocks ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 1.25em;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--hairline);
  padding-left: 16px;
  color: var(--ink-2);
}

/* definition lists: "What we collect" / "Why" */
dl { display: block; }
dt { font-weight: 600; margin-top: 0.85em; }
dd { margin: 0.15em 0 0; color: var(--ink); }
dd + dt { margin-top: 1em; }

/* tables: hairline rows, scroll sideways on a phone rather than break the page */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25em;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
}
th {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
pre {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.875rem;
}
pre code { background: none; padding: 0; }

img, svg { max-width: 100%; height: auto; }

/* a short table of contents at the top of a long page */
.toc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 32px;
  font-size: 0.9375rem;
}
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: 0.25em; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .lockup {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.site-header .lockup svg {
  height: 24px;
  width: auto;
  display: block;
}
.site-header .tagline {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .site-header .tagline { display: none; }
}

/* skip link for keyboard and screen-reader users */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--canvas);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  padding-top: 28px;
  padding-bottom: 44px;
}
.site-footer nav ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer nav a[aria-current="page"] {
  color: var(--ink-2);
}
.site-footer .contact { margin: 0 0 6px; }
.site-footer .contact a { color: var(--accent); }
.site-footer .legal { margin: 0; }

/* ---------- print ---------- */
@media print {
  :root { --ink-2: #444; --hairline: #BBB; }
  body { font-size: 11pt; line-height: 1.45; color: #000; background: #fff; }
  .wrap { max-width: none; padding: 0; }
  main.wrap { padding-top: 0; }
  .site-header .wrap { min-height: 0; padding: 0 0 8pt; }
  .site-header .lockup svg { height: 18pt; }
  .site-header .tagline, .skip, .site-footer nav, .toc { display: none; }
  .site-footer .wrap { padding: 12pt 0 0; }
  h1 { font-size: 20pt; margin-top: 6pt; }
  h2 { font-size: 14pt; margin-top: 18pt; }
  h3 { font-size: 12pt; }
  h1, h2, h3 { page-break-after: avoid; break-after: avoid; }
  p, li, dd, tr { page-break-inside: avoid; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  a[href^="mailto:"]::after { content: none; }
  .callout, pre, code, .toc { background: none; border: 1px solid #BBB; }
  .button { background: none; color: #000; border: 1px solid #000; }
  .table-wrap { overflow: visible; }
}

/* ---------- page pieces the pages use ---------- */
.updated { color: var(--ink-2); font-size: 14px; margin: 0 0 8px; }
.hero h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; margin: 24px 0 12px; }
.note { color: var(--ink-2); }
.summary {
  background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 28px;
}
.summary h2 { margin-top: 0; font-size: 17px; }
.summary ul { margin-bottom: 0; }
ul.links { list-style: none; padding: 0; }
ul.links li { padding: 8px 0; border-bottom: 1px solid var(--hairline); }
ul.links li:last-child { border-bottom: 0; }
ul.emergency { list-style: none; padding: 0; }
ul.emergency li { padding: 10px 14px; background: var(--surface); border-radius: var(--radius); margin: 8px 0; }
/* a link on a grey surface is ink: the accent on --surface is 4.20:1, under AA */
.summary a, .callout a, .toc a, ul.emergency a { color: var(--ink); }
