/* The About, Privacy, Terms, Contact and Licences pages, in the product's own look.
   System fonts only: a privacy policy that loaded a web font would be making a
   request to a third party every time it opened. */

:root {
  --ground: #faf9f7;
  --surface: #ffffff;
  --sunken: #f3f1ee;
  --ink: #1c1b19;
  --ink-soft: #56534e;
  --ink-faint: #75716b;
  --line: #e8e5e0;
  --accent-bg: #f1ede6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1a1918;
    --surface: #232120;
    --sunken: #201f1d;
    --ink: #f1efea;
    --ink-soft: #bdb8b0;
    --ink-faint: #9a958d;
    --line: #34322f;
    --accent-bg: #262422;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15.5px/1.65 ui-sans-serif, -apple-system, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 740px; margin: 0 auto; padding: 56px 24px 110px; }

nav.site {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding-bottom: 22px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
nav.site .brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; color: var(--ink); text-decoration: none; margin-right: auto;
}
nav.site .brand svg { width: 15px; height: 19px; flex-shrink: 0; }
nav.site a { color: var(--ink-soft); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 19px; line-height: 1.3; margin: 44px 0 10px; letter-spacing: -0.005em; text-wrap: balance; }
h3 { font-size: 15.5px; margin: 24px 0 6px; }
p, li { max-width: 68ch; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.2em; margin: 0 0 14px; }
li { margin-bottom: 6px; }
a { color: inherit; text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
code { font: 0.9em ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--sunken); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

.muted { color: var(--ink-faint); font-weight: 400; }
.lede { font-size: 17px; color: var(--ink-soft); }
.updated { font-size: 13px; color: var(--ink-faint); margin-bottom: 28px; }

.summary {
  background: var(--accent-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin: 0 0 10px;
}
.summary h2 { margin-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.summary ul { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); background: var(--sunken); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td:first-child { min-width: 9em; }
td code { white-space: nowrap; }

.draft {
  background: #fff3cd; color: #5c4400; border: 1px solid #e8cf7d; border-radius: 8px;
  padding: 10px 14px; font-size: 14px; margin-bottom: 28px;
}

.creator-card { display: flex; gap: 18px; align-items: flex-start; }
.creator-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.creator-name { font-weight: 600; margin-bottom: 0; }
.creator-role { margin-bottom: 10px; }
@media (max-width: 520px) { .creator-card { flex-direction: column; } }

.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.socials li { margin: 0; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none;
}
.socials a:hover { color: var(--ink); border-color: var(--ink-faint); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
footer.site .socials a { width: 32px; height: 32px; }

.social-buttons { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.social-buttons li { margin: 0; }
.social-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.2;
}
.social-button:hover { border-color: var(--ink-faint); }
.social-button svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.social-button svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-handle { color: var(--ink-faint); }

.projects { list-style: none; padding: 0; }
.projects li { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); }
.projects li:last-child { border-bottom: none; }

.licence pre {
  white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 ui-monospace, Consolas, monospace;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px;
  max-height: 340px; overflow-y: auto; color: var(--ink-soft);
}
.licence h2 { margin-top: 36px; }

footer.site { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

@media print {
  nav.site, footer.site { display: none; }
  body { background: #fff; color: #000; }
  .licence pre { max-height: none; }
}
