@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 500; src: url("/mods/fonts/MPLUSRounded1c-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 800; src: url("/mods/fonts/MPLUSRounded1c-800.woff2") format("woff2"); font-display: swap; }

:root {
  /* Office: partition wall blue gray, beige office machines, calculator LCD, copy paper, manila folders */
  --field: #cfd6de; --field-deep: #b3bdc8; --field-ink: #3d4a5c;
  --shell: #e7e1d2; --shell-deep: #c9c0aa; --shell-ink: #5e5645;
  --mint: #a8e6cf; --sticky: #f7e39a;
  --coral: #ff8f9c; --coral-deep: #e86677; --coral-pale: #ffd3d9;
  --cream: #dfe4cd; --paper: #fbfaf6; --manila: #ecd7a4; --manila-ink: #5b4a26;
  --ink: #34344a; --ink-soft: #4d4d66;
  --seg-off: #c5ccb0;
  --pixel: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", system-ui, sans-serif;  /* was DotGothic16; no pixel fonts since 2026-10-05 */
  --body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--field); color: var(--ink);
  font-family: var(--body); font-weight: 500; font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: linear-gradient(rgba(61, 74, 92, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 74, 92, .09) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
::selection { background: var(--coral); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--coral-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 800; line-height: .96; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Top bar */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-family: var(--pixel); font-size: 15px; }
.bar a { text-decoration: none; }
.bar .crumbs a:hover, .bar nav a:hover { text-decoration: underline; }
.bar .crumbs span { color: var(--field-ink); padding-inline: 6px; }
.bar nav { display: flex; gap: 20px; }

/* Buttons */
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--coral); color: var(--ink); text-decoration: none; font-family: var(--pixel); font-size: 18px; line-height: 1; box-shadow: inset 0 -4px 0 var(--coral-deep), 0 4px 10px rgba(52, 52, 74, .18); transition: transform .15s cubic-bezier(.16, 1, .3, 1), box-shadow .15s; }
.cta:hover { transform: translateY(-2px); text-decoration: none; }
.cta:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--coral-deep), 0 2px 4px rgba(52, 52, 74, .18); }
.cta svg { width: 18px; height: 18px; }
.link-quiet { font-family: var(--pixel); font-size: 17px; }

/* Leaflet paper */
.leaflet { background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 10px 30px rgba(44, 56, 78, .22); }
.leaflet.coral { background: var(--manila); }
.fold { position: relative; }
.fold::after { content: ""; position: absolute; inset: 0 auto 0 50%; border-left: 2px dashed rgba(52, 52, 74, .18); pointer-events: none; }

/* Footer */
.foot { padding-block: 56px 40px; font-size: 14px; color: var(--field-ink); }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: baseline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--pixel); font-size: 15px; color: var(--ink); }
.foot p { max-width: 60ch; }

/* Legal and plain pages */
.doc { padding: clamp(28px, 5vw, 56px); margin-block: 16px 24px; max-width: 820px; }
.doc h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc table { border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 2px solid rgba(52, 52, 74, .12); vertical-align: top; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
