/* ENFOQ — the four pages the stores require.
   One stylesheet, no framework, no build step, no external request. A privacy
   policy that loads a font from someone else's CDN is contradicting itself in
   its own <head>. */

:root {
  --ink: #1a1714;
  --ink-soft: #57504a;
  --paper: #faf7f2;
  --card: #ffffff;
  --rule: #e6dfd5;
  --accent: #b4552d;
  --max: 43rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2ede6;
    --ink-soft: #a9a099;
    --paper: #15120f;
    --card: #1e1a16;
    --rule: #332c25;
    --accent: #e08a5f;
  }
}

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

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap { max-width: var(--max); margin: 0 auto; }

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.lang { font-size: 0.875rem; color: var(--ink-soft); }
.lang a { color: var(--accent); }
.lang [aria-current="true"] { color: var(--ink-soft); text-decoration: none; }

h1 {
  font-size: clamp(1.6rem, 5vw, 2.15rem);
  line-height: 1.2;
  margin: 2.25rem 0 0.4rem;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

h3 { font-size: 1rem; margin: 1.5rem 0 0.35rem; }

.updated { color: var(--ink-soft); font-size: 0.875rem; margin: 0 0 2rem; }

p, li { color: var(--ink); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

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

strong { font-weight: 600; }

.lede { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 2rem; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}

.card h2, .card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* Wide content scrolls inside its own box; the page body never scrolls
   sideways on a phone. */
.scroll { overflow-x: auto; margin: 1.25rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule);
}

th { font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.index-links { list-style: none; padding: 0; margin: 2rem 0 0; }
.index-links li { margin-bottom: 0.85rem; }
.index-links a { font-size: 1.05rem; font-weight: 600; }
.index-links span { display: block; color: var(--ink-soft); font-size: 0.9375rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

footer a { color: var(--ink-soft); }
footer p { color: inherit; margin-bottom: 0.5rem; }
