/* digitalpurr.com: one stylesheet, no third-party resources, no JavaScript. */

:root {
  color-scheme: light dark;
  --bg: #faf8f5;
  --surface: #ffffff;
  --fg: #1d1b19;
  --muted: #69635c;
  --line: #e6e0d8;
  --accent: #b3202e;
  --accent-soft: rgba(179, 32, 46, 0.08);
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --surface: #1b1a18;
    --fg: #ece8e2;
    --muted: #a49d94;
    --line: #2d2a27;
    --accent: #ff7a86;
    --accent-soft: rgba(255, 122, 134, 0.1);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
p, ul, ol { margin: 0 0 1rem; }

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1rem;
}

/* Home */

.home { padding-top: clamp(3rem, 14vh, 9rem); }

.brand { display: flex; align-items: center; gap: 0.85rem; margin: 0 0 1.5rem; }
.brand svg { width: 2.6rem; height: 2.6rem; flex: none; color: var(--fg); }
.brand h1 { font-size: clamp(2.2rem, 7vw, 3.1rem); font-weight: 650; letter-spacing: -0.035em; margin: 0; }

.lead { font-size: 1.25rem; line-height: 1.5; margin: 0 0 0.4rem; }
.lead + .lead { color: var(--muted); }

.card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card img { width: 4rem; height: 4rem; border-radius: 0.9rem; }
.card h3 { font-size: 1.1rem; margin: 0; }
.card p { margin: 0; }
.card .alt { color: var(--muted); font-weight: 500; }
.card .muted { font-size: 0.95rem; margin-top: 0.4rem; }
.card .muted + .muted { margin-top: 0.1rem; }
.card .links { font-size: 0.95rem; margin-top: 0.6rem; }

.foot {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.foot p { margin: 0 0 0.35rem; }
.foot a { color: inherit; }

/* Top navigation (privacy policy) */

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-size: 0.92rem;
}
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--fg); }
.topnav .lang a + a { margin-left: 0.9rem; }

.lang-section + .lang-section { border-top: 1px solid var(--line); margin-top: 3rem; }
.lang-section .lead { margin-bottom: 1.25rem; }

/* Documents (privacy policy) */

.doc h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); margin: 1.25rem 0 0.4rem; }
.doc h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.doc .meta { color: var(--muted); margin-bottom: 1.5rem; }

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

@media print {
  .topnav { display: none; }
}
