/* plainform.github.io — reference pages on two EU regulations.
   No build step, no JavaScript, no web fonts, no third-party requests.
   The palette is checked against WCAG 1.4.3: every colour pair that appears
   together in a rule is at or above 4.5:1. We sell an accessibility checker;
   a marketing site that fails one would not be worth much. */

:root {
  --bg: #fdfdfb;
  --surface: #f3f2ec;
  --ink: #16150f;
  --ink-muted: #55514a;
  --rule: #d8d5cb;
  --accent: #8a1f11;
  --accent-ink: #ffffff;
  --live: #14532d;
  --live-bg: #e3f0e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13130f;
    --surface: #1e1d18;
    --ink: #edeade;
    --ink-muted: #b3ada0;
    --rule: #3a382f;
    --accent: #ff9d86;
    --accent-ink: #13130f;
    --live: #b7e4c2;
    --live-bg: #1c2e21;
  }
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

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

header.site {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.1rem;
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}
header.site a { color: var(--ink); }
header.site nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.brand { font-weight: 700; letter-spacing: -0.01em; }

main { padding-block: 2.5rem 3.5rem; }

h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.4rem; margin: 2.6rem 0 0.7rem; }
h3 { font-size: 1.1rem; margin: 1.8rem 0 0.4rem; }

.standfirst {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

a { color: var(--accent); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.live {
  display: inline-block;
  background: var(--live-bg);
  color: var(--live);
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}
th { font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif; font-size: 0.85rem; }
.scroll { overflow-x: auto; }

blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-muted);
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
pre {
  background: var(--surface);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 3px;
  font-size: 0.88rem;
}
pre code { background: none; padding: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.3rem 1.4rem;
  margin: 2.2rem 0;
}
.card h2, .card h3 { margin-top: 0; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 3px;
  margin-top: 0.4rem;
}
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.limit {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1.2rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding-block: 1.6rem 2.5rem;
  color: var(--ink-muted);
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}
footer.site a { color: var(--ink-muted); }
footer.site ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
