/* ==========================================================================
   openpreview.no — design system (open-base) + the link-preview inspector
   Ultra-minimal: light neutral background, white borderless surfaces, pills,
   near-monochrome. Geist for content, Geist Mono for numbers and micro labels.
   The accent color is reserved for alarm/critical states only.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-var-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1EFF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-var-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1EFF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --surface-3: #e9e9e6;
  --text: #171717;
  --text-2: #666666;
  --text-3: #6f6f6f;
  --border: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.1);

  --accent: #d92d20;
  --accent-soft: rgba(217, 45, 32, 0.08);

  --ok: #157f3d;
  --warn: #a15c07;
  --warn-soft: rgba(181, 101, 8, 0.1);
  --ok-soft: rgba(21, 127, 61, 0.09);

  --inverse-bg: #171717;
  --inverse-text: #fafafa;

  --ring: rgba(0, 0, 0, 0.1);
  --shadow-overlay: 0 4px 12px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 0, 0, 0.1);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --chevron: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6f6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --surface: #191919;
  --surface-2: #0e0e0e;
  --surface-3: #262626;
  --text: #ededed;
  --text-2: #a3a3a3;
  --text-3: #9a9a9a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #f4645a;
  --accent-soft: rgba(244, 100, 90, 0.12);

  --ok: #6ccb8b;
  --warn: #f2b25c;
  --warn-soft: rgba(242, 178, 92, 0.12);
  --ok-soft: rgba(108, 203, 139, 0.12);

  --inverse-bg: #fafafa;
  --inverse-text: #171717;

  --ring: rgba(255, 255, 255, 0.16);
  --shadow-overlay: 0 4px 12px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.55);

  --chevron: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* System dark mode applies unless the user explicitly chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e;
    --surface: #191919;
    --surface-2: #0e0e0e;
    --surface-3: #262626;
    --text: #ededed;
    --text-2: #a3a3a3;
    --text-3: #9a9a9a;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.14);

    --accent: #f4645a;
    --accent-soft: rgba(244, 100, 90, 0.12);

    --ok: #6ccb8b;
    --warn: #f2b25c;
    --warn-soft: rgba(242, 178, 92, 0.12);
    --ok-soft: rgba(108, 203, 139, 0.12);

    --inverse-bg: #fafafa;
    --inverse-text: #171717;

    --ring: rgba(255, 255, 255, 0.16);
    --shadow-overlay: 0 4px 12px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.55);

    --chevron: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Numbers and data: mono with tabular digits so nothing jumps */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

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

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--surface-3); }

/* UI chrome must not be text-selectable (iOS long-press etc.).
   Real content/data the user may want to copy stays selectable. */
button, .site-header, .site-footer, .menu, .toast {
  -webkit-user-select: none;
  user-select: none;
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header { background: transparent; }

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-tld { color: var(--text-3); font-weight: 500; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) { .icon-btn:hover { background: var(--surface-3); } }
.icon-btn:active { transform: scale(0.94); }

.icon-btn.open { background: var(--inverse-bg); color: var(--inverse-text); }

/* Toggle buttons (on/off states) invert when active */
.toggle-btn.on { background: var(--inverse-bg); color: var(--inverse-text); }
@media (hover: hover) { .toggle-btn.on:hover { opacity: 0.85; background: var(--inverse-bg); } }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              transform 0.15s ease, opacity 0.15s ease;
}

.pill-btn:active { transform: scale(0.97); }

.pill-btn.primary { background: var(--inverse-bg); color: var(--inverse-text); }
@media (hover: hover) { .pill-btn.primary:hover { opacity: 0.85; } }

.pill-btn.ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

@media (hover: hover) { .pill-btn.ghost:hover { background: var(--surface-2); } }
.pill-btn[disabled] { opacity: 0.4; pointer-events: none; }

/* --------------------------------------------------------------------------
   Settings menu
   -------------------------------------------------------------------------- */

