/* PlugDays site — colours from the brand kit (docs/references/2026-11-26-plugdays-brand). */
:root {
  --bg: #FFFFFF;
  --bg-2: #ECEAF4;          /* light surface */
  --text: #0B0A12;          /* bolt & text */
  --text-2: rgba(11, 10, 18, 0.64);
  --line: rgba(11, 10, 18, 0.10);
  --accent: #4B3FB0;        /* primary violet */
  --glow: rgba(122, 108, 224, 0.22);
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060509;          /* dark background */
    --bg-2: #100E18;
    --text: #F5F5F7;
    --text-2: rgba(245, 245, 247, 0.64);
    --line: rgba(255, 255, 255, 0.10);
    --accent: #8E80F0;      /* light accent — readable on dark */
    --glow: rgba(90, 76, 196, 0.42);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wordmark {
  display: block;
  background: currentColor;
  -webkit-mask: url("/assets/wordmark.svg") no-repeat center / contain;
          mask: url("/assets/wordmark.svg") no-repeat center / contain;
  aspect-ratio: 232 / 55;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Home: one-screen «Coming soon» ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
           max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background:
    radial-gradient(70% 45% at 50% 100%, var(--glow), transparent 70%),
    var(--bg);
  text-align: center;
}
.hero__main {
  align-self: center;
  justify-self: center;
  display: flex; flex-direction: column; align-items: center;
  max-width: 34rem;
}
.hero__icon {
  width: clamp(104px, 28vw, 148px);
  height: auto;
  /* clear space ≥ ¼ of the mark's side (brand rule) */
  margin-bottom: clamp(28px, 8vw, 40px);
  filter: drop-shadow(0 18px 40px rgba(43, 33, 112, 0.28));
}
.hero__wordmark { width: clamp(176px, 48vw, 232px); margin: 0 auto 20px; }
.hero__badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.hero__title {
  margin: 0;
  font: 700 clamp(30px, 8vw, 48px)/1.1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.hero__lead { margin: 14px 0 0; color: var(--text-2); font-size: clamp(17px, 4.4vw, 20px); }
.hero__en { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }

.footer {
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center;
  font-size: 14px; color: var(--text-2);
}
.footer span { flex-basis: 100%; }
.footer a { color: var(--text-2); padding: 10px 4px; }   /* ≥ 44 pt tap height with line-height */
.footer a:hover { color: var(--text); }

/* ---------- Legal page ---------- */
.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
           max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.doc__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}
.doc__brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.doc__brand img { width: 32px; height: 32px; }
.doc__brand .wordmark { width: 96px; }
.lang { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.lang a {
  min-width: 44px; min-height: 36px; padding: 6px 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--text-2); text-decoration: none;
}
.lang a[aria-current="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.doc h1 {
  margin: 32px 0 6px;
  font: 700 clamp(28px, 7vw, 40px)/1.15 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.doc__date { margin: 0 0 24px; color: var(--text-2); font-size: 15px; }
.summary {
  margin: 0 0 32px; padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.summary p { margin: 0; }
.doc h2 { margin: 36px 0 8px; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc code { font: 15px ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.doc section[lang] + section[lang] { margin-top: 72px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc .footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer .fmeta { font-size: 13px; }
.footer .fmeta a { padding: 6px 0; text-decoration: none; }
.footer .fmeta b { font-weight: 600; color: var(--text); }
