/* =============================================================
   Vellum — design system
   All personalization flows through these custom properties,
   which settings.js rewrites on :root / <html>.
   ============================================================= */

:root {
  /* accent (overwritten by settings) */
  --accent: #6366f1;
  --accent-weak: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, transparent);

  /* typography knobs */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-read: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --read-size: 1.075rem;     /* article body size  */
  --read-measure: 720px;     /* article column width */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 30px -12px rgba(15, 23, 42, 0.18);
  --header-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- light palette ---- */
:root,
[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --border: #e7e9ee;
  --border-strong: #d7dbe3;
  --text: #14161c;
  --text-2: #4a5160;
  --text-3: #828a99;
  --link: var(--accent);
  --kbd-bg: #eef0f4;
}

/* ---- dark palette ---- */
[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  --surface: #14171e;
  --surface-2: #11141a;
  --border: #232733;
  --border-strong: #2e3340;
  --text: #eef1f6;
  --text-2: #aab2c0;
  --text-3: #6f7889;
  --link: color-mix(in srgb, var(--accent) 78%, white);
  --kbd-bg: #1b1f28;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px -16px rgba(0, 0, 0, 0.7);
}

/* follow OS when theme = auto */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #0b0d12;
    --bg-grad: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
    --surface: #14171e;
    --surface-2: #11141a;
    --border: #232733;
    --border-strong: #2e3340;
    --text: #eef1f6;
    --text-2: #aab2c0;
    --text-3: #6f7889;
    --link: color-mix(in srgb, var(--accent) 78%, white);
    --kbd-bg: #1b1f28;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