.settings-wrap { position: relative; }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 296px;
  max-height: min(560px, calc(100dvh - 90px));
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-overlay);
  padding: 20px;
  z-index: 60;
  transform-origin: top right;
  animation: menu-in 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes menu-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.menu-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* Options share the row evenly when they fit; locales with long words
   («Pantalla completa», «Бегущая строка») wrap to their own row rather
   than wrapping inside the button. gap applies both ways, so the spacing
   between wrapped rows equals the spacing within a row */
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-grid .opt-btn { flex: 1 1 auto; white-space: nowrap; }

.menu-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background-color: var(--surface-2);
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 15px;
  border: none;
  border-radius: 12px;
  padding: 11px 44px 11px 14px;
  cursor: pointer;
}

.opt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: none;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  color: var(--text-2);
  transition: background-color 0.13s ease, color 0.13s ease, transform 0.13s ease;
}

.opt-btn .icon { width: 14px; height: 14px; }

@media (hover: hover) { .opt-btn:hover { background: var(--surface-3); color: var(--text); } }
.opt-btn:active { transform: scale(0.97); }

.opt-btn.active {
  background: var(--inverse-bg);
  color: var(--inverse-text);
  font-weight: 600;
}

.opt-btn.wide { width: 100%; }
.opt-btn.copied { background: var(--ok); color: #fff; }

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 18px -20px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.switch {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: var(--surface-3);
  position: relative;
  cursor: pointer;
  transition: background-color 0.18s ease;
  margin: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}

.switch:checked { background: var(--inverse-bg); }
.switch:checked::after { transform: translateX(17px); background: var(--inverse-text); }

.menu-info {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--text-3);
}

.menu-info a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) { .menu-info a:hover { text-decoration: underline; } }

.menu-year { margin-top: 6px; }

/* --------------------------------------------------------------------------
   THE TOOL — paste a link, get every preview, every tag and the fixes
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
}

@keyframes fade-in {
  from { opacity: 0.01; }
  to { opacity: 1; }
}

/* Hero: only before the first result — afterwards the field sits on top */
.hero {
  text-align: center;
  padding: 56px 0 28px;
  animation: fade-in 0.4s ease backwards;
}

.hero-title {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

main.has-result .hero { display: none; }

/* The one core action */
.probe { margin: 0 auto; max-width: 680px; }

main.has-result .probe { max-width: none; margin-top: 8px; }

.probe-field {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  padding: 0 7px 0 20px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.15s ease;
}

.probe-field:focus-within { box-shadow: 0 0 0 2px var(--text), 0 6px 24px rgba(0, 0, 0, 0.06); }

.probe-icon { color: var(--text-3); width: 19px; height: 19px; }

.probe-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16.5px; /* ≥ 16px: iOS never zooms on focus */
  color: var(--text);
  padding: 0 8px 0 10px;
}

.probe-field input::placeholder { color: var(--text-3); }

.probe-btn { height: 46px; padding: 0 24px; flex-shrink: 0; }

.spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Busy via aria-disabled (not disabled), so focus survives the request */
.probe-btn[aria-disabled="true"] { pointer-events: none; opacity: 0.85; }
.probe-btn[aria-disabled="true"] .spinner { display: inline-block; }

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.examples #tryLabel { margin-right: 4px; }

.examples .opt-btn {
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  padding: 7px 14px;
}

@media (hover: hover) { .examples .opt-btn:hover { background: var(--surface-3); } }

main.has-result .examples { display: none; }

.probe-error {
  max-width: 680px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14.5px;
  text-align: center;
}

main.has-result .probe-error { max-width: none; }

/* ------------------------------------------------------------- result */

.result { margin: 18px 0 40px; animation: fade-in 0.35s ease backwards; }
.result[aria-busy="true"] { opacity: 0.45; transition: opacity 0.2s ease; pointer-events: none; }

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px 24px;
}

.block { margin-top: 36px; }

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 14px;
  min-height: 34px;
}

.block-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Verdict: who is this, how did it answer, how good is it */
.v-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.v-fav {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--text-3);
}

.v-fav img { width: 28px; height: 28px; object-fit: contain; }

.v-id { min-width: 0; flex: 1; }

