/* Minimal Source site styles. One file, no framework. Flat: no shadows, no gradients. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
/* Light mode is the default. Dark mode applies when the visitor's system prefers it, unless they chose
   light with the header button, or when they chose dark (js/theme.js sets <html data-theme>). The two
   dark blocks below must stay identical. */
:root {
  /* Brand palette */
  --ink: #111418;
  --paper: #FAFAF8;
  --signal: #2457F5;
  --signal-light: #7F9CFF;
  --slate: #5B6470;
  --slate-light: #9AA3AF;

  /* Light roles: Paper ground, Ink text, Signal accents. */
  color-scheme: light;
  --bg: var(--paper);
  --bg-alt: #F1F2EE;
  --fg: var(--ink);
  --muted: var(--slate);
  --link: var(--signal);
  --line: #E1E3DF;
  --line-strong: #7A828D;
  --btn-bg: var(--signal);
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #1C46CC;
  --focus: var(--signal);
  --error: #B42318;
  --error-bg: #FDEDEB;
  --success: #13693A;
  --success-bg: #E6F4EC;
  --show-if-light: block;  /* logos and icons come in a light and a dark version (ui.themed_img) */
  --show-if-dark: none;

  /* Tools, light theme: Metis LIGHT.accent / accent_hover / accent_text; Enyo LIGHT.accent for links,
     primary / hover for buttons. From each app's own theme.py; keep in step with
     scripts/make_product_art.py. */
  --metis-link: #2563EB;
  --metis-btn-bg: #2563EB;
  --metis-btn-fg: #FFFFFF;
  --metis-btn-hover: #1D4FD8;
  --enyo-link: #C23A25;
  --enyo-btn-bg: #C93D28;
  --enyo-btn-fg: #FFFFFF;
  --enyo-btn-hover: #B13320;

  /* Type */
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* 8px spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;

  --radius: 4px;
  --max: 1120px;
  --gutter: 16px;
}

/* Dark roles: Ink ground, Paper text, Signal Light accents (Signal itself is too dark to read on Ink). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--ink);
    --bg-alt: #181C21;
    --fg: var(--paper);
    --muted: var(--slate-light);
    --link: var(--signal-light);
    --line: #2B3038;
    --line-strong: #6B7380;
    --btn-bg: var(--signal-light);
    --btn-fg: var(--ink);
    --btn-bg-hover: #A3B8FF;
    --focus: var(--signal-light);
    --error: #FF9C8F;
    --error-bg: #2A1714;
    --success: #7FD6A1;
    --success-bg: #12241A;
    --show-if-light: none;
    --show-if-dark: block;

    /* Tools, dark theme: Metis DARK.accent / accent_hover / accent_text; Enyo DARK.accent for links,
       primary for buttons with white text (darker on hover keeps white text above 4.5:1). */
    --metis-link: #4F8CFF;
    --metis-btn-bg: #4F8CFF;
    --metis-btn-fg: #0B1220;
    --metis-btn-hover: #6B9EFF;
    --enyo-link: #FF7A66;
    --enyo-btn-bg: #C93D28;
    --enyo-btn-fg: #FFFFFF;
    --enyo-btn-hover: #B13320;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--ink);
  --bg-alt: #181C21;
  --fg: var(--paper);
  --muted: var(--slate-light);
  --link: var(--signal-light);
  --line: #2B3038;
  --line-strong: #6B7380;
  --btn-bg: var(--signal-light);
  --btn-fg: var(--ink);
  --btn-bg-hover: #A3B8FF;
  --focus: var(--signal-light);
  --error: #FF9C8F;
  --error-bg: #2A1714;
  --success: #7FD6A1;
  --success-bg: #12241A;
  --show-if-light: none;
  --show-if-dark: block;

  /* Tools, dark theme: Metis DARK.accent / accent_hover / accent_text; Enyo DARK.accent for links,
     primary for buttons with white text (darker on hover keeps white text above 4.5:1). */
  --metis-link: #4F8CFF;
  --metis-btn-bg: #4F8CFF;
  --metis-btn-fg: #0B1220;
  --metis-btn-hover: #6B9EFF;
  --enyo-link: #FF7A66;
  --enyo-btn-bg: #C93D28;
  --enyo-btn-fg: #FFFFFF;
  --enyo-btn-hover: #B13320;
}

/* Tool colors on a product page's <body> and on its product cards. */
.tool-metis {
  --link: var(--metis-link);
  --btn-bg: var(--metis-btn-bg);
  --btn-fg: var(--metis-btn-fg);
  --btn-bg-hover: var(--metis-btn-hover);
  --focus: var(--metis-link);
}
.tool-enyo {
  --link: var(--enyo-link);
  --btn-bg: var(--enyo-btn-bg);
  --btn-fg: var(--enyo-btn-fg);
  --btn-bg-hover: var(--enyo-btn-hover);
  --focus: var(--enyo-link);
}