/* ---------------------------- base ---------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent-weak); }
img { max-width: 100%; height: auto; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 3px solid var(--bg); }

/* ---------------------------- buttons ------------------------- */
.btn {
  font: 500 0.92rem var(--font-ui);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s var(--ease), background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--accent);
}
.btn-primary:hover { filter: brightness(1.06); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------- login --------------------------- */
.lock {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; gap: 18px;
  padding: 24px;
}
.lock-card {
  width: min(380px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 34px 30px 28px;
  text-align: center;
  animation: pop 0.5s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.lock-mark {
  width: 60px; height: 60px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  box-shadow: 0 10px 26px -10px var(--accent);
}
.lock-title { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.lock-sub { margin: 4px 0 22px; color: var(--text-3); font-size: 0.92rem; }
.field { display: block; text-align: left; margin-bottom: 14px; }
.field > span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input, .ctrl select, .ctrl input[type="url"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: 400 0.95rem var(--font-ui);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .ctrl select:focus, .ctrl input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.lock-error { margin: 12px 0 0; color: #e5484d; font-size: 0.85rem; }
.lock-foot { color: var(--text-3); font-size: 0.78rem; text-align: center; }

/* ---------------------------- topbar -------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font: 700 1.05rem var(--font-ui); letter-spacing: -0.02em;
  color: var(--text); background: none; border: none; cursor: pointer; padding: 4px;
}
.logo svg { color: var(--accent); }
.topbar-actions { display: flex; gap: 2px; }

/* search */
.search { position: relative; flex: 1; max-width: 640px; margin: 0 auto; }
.search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
#search-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 42px;
  font: 400 0.95rem var(--font-ui);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
#search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); background: var(--surface); }
#search-input::-webkit-search-cancel-button { display: none; }
.search-kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 500 0.72rem var(--font-mono);
  color: var(--text-3); background: var(--kbd-bg);
  padding: 2px 7px; border-radius: 6px; pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden; max-height: 70vh; overflow-y: auto;
  animation: drop 0.16s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.sr-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border);
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.active { background: var(--accent-soft); }
.sr-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.sr-text { min-width: 0; }
.sr-title { font-weight: 600; font-size: 0.93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-desc { font-size: 0.8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 0.88rem; }

/* ---------------------------- layout -------------------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.view { flex: 1; width: 100%; }
.appfoot { padding: 22px; text-align: center; color: var(--text-3); font-size: 0.8rem; border-top: 1px solid var(--border); }

/* ----- home ----- */
.home { max-width: 1280px; margin: 0 auto; padding: 40px 28px 60px; }
.hero { text-align: center; padding: 26px 0 38px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.03em; margin: 0 0 10px; }
.hero p { color: var(--text-3); margin: 0; font-size: 1.02rem; }
.hero .accent { color: var(--accent); }

.section-h { display: flex; align-items: center; justify-content: space-between; margin: 30px 4px 14px; }
.section-h h2 { font-size: 1.02rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.section-h .muted { font-size: 0.82rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left;
  transition: transform 0.12s var(--ease), border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 132px; object-fit: cover; background: var(--surface-2); }
.card-body { padding: 13px 15px 15px; }
.card-title { font-weight: 600; font-size: 0.98rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.card-desc { font-size: 0.85rem; color: var(--text-3); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; margin-bottom: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: 0.85rem; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: all 0.13s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ----- article reader ----- */
.reader { max-width: calc(var(--read-measure) + 320px); margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
.article-wrap { min-width: 0; padding: 26px 0 60px; }
.article-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.article-bar .spacer { flex: 1; }
.crumb { font-size: 0.82rem; color: var(--text-3); }

.article {
  font-family: var(--font-read);
  font-size: var(--read-size);
  line-height: 1.72;
  color: var(--text);
  max-width: var(--read-measure);
}
.article.justify p { text-align: justify; hyphens: auto; }
.article h1.title { font-family: var(--font-ui); font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15;
  letter-spacing: -0.025em; margin: 0 0 6px; }
.article .subtitle { font-family: var(--font-ui); color: var(--text-3); font-size: 1rem; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.article h2, .article h3, .article h4 { font-family: var(--font-ui); letter-spacing: -0.01em; line-height: 1.3;
  margin: 1.7em 0 0.5em; scroll-margin-top: calc(var(--header-h) + 16px); }
.article h2 { font-size: 1.45rem; padding-bottom: 0.25em; border-bottom: 1px solid var(--border); }
.article h3 { font-size: 1.18rem; }
.article h4 { font-size: 1.03rem; color: var(--text-2); }
.article p { margin: 0 0 1.05em; }
.article a { color: var(--link); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--link) 30%, transparent); }
.article a:hover { border-bottom-color: var(--link); }
.article a.external::after { content: "↗"; font-size: 0.7em; vertical-align: super; margin-left: 1px; opacity: 0.6; }
.article ul, .article ol { margin: 0 0 1.05em; padding-left: 1.4em; }
.article li { margin: 0.25em 0; }
.article blockquote { margin: 1.2em 0; padding: 0.4em 1.1em; border-left: 3px solid var(--accent); color: var(--text-2); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.article code { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 6px; border: 1px solid var(--border); }
.article pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.article sup { font-size: 0.72em; }

/* figures / images */
.article figure { margin: 1.4em 0; }
.article figure img, .article img { border-radius: var(--radius-sm); }
.article figcaption { font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-3); margin-top: 7px; text-align: center; }
.no-images .article img, .no-images .article figure, .no-images .infobox-img { display: none; }

/* tables & infobox */
.article table { border-collapse: collapse; font-family: var(--font-ui); font-size: 0.86rem; margin: 1.2em 0; width: 100%; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.article th { background: var(--surface-2); font-weight: 600; }
.article .infobox { float: right; width: 300px; max-width: 42%; margin: 0 0 1.2em 1.6em; font-size: 0.8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); display: table; overflow: hidden; }
.article .infobox img { border-radius: 6px; }

/* TOC sidebar */
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding-top: 26px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.toc-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 12px; font-weight: 600; }
.toc a { display: block; padding: 4px 12px; font-size: 0.84rem; color: var(--text-3); border-left: 2px solid var(--border); transition: color 0.15s, border-color 0.15s; }
.toc a:hover, .toc a.active { color: var(--accent); border-left-color: var(--accent); text-decoration: none; }
.toc a.lvl-3 { padding-left: 24px; font-size: 0.8rem; }

/* save button state */
.btn[data-saved="1"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* loading skeleton */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 6%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: rot 0.8s linear infinite; margin: 60px auto; }
@keyframes rot { to { transform: rotate(360deg); } }
.empty-state { text-align: center; color: var(--text-3); padding: 80px 20px; }
.empty-state svg { color: var(--border-strong); margin-bottom: 12px; }

/* ---------------------------- settings drawer ------------------ */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(8, 10, 14, 0.45); backdrop-filter: blur(2px); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px -30px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  animation: slide 0.28s var(--ease);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head, .drawer-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.drawer-head { border-bottom: 1px solid var(--border); }
.drawer-foot { border-top: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 24px; }

.set-group { padding: 18px 0; border-bottom: 1px solid var(--border); }
.set-group:last-child { border-bottom: none; }
.set-group > h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); margin: 0 0 14px; }
.ctrl { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ctrl:last-child { margin-bottom: 0; }
.ctrl > label { font-size: 0.9rem; color: var(--text); }
.ctrl select { width: auto; min-width: 130px; padding: 0.45rem 0.6rem; }
.ctrl input[type="url"] { font-size: 0.85rem; }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: none; background: none; padding: 5px 12px; font: 500 0.84rem var(--font-ui); color: var(--text-3); border-radius: 7px; cursor: pointer; transition: all 0.13s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* swatches */
.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.12s; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }

/* toggle */
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle .track { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background 0.18s; pointer-events: none; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.18s var(--ease); }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(18px); }

/* toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 60; background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  box-shadow: var(--shadow); animation: toast 0.25s var(--ease);
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

.muted { color: var(--text-3); }
.hint { font-size: 0.72rem; color: var(--text-3); font-weight: 400; }
.set-note { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; margin: 12px 0 0; }
.ctrl > label { display: flex; flex-direction: column; gap: 1px; }

/* ---------------------------- reading progress ---------------- */
#progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 35;
  height: 3px; background: transparent; pointer-events: none;
}
#progress > i {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px -1px var(--accent);
  transition: width 0.1s linear;
}

/* ---------------------------- zoomable images ----------------- */
.article img.zoomable { cursor: zoom-in; }

/* ---------------------------- link hover preview -------------- */
.link-pop {
  position: fixed; z-index: 70; width: min(340px, 86vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: drop 0.14s var(--ease);
  font-family: var(--font-ui);
}
.link-pop .lp-img { width: 100%; height: 140px; object-fit: cover; display: block; background: var(--surface-2); }
.link-pop .lp-body { padding: 12px 14px 14px; }
.link-pop .lp-title { font-weight: 600; font-size: 0.96rem; margin-bottom: 5px; letter-spacing: -0.01em; }
.link-pop .lp-text { font-size: 0.84rem; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------- image lightbox ------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 32px;
  background: rgba(8, 10, 14, 0.86); backdrop-filter: blur(4px);
  animation: fade 0.18s;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm);
  box-shadow: 0 20px 70px -20px rgba(0,0,0,0.8); cursor: zoom-out; }
.lb-close {
  position: fixed; top: 18px; right: 22px; width: 42px; height: 42px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.2rem;
  display: grid; place-items: center; transition: background 0.15s;
}
.lb-close:hover { background: rgba(255,255,255,0.24); }

/* ---------------------------- responsive ---------------------- */
@media (max-width: 920px) {
  .reader { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .search-kbd { display: none; }
  .logo span { display: none; }
  .topbar { gap: 8px; padding: 0 12px; }
  .article .infobox { float: none; width: 100%; max-width: 100%; margin: 0 0 1.2em; }
  .home { padding: 24px 16px 50px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