.v-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.v-url span { overflow: hidden; text-overflow: ellipsis; }
.v-url .icon { width: 13px; height: 13px; }
@media (hover: hover) { .v-url:hover { color: var(--text); } }

.v-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat.ok { color: var(--ok); background: var(--ok-soft); }
.stat.bad { color: var(--accent); background: var(--accent-soft); }

.score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.score-tile {
  border-radius: 16px;
  background: var(--surface-2);
  padding: 12px 14px;
  min-width: 0;
}

.score-tile b {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.score-tile span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-tile.error.on { background: var(--accent-soft); }
.score-tile.error.on b { color: var(--accent); }
.score-tile.warn.on { background: var(--warn-soft); }
.score-tile.warn.on b { color: var(--warn); }
.score-tile.zero b { color: var(--text-3); }

.all-good {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 560;
  font-size: 15px;
}

.all-good .icon { width: 18px; height: 18px; stroke-width: 2.4; }

/* Tips */
.tips { margin: 0; padding: 0; list-style: none; }

.tip-group + .tip-group { margin-top: 6px; }

.tip-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tip {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.tip:first-child { border-top: 0; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--text-3);
  flex-shrink: 0;
}

.dot.error { background: var(--accent); }
.dot.warn { background: var(--warn); }
.dot.info { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }

.tip-group-label .dot { margin-top: 0; }

.tip-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tip.info .tip-text { color: var(--text-2); }

.tip-text code, .tag-key, .code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.tip-text code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  white-space: nowrap;
}

.code {
  position: relative;
  margin-top: 10px;
  border-radius: 12px;
  background: var(--surface-2);
  min-width: 0;
}

.code pre {
  margin: 0;
  padding: 11px 48px 11px 14px;
  overflow-x: auto;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre;
}

.code .copy-btn { position: absolute; top: 5px; right: 5px; }

.copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--text-3);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.copy-btn .icon { width: 15px; height: 15px; }
@media (hover: hover) { .copy-btn:hover { background: var(--surface-3); color: var(--text); } }
.copy-btn.copied { color: var(--ok); }

.cache-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.cache-note a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--border-strong); white-space: nowrap; }
@media (hover: hover) { .cache-note a:hover { text-decoration-color: currentColor; } }

.more-btn {
  margin-top: 14px;
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* ----------------------------------------------------------- previews */

.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface); }
.seg .opt-btn { background: transparent; padding: 6px 12px; font-size: 12.5px; }
.seg .opt-btn .icon { width: 13px; height: 13px; }
.seg .opt-btn.active { background: var(--inverse-bg); color: var(--inverse-text); }
@media (hover: hover) { .seg .opt-btn.active:hover { background: var(--inverse-bg); color: var(--inverse-text); } }

.pv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.pv { margin: 0; min-width: 0; }

.pv-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 6px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.pv-label small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Every stage is a little window into the platform: its own colors and
   system fonts, NOT the page's design system. Dark variants switch with
   .dark on the grid (follows the page theme until the visitor picks). */