/* Show the logo / icon version that matches the theme. */
img.only-light { display: var(--show-if-light); }
img.only-dark { display: var(--show-if-dark); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s3);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: var(--s1); }
p, ul, ol, dl { margin: 0 0 var(--s2); }
strong { font-weight: 600; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 10;
  padding: var(--s1) var(--s2);
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--s1); }

.wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
/* Narrow content keeps the shared left edge; only the line length is capped. */
.narrow > * { max-width: 760px; }

.eyebrow, .label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s2);
}
.mono, .ref, .mono-title { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.ref { font-size: 1.05em; }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40em;
}
@media (min-width: 768px) { .lede { font-size: 1.3rem; } }

.arrow { display: inline-block; transition: transform 0.15s ease; }
a:hover .arrow { transform: translateX(3px); }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px var(--s3);
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--btn-bg-hover); }
.button--small { font-size: 0.95rem; padding: 8px var(--s2); }
.button--large { min-height: 52px; padding: 14px var(--s4); font-size: 1.05rem; }
.button[disabled] { opacity: 0.6; cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s4);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}
.site-header__brand { display: flex; align-items: center; gap: var(--s2); }
.brand { display: block; padding: 8px 0; } /* clear space: a quarter of the mark's height */
.brand img { width: 175px; height: 30px; }
.header-product { display: flex; align-items: center; gap: var(--s2); }
.header-product__sep { color: var(--line-strong); font-size: 1.4rem; line-height: 1; }
.header-product a { display: block; padding: 8px 0; }
.header-product img { width: 28px; height: 28px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s1) var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"]:not(.button) { text-decoration: underline; text-decoration-thickness: 2px; }

.site-nav .button { white-space: nowrap; }

.site-nav { margin-left: auto; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle__moon { display: var(--show-if-light); }
.theme-toggle__sun { display: var(--show-if-dark); }

@media (max-width: 599px) {
  .site-header__inner { padding-bottom: var(--s1); }
  .theme-toggle { order: 1; }
  .site-nav { order: 2; width: 100%; margin-left: 0; }
  .site-nav ul { justify-content: space-between; gap: var(--s1); }
  .site-nav .button--small { padding: 8px 12px; }
}

/* ---------- Sections ---------- */
.hero { padding: var(--s8) 0 var(--s8); }
@media (min-width: 768px) { .hero { padding: var(--s12) 0 var(--s10); } }
.hero h1 { max-width: 14em; }

.page-head { padding: var(--s6) 0 var(--s4); }
@media (min-width: 768px) { .page-head { padding: var(--s10) 0 var(--s6); } }

.section { padding: var(--s8) 0; }
@media (min-width: 768px) { .section { padding: var(--s10) 0; } }
.section--tight { padding-top: var(--s2); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__intro { color: var(--muted); max-width: 40em; margin-bottom: var(--s4); }
.section h2 + .grid, .section h2 + ol, .section h2 + ul { margin-top: var(--s4); }

/* ---------- Grids and cards ---------- */
.grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s3);
}
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.card p:last-child { margin-bottom: 0; }

/* Whole card clickable through the heading link, without nesting interactive content */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.card:has(.card__link:hover) { border-color: var(--line-strong); }

.product-card { padding: var(--s4); border-top: 3px solid var(--link); } /* the tool's color */
.product-card:has(.card__link:hover) { border-color: var(--link); }
.product-card__icon { width: 48px; height: 48px; margin-bottom: var(--s3); }
.product-card__name { font-size: 1.45rem; }
.product-card p { color: var(--muted); }
.product-card__more { color: var(--link) !important; font-weight: 600; margin-top: var(--s2); }

.service-strip__item { position: relative; padding-top: var(--s2); border-top: 2px solid var(--fg); }
.service-strip__item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.service-strip__item h3 a:hover { text-decoration: underline; }

.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s3);
  counter-reset: none;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps--compact { grid-template-columns: 1fr !important; margin-bottom: var(--s4); }
.steps__item { border-top: 1px solid var(--line-strong); padding-top: var(--s2); }
.steps__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--link);
  margin-bottom: var(--s1);
}
.steps__item p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- CTA ---------- */
.cta { background: var(--bg-alt); border-top: 1px solid var(--line); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.cta h2 { margin-bottom: var(--s1); }
.cta p { color: var(--muted); margin: 0; max-width: 34em; }

/* ---------- Product page ---------- */
.product-head__logo { margin-bottom: var(--s4); }
.product-head__logo img { width: 230px; height: 80px; }
.product-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }

.specs { margin: 0 0 var(--s3); border-top: 1px solid var(--line); }
.specs__row {
  display: grid;
  gap: var(--s1) var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) { .specs__row { grid-template-columns: 11em 1fr; } }