.pv-stage {
  --s-bg: #fff;
  border-radius: 18px;
  padding: 16px;
  background: var(--s-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
  -webkit-user-select: none;
  user-select: none;
}

.clamp-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

.pv-img {
  position: relative;
  aspect-ratio: 1.91 / 1;
  background: var(--s-ph, #e4e6eb);
  overflow: hidden;
}

.pv-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pv-thumb {
  position: relative;
  flex-shrink: 0;
  background: var(--s-ph, #e4e6eb);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--s-ph-icon, #8a8d91);
}

.pv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-thumb .icon { width: 26px; height: 26px; stroke-width: 1.5; }

.pv-empty {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--s-muted, #8a8d91);
}

/* Google: a search result is wide, not a card — full row, Google's measure */
.pv[data-platform="google"] { grid-column: 1 / -1; }
.g-inner { max-width: 600px; }

/* Google */
.pv-google {
  --s-bg: #fff; --s-name: #202124; --s-url: #4d5156; --s-title: #1a0dab; --s-desc: #474747; --s-fav: #f1f3f4;
  font-family: Arial, Helvetica, sans-serif;
  padding: 18px 18px 20px;
}
.dark .pv-google { --s-bg: #1f1f1f; --s-name: #dadce0; --s-url: #bdc1c6; --s-title: #99c3ff; --s-desc: #bfbfbf; --s-fav: #303134; --s-muted: #9aa0a6; }
.g-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.g-fav { width: 28px; height: 28px; border-radius: 50%; background: var(--s-fav); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; color: var(--s-url); }
.g-fav img { width: 18px; height: 18px; object-fit: contain; }
.g-fav .icon { width: 16px; height: 16px; }
.g-site-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.g-name { font-size: 14px; color: var(--s-name); }
.g-url { font-size: 12px; color: var(--s-url); }
.g-title { margin-top: 9px; font-size: 20px; line-height: 1.3; color: var(--s-title); }
.g-desc { margin-top: 4px; font-size: 14px; line-height: 1.58; color: var(--s-desc); }

/* Facebook */
.pv-facebook { --s-bg: #fff; --s-body: #f0f2f5; --s-domain: #65676b; --s-title: #080809; --s-desc: #65676b; --s-ph: #e4e6eb; padding: 0; }
.dark .pv-facebook { --s-bg: #242526; --s-body: #3a3b3c; --s-domain: #b0b3b8; --s-title: #e4e6eb; --s-desc: #b0b3b8; --s-ph: #3e4042; --s-ph-icon: #8a8d91; }
.fb-card { background: var(--s-body); }
.fb-card.small { display: flex; align-items: stretch; }
.fb-card.small .pv-thumb { width: 132px; aspect-ratio: 1; }
.fb-body { padding: 10px 14px 12px; min-width: 0; align-self: center; }
.fb-domain { font-size: 12px; line-height: 1.35; text-transform: uppercase; color: var(--s-domain); }
.fb-title { margin-top: 3px; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--s-title); }
.fb-desc { margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--s-desc); }

/* X */
.pv-x { --s-bg: #fff; --s-border: #cfd9de; --s-text: #0f1419; --s-gray: #536471; --s-ph: #eff3f4; --s-ph-icon: #536471; }
.dark .pv-x { --s-bg: #000; --s-border: #2f3336; --s-text: #e7e9ea; --s-gray: #71767b; --s-ph: #16181c; --s-ph-icon: #71767b; }
.x-card { border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--s-border); }
.x-card .pv-img { border-radius: 16px; }
.x-large { position: relative; }
.x-overlay {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.77); color: #fff;
  font-size: 13px; line-height: 18px;
}
.x-from { margin-top: 4px; font-size: 13px; color: var(--s-gray); }
.x-card.small { display: flex; align-items: stretch; }
.x-card.small .pv-thumb { width: 128px; aspect-ratio: 1; border-right: 1px solid var(--s-border); }
.x-body { padding: 10px 14px; min-width: 0; align-self: center; font-size: 15px; line-height: 1.33; }
.x-domain { color: var(--s-gray); }
.x-title { color: var(--s-text); }
.x-desc { color: var(--s-gray); }

/* LinkedIn */
.pv-linkedin { --s-bg: #fff; --s-body: #edf3f8; --s-title: rgba(0, 0, 0, 0.9); --s-domain: rgba(0, 0, 0, 0.6); --s-ph: #dce6f1; --s-ph-icon: #56687a; padding: 0; }
.dark .pv-linkedin { --s-bg: #1b1f23; --s-body: #38434f; --s-title: rgba(255, 255, 255, 0.9); --s-domain: rgba(255, 255, 255, 0.6); --s-ph: #293138; --s-ph-icon: #8c9399; }
.li-card { background: var(--s-body); }
.li-card.small { display: flex; align-items: center; }
.li-card.small .pv-thumb { width: 128px; aspect-ratio: 1.91 / 1; }
.li-body { padding: 10px 14px 12px; min-width: 0; }
.li-title { font-size: 14px; line-height: 1.43; font-weight: 600; color: var(--s-title); }
.li-domain { margin-top: 2px; font-size: 12px; line-height: 1.33; color: var(--s-domain); }

/* Slack */
.pv-slack { --s-bg: #fff; --s-bar: #dddddd; --s-text: #1d1c1d; --s-link: #1264a3; --s-meta: #616061; }
.dark .pv-slack { --s-bg: #1a1d21; --s-bar: #35373b; --s-text: #d1d2d3; --s-link: #1d9bd1; --s-meta: #ababad; --s-ph: #2c2d30; }
.msg-link { font-size: 15px; line-height: 1.46; color: var(--s-link); word-break: break-all; }
.sl-unfurl { display: flex; gap: 12px; margin-top: 6px; padding-left: 12px; border-left: 4px solid var(--s-bar); border-radius: 0; }
.sl-main { min-width: 0; flex: 1; font-size: 15px; line-height: 1.46; color: var(--s-text); }
.sl-site { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.sl-site img { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; }
.sl-title { margin-top: 2px; font-weight: 700; color: var(--s-link); }
.sl-desc { margin-top: 2px; }
.sl-img { margin-top: 8px; max-width: 360px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.18); }
.sl-unfurl .pv-thumb { width: 76px; height: 76px; border-radius: 8px; }

/* Discord */
.pv-discord { --s-bg: #fff; --s-embed: #f2f3f5; --s-edge: #e3e5e8; --s-site: #4e5058; --s-title: #006ce7; --s-desc: #313338; --s-link: #006ce7; --s-ph: #e3e5e8; }
.dark .pv-discord { --s-bg: #313338; --s-embed: #2b2d31; --s-edge: #1e1f22; --s-site: #dbdee1; --s-title: #00a8fc; --s-desc: #dbdee1; --s-link: #00a8fc; --s-ph: #1e1f22; }
.pv-discord .msg-link { color: var(--s-link); font-size: 15px; }
.dc-embed {
  display: flex; gap: 16px; margin-top: 6px; max-width: 432px; padding: 10px 16px 16px 12px;
  border-radius: 4px; background: var(--s-embed); border-left: 4px solid var(--edge, var(--s-edge));
}
.dc-main { min-width: 0; flex: 1; }
.dc-site { font-size: 12px; line-height: 1.33; color: var(--s-site); margin-top: 4px; }
.dc-title { margin-top: 6px; font-size: 16px; line-height: 1.375; font-weight: 600; color: var(--s-title); }
.dc-desc { margin-top: 6px; font-size: 14px; line-height: 1.29; color: var(--s-desc); }
.dc-img { margin-top: 14px; border-radius: 4px; }
.dc-embed .pv-thumb { width: 80px; height: 80px; border-radius: 4px; margin-top: 6px; }

/* iMessage */
.pv-imessage { --s-bg: #fff; --s-card: #e9e9eb; --s-title: #000; --s-domain: #8e8e93; --s-ph: #d1d1d6; }
.dark .pv-imessage { --s-bg: #000; --s-card: #262628; --s-title: #fff; --s-domain: #98989d; --s-ph: #3a3a3c; --s-ph-icon: #98989d; }
.im-wrap { display: flex; justify-content: flex-end; }
.im-bubble { width: 78%; max-width: 300px; border-radius: 18px; overflow: hidden; background: var(--s-card); }
.im-body { padding: 8px 12px 10px; }
.im-title { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--s-title); }
.im-domain { margin-top: 1px; font-size: 13px; line-height: 1.3; color: var(--s-domain); }
.im-bubble.compact { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; }
.im-bubble.compact .im-body { padding: 0; min-width: 0; }
.im-icon { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--s-ph); display: grid; place-items: center; color: var(--s-domain); }
.im-icon img { width: 100%; height: 100%; object-fit: cover; }
.im-icon .icon { width: 22px; height: 22px; }

/* WhatsApp */
.pv-whatsapp {
  --s-bg: #efeae2; --s-bubble: #d9fdd3; --s-box: rgba(11, 20, 26, 0.05); --s-title: #111b21; --s-desc: #667781;
  --s-link: #027eb5; --s-time: #667781; --s-ph: #cfe9c9; --s-ph-icon: #667781;
}
.dark .pv-whatsapp {
  --s-bg: #0b141a; --s-bubble: #005c4b; --s-box: rgba(0, 0, 0, 0.16); --s-title: #e9edef; --s-desc: rgba(233, 237, 239, 0.62);
  --s-link: #53bdeb; --s-time: rgba(233, 237, 239, 0.62); --s-ph: #0a4a3e; --s-ph-icon: rgba(233, 237, 239, 0.6);
}
.wa-wrap { display: flex; justify-content: flex-end; }
.wa-bubble { width: 86%; max-width: 340px; padding: 3px 3px 6px; border-radius: 8px 0 8px 8px; background: var(--s-bubble); box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wa-box { border-radius: 6px; overflow: hidden; background: var(--s-box); }
.wa-box.small { display: flex; align-items: stretch; }
.wa-box.small .pv-thumb { width: 84px; aspect-ratio: 1; }
.wa-body { padding: 7px 10px 9px; min-width: 0; align-self: center; }
.wa-title { font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--s-title); }
.wa-desc { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--s-desc); }
.wa-domain { margin-top: 3px; font-size: 12.5px; color: var(--s-desc); }
.wa-text { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 0 7px; font-size: 14.2px; line-height: 1.35; }
.wa-text .msg-link { flex: 1; min-width: 0; font-size: 14.2px; color: var(--s-link); }
.wa-time { flex-shrink: 0; font-size: 11px; color: var(--s-time); }

/* Telegram */
.pv-telegram {
  --s-bg: #cbdcb8; --s-bubble: #fff; --s-accent: #168acd; --s-title: #000; --s-desc: #222; --s-time: #a0acb6; --s-bar-bg: rgba(22, 138, 205, 0.08); --s-ph: #dfe8ee;
}
.dark .pv-telegram {
  --s-bg: #0e1621; --s-bubble: #182533; --s-accent: #6ab2f2; --s-title: #fff; --s-desc: #e9e9e9; --s-time: #6d7f8f; --s-bar-bg: rgba(106, 178, 242, 0.1); --s-ph: #232e3c; --s-ph-icon: #6d7f8f;
}
.tg-wrap { display: flex; }
.tg-bubble { width: 86%; max-width: 340px; padding: 7px 10px 5px; border-radius: 12px 12px 12px 4px; background: var(--s-bubble); }
.pv-telegram .msg-link { color: var(--s-accent); font-size: 14.5px; line-height: 1.35; }
.tg-preview { display: flex; gap: 10px; margin-top: 6px; padding: 5px 8px 7px 9px; border-left: 3px solid var(--s-accent); border-radius: 4px; background: var(--s-bar-bg); }
.tg-main { min-width: 0; flex: 1; font-size: 14px; line-height: 1.34; }
.tg-site { font-weight: 600; color: var(--s-accent); }
.tg-title { margin-top: 1px; font-weight: 600; color: var(--s-title); }
.tg-desc { margin-top: 1px; color: var(--s-desc); }
.tg-img { margin-top: 7px; border-radius: 6px; }
.tg-preview .pv-thumb { width: 64px; height: 64px; border-radius: 6px; margin-top: 3px; }
.tg-time { margin-top: 3px; text-align: right; font-size: 11.5px; color: var(--s-time); }

/* ----------------------------------------------------- images & icons */

.asset-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.asset-main + .asset-main { margin-top: 12px; }

.checker {
  background-color: var(--surface-2);
  background-image:
    linear-gradient(45deg, var(--surface-3) 25%, transparent 25%, transparent 75%, var(--surface-3) 75%),
    linear-gradient(45deg, var(--surface-3) 25%, transparent 25%, transparent 75%, var(--surface-3) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

.asset-frame {
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--text-3);
}

.asset-frame img { display: block; max-width: 100%; max-height: 360px; height: auto; }
.asset-frame .icon { width: 30px; height: 30px; stroke-width: 1.4; }

.facts { margin: 0; display: grid; gap: 10px; min-width: 0; }
.facts div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.facts dd.num { font-size: 13.5px; }
.facts a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

.asset-title { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.asset-key { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.asset-note { margin: 0; font-size: 14.5px; color: var(--text-2); }

.dl-btn { margin-top: 18px; height: 38px; padding: 0 16px; font-size: 13.5px; }
.dl-btn .icon, .dl-all .icon { width: 16px; height: 16px; }
.dl-all { height: 34px; padding: 0 14px; font-size: 13px; flex-shrink: 0; }
.dl-btn[aria-disabled="true"], .dl-all[aria-disabled="true"], .copy-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.icon-tile {
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border-radius: 18px;
  padding: 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-tile .asset-frame { min-height: 0; aspect-ratio: 1.4; border-radius: 12px; }
@media (hover: hover) { .icon-tile a.asset-frame:hover { box-shadow: inset 0 0 0 1.5px var(--border-strong); } }
.icon-tile .asset-frame img { max-width: 64px; max-height: 64px; width: auto; height: auto; image-rendering: auto; }
.icon-tile.failed .asset-frame { background: var(--accent-soft); color: var(--accent); }

.icon-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; min-width: 0; }
.icon-foot .copy-btn { margin: -6px -6px 0 0; }
.icon-meta { min-width: 0; padding: 0 2px; }
.icon-rel { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.icon-sub { margin-top: 3px; font-family: var(--font-mono); font-size: 11px; line-height: 1.45; color: var(--text-3); overflow-wrap: anywhere; }
.icon-tile.failed .icon-sub { color: var(--accent); }

/* iOS home screen: the apple-touch-icon the way people actually see it */
.home {
  aspect-ratio: 1.4;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(160deg, #5b7cfa 0%, #9b6cf2 55%, #f08bb0 100%);
}

.home-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px; /* ≈ the iOS squircle at this size */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.home-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.home-label {
  max-width: 90%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------- tags */

.tags-card { padding: 8px 24px 12px; }

.tag-group-label {
  margin: 18px 0 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tag-row {
  display: grid;
  grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.tag-group-label + .tag-row { border-top: 0; }

.tag-key { font-size: 12.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; padding-top: 2px; }

.tag-value { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; min-width: 0; -webkit-user-select: text; user-select: text; }
.tag-value.missing { color: var(--text-3); font-style: italic; }
.tag-row .copy-btn { margin-top: -3px; }

.tags-more { margin-top: 10px; }
.tags-more summary {
  cursor: pointer;
  padding: 10px 0 6px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--text-2);
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.tags-more summary::-webkit-details-marker { display: none; }
.tags-more summary::before { content: "+"; display: inline-block; width: 16px; font-family: var(--font-mono); }
.tags-more[open] summary::before { content: "−"; }

/* ------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .pv-grid { grid-template-columns: minmax(0, 1fr); }
  .asset-main { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 28px 0 22px; }
  .hero-sub { font-size: 15px; }
  .probe-field { height: 56px; padding: 0 5px 0 16px; }
  .probe-icon { display: none; }
  .probe-field input { padding-left: 2px; }
  .probe-btn { height: 46px; padding: 0 18px; }
  .card { padding: 18px; border-radius: 20px; }
  .tags-card { padding: 4px 18px 10px; }
  .score-tile { padding: 10px 12px; }
  .score-tile b { font-size: 20px; }
  .tag-row { grid-template-columns: minmax(0, 1fr) 32px; gap: 2px 10px; }
  .tag-key { grid-column: 1; }
  .tag-value { grid-column: 1; }
  .tag-row .copy-btn { grid-column: 2; grid-row: 1 / span 2; }
  .facts div { grid-template-columns: 80px minmax(0, 1fr); }
  .sl-img { max-width: 100%; }
  .block { margin-top: 30px; }
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  inset: auto; /* resets popover UA styling (inset: 0) */
  margin: 0;
  border: 0;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--inverse-bg);
  color: var(--inverse-text);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
  max-width: calc(100vw - 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { text-decoration: underline; } }

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .menu { width: min(296px, calc(100vw - 32px)); }
}