.specs dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.specs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.faq { border-top: 1px solid var(--line); margin-bottom: var(--s3); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  min-height: 56px;
  padding: var(--s2) 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--link);
  flex: none;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { color: var(--muted); padding-bottom: var(--s2); margin: 0; }

.shots > li { min-width: 0; }
.shot { margin: 0; }
/* Uniform 3:2 frames; each screenshot is shown whole, centered, on the alternate ground. */
.shot__link {
  display: block;
  aspect-ratio: 3 / 2;
  padding: var(--s1);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.shot__link:hover { border-color: var(--link); }
.shot__link { cursor: zoom-in; }
.shot__link img { width: 100%; height: 100%; object-fit: contain; }
.shot figcaption { color: var(--muted); font-size: 0.95rem; margin-top: var(--s1); }

/* Lightbox (js/lightbox.js) */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
}
.lightbox::backdrop { background: rgba(17, 20, 24, 0.92); }
.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 100%;
  padding: var(--s8) var(--gutter) var(--s4);
  cursor: zoom-out;
}
.lightbox__img {
  max-width: min(100%, 1200px);
  max-height: calc(100% - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  -webkit-user-drag: none;
  user-select: none;
}
.lightbox__caption { color: var(--muted); text-align: center; max-width: 48em; margin: 0; cursor: auto; }
.lightbox__close {
  position: absolute;
  top: var(--s2);
  right: var(--gutter);
  min-height: 44px;
  padding: 8px var(--s2);
  font: inherit;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--link); }

/* ---------- Services page ---------- */
.service-list { list-style: none; padding: 0; margin: 0 0 var(--s4); border-top: 1px solid var(--line); }
.service-list__item {
  display: grid;
  gap: var(--s1) var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.service-list__item h2 { font-size: 1.5rem; margin: 0; }
.service-list__item p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .service-list__item { grid-template-columns: 1fr 1.4fr auto; align-items: center; }
}

/* ---------- Prose (legal pages) ---------- */
.prose h2 { font-size: 1.4rem; margin-top: var(--s5); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s1); }

/* ---------- Forms ---------- */
.form { margin-top: var(--s2); }
.form__hint { color: var(--muted); font-size: 0.95rem; }
.field { margin: 0 0 var(--s3); padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; gap: 0 var(--s3); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.optional { font-weight: 500; color: var(--muted); }
.req { color: var(--error); }
.field__hint { color: var(--muted); font-size: 0.92rem; margin: -2px 0 var(--s1); }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px !important; }
fieldset[aria-invalid="true"] { border: 0 !important; border-left: 3px solid var(--error) !important; padding-left: var(--s2); }

.choices { display: grid; gap: var(--s1); }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--link); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--link); }
.choice--consent { border: 0; padding: 0; }

.field-error {
  color: var(--error);
  font-weight: 600;
  font-size: 0.95rem;
  margin: var(--s1) 0 0;
}
.field-error::before { content: "\2715  "; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-summary {
  border: 2px solid var(--error);
  background: var(--error-bg);
  border-radius: var(--radius);
  padding: var(--s3);
  margin-bottom: var(--s4);
}
.error-summary__title { font-size: 1.2rem; margin-bottom: var(--s1); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary ul:empty { display: none; }
.error-summary a { color: var(--error); font-weight: 600; }

.notice {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--s3);
  margin-bottom: var(--s4);
}
.notice p:last-child { margin: 0; }
.notice--success { border: 2px solid var(--success); background: var(--success-bg); }
.notice--success h2 { font-size: 1.3rem; }

.form__actions { margin-top: var(--s4); }

/* ---------- Admin ---------- */
.filters { display: grid; gap: 0 var(--s2); margin: var(--s4) 0 var(--s2); }
@media (min-width: 700px) { .filters { grid-template-columns: 12em 1fr auto; align-items: end; } }
.filters .button { min-height: 48px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 12px var(--s2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table tr:last-child td { border-bottom: 0; }
.status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.status--new { border-color: var(--link); color: var(--link); }
.pager { display: flex; gap: var(--s3); margin-top: var(--s2); }
.quote-text {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s2);
  background: var(--bg-alt);
  margin-bottom: var(--s4);
}
.admin h2 { font-size: 1.4rem; margin-top: var(--s4); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s4); font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
.site-footer__about { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__about { grid-column: auto; }
}
.site-footer__about img { width: 140px; height: 24px; margin: 4px 0 var(--s2); }
.site-footer__about p { color: var(--muted); margin-bottom: var(--s1); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .label { margin-bottom: 4px; }
.site-footer__legal { color: var(--muted); margin: var(--s5) 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header nav, .cta, .skip-link { display: none; }
}
