/* Pikkola EXIF: the same warm paper and slate accent as the rest of the shelf,
   so the photograph stays the only colour on the page. The negative space is
   deliberate: the file's own picture should be the loudest thing here. Weights
   stay between 400 and 700. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/tools/exif/fonts/inter.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/tools/exif/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --r: 14px;
  --r-sm: 8px;
  --r-xs: 6px;
}
html[lang="ko"] {
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
html[lang="ja"] {
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: normal;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] p,
html[lang="ja"] li,
html[lang="ja"] summary { line-break: strict; overflow-wrap: break-word; word-break: auto-phrase; }
html[lang="ja"] .hero h1 { max-width: 17ch; font-size: clamp(1.9rem, 3.7vw, 2.95rem); }

html[data-theme="light"] {
  --bg: #f6f4ee;
  --bg-2: #ece9e0;
  --surface: #fffdf8;
  --surface-2: #f8f6ef;
  --ink: #14171a;
  --ink-2: #3f464a;
  --ink-3: #61686b;
  --line: #ddd8cb;
  --line-2: #c3bdae;
  --line-strong: #8a8577;
  --accent: #2f4a5a;
  --accent-ink: #f7fbfd;
  --accent-soft: #e3ecf1;
  --hot: #a3331f;
  --hot-soft: #f8e3dd;
  --ok: #22604a;
  --ok-soft: #e1efe8;
  --warn: #86590f;
  --warn-soft: #f7ecda;
  --paper: #ffffff;
  --shadow: 0 24px 60px -34px rgba(20, 23, 26, 0.34);
  --shadow-sm: 0 10px 24px -18px rgba(20, 23, 26, 0.4);
  --header: rgba(246, 244, 238, 0.86);
}
html[data-theme="dark"] {
  --bg: #0f1213;
  --bg-2: #161a1b;
  --surface: #191e1f;
  --surface-2: #1f2526;
  --ink: #eef0ec;
  --ink-2: #bcc4c1;
  --ink-3: #8a9391;
  --line: #2a3132;
  --line-2: #3c4546;
  --line-strong: #746f63;
  --accent: #9dbccd;
  --accent-ink: #0d1a21;
  --accent-soft: #1d2a31;
  --hot: #e5836c;
  --hot-soft: #38221c;
  --ok: #86cfae;
  --ok-soft: #1a2e26;
  --warn: #e0b06a;
  --warn-soft: #322818;
  --paper: #ffffff;
  --shadow: 0 28px 70px -32px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 12px 28px -18px rgba(0, 0, 0, 0.8);
  --header: rgba(15, 18, 19, 0.86);
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 460px at 92% -10%, rgba(47, 74, 90, 0.10), transparent 70%),
    radial-gradient(520px 360px at 0% 4%, rgba(47, 74, 90, 0.05), transparent 72%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
code { font-family: var(--mono); font-size: 0.92em; }

main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.visually-hidden {
  position: absolute; 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: 16px; top: -60px; z-index: 40;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.note { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); align-self: center; }
.brand-name { font-size: 17px; }
.brand-tool {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 8px;
}
.site-nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-field { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.lang-globe { width: 16px; height: 16px; margin-left: 6px; pointer-events: none; position: absolute; left: 0; }
.lang-field select {
  appearance: none; background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2); font-size: 12.5px; padding: 6px 10px 6px 26px; cursor: pointer;
}
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 17px; height: 17px; }
html[data-theme="light"] .ico-sun { display: none; }
html[data-theme="dark"] .ico-moon { display: none; }

/* ---------- hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 48px; align-items: center;
  padding-top: 62px; padding-bottom: 64px;
}
.hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.25rem); max-width: 21ch; }
.hero-lede { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.facts { display: flex; gap: 34px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.facts dd { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; max-width: 15ch; }

.hero-art {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow); padding: 14px;
}
.art-frame {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-2); aspect-ratio: 4 / 3;
  background: #dfe7e6;
}
.art-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #dfe9ee 0%, #c2d4d8 55%, #93aaa9 100%); }
.art-sun {
  position: absolute; left: 70%; top: 20%; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 253, 240, 0.92);
}
.art-hill { position: absolute; left: -5%; width: 110%; }
.art-hill-a {
  bottom: 6%; height: 56%;
  background: #6f8f8d;
  clip-path: polygon(0 62%, 22% 34%, 46% 58%, 68% 40%, 100% 66%, 100% 100%, 0 100%);
}
.art-hill-b {
  bottom: 0; height: 34%;
  background: #45625f;
  clip-path: polygon(0 48%, 26% 26%, 52% 56%, 78% 38%, 100% 54%, 100% 100%, 0 100%);
}
.art-chip {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(163, 51, 31, 0.94); color: #fff6f3;
  font-size: 11px; letter-spacing: 0.04em; padding: 5px 10px 5px 8px; border-radius: 999px;
}
.art-dot { width: 6px; height: 6px; border-radius: 50%; background: #ffd9cf; }
.art-coords {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(15, 18, 19, 0.74); color: #f2f5f4;
  font-size: 11.5px; padding: 5px 9px; border-radius: 5px;
}
.art-lines {
  list-style: none; margin: 12px 2px 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--ink-3);
}
.art-lines li:first-child { color: var(--ink-2); }
.art-note { margin-top: 10px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }

/* ---------- sections ---------- */

.section { padding-top: 26px; padding-bottom: 58px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.section-lede { color: var(--ink-2); font-size: 15px; max-width: 46ch; }

section[id], article[id] { scroll-margin-top: 86px; }

/* ---------- the studio shell ---------- */

.tool-shell {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow-sm);
  padding: 18px;
}

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface-2);
  padding: 40px 20px 34px; text-align: center; cursor: pointer;
  transition: border-color 140ms, background-color 140ms;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon { width: 38px; height: 38px; color: var(--ink-3); margin-bottom: 4px; }
.dz-title { font-size: 17px; font-weight: 600; }
.dz-text { font-size: 13.5px; color: var(--ink-2); max-width: 46ch; }
.dz-btn { margin-top: 10px; }

.sample-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.sample-row .note { flex: 1 1 300px; font-size: 12.5px; }

.file-body {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 18px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.preview-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.preview-frame {
  position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--bg-2); display: grid; place-items: center; min-height: 220px;
}
.preview-frame img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.risk-badge {
  position: absolute; left: 10px; top: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em;
  background: rgba(163, 51, 31, 0.94); color: #fff4f0; padding: 4px 8px; border-radius: 5px;
}
.file-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.file-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.file-facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.file-facts dd { margin: 0; font-size: 12.5px; }

.read-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.risk-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface-2); }
.risk-card.is-high { border-color: var(--hot); background: var(--hot-soft); }
.risk-card.is-medium { border-color: var(--warn); background: var(--warn-soft); }
.risk-card.is-low { border-color: var(--ok); background: var(--ok-soft); }
.risk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.risk-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 3px 8px;
  border-radius: 999px; border: 1px solid currentColor; color: var(--hot);
}
.risk-card.is-medium .risk-tag { color: var(--warn); }
.risk-card.is-low .risk-tag { color: var(--ok); }
.risk-note { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.risk-card.is-high .risk-note { color: var(--ink); }
.risk-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.risk-list li {
  font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 3px 9px; background: var(--surface);
}
.risk-list .risk-count { font-family: var(--mono); border-style: dashed; }

.summary-block { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.summary-block .pv-label { padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pv-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.summary-grid div { padding: 10px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.summary-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.summary-grid dt { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.summary-grid dd { margin: 3px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.summary-grid .is-gps dd { font-family: var(--mono); font-size: 12.5px; }
.gps-strip {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.gps-pair { font-size: 12.5px; color: var(--hot); }
.gps-extra { font-size: 11.5px; color: var(--ink-3); }
.summary-block .note { padding: 14px 16px; }

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

.tag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag-search input {
  width: 260px; max-width: 100%; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 7px; padding: 8px 10px; font-size: 13px; color: var(--ink);
}
.tag-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; }
.tag-count { font-size: 12px; color: var(--ink-3); }
.tag-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tag-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.tag-table thead th {
  text-align: left; padding: 9px 12px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; background: var(--surface-2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.tag-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag-table tr:last-child td { border-bottom: 0; }
.tag-table tr.is-risk td { background: rgba(163, 51, 31, 0.04); }
.tag-group { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; white-space: nowrap; }
.tag-name { font-weight: 500; }
.tag-id { display: block; font-size: 10px; color: var(--ink-3); }
.tag-mark {
  display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 9.5px;
  border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; color: var(--ink-3);
}
.tag-mark.is-gps { color: var(--hot); border-color: currentColor; }
.tag-value { overflow-wrap: anywhere; color: var(--ink-2); }
.tag-type { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.empty-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- removal ---------- */

.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mode-card {
  display: flex; flex-direction: column; gap: 6px; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer;
  transition: border-color 140ms, background-color 140ms;
}
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card.is-on { border-color: var(--accent); background: var(--accent-soft); }
.mode-title { font-size: 14.5px; font-weight: 600; }
.mode-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

.clean-options { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; align-items: center; }
.opt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.opt select {
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface);
  color: var(--ink); font-size: 12.5px; padding: 5px 7px;
}
.opt input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); }

.clean-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }

.compare-block { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.compare-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.compare-removed { font-size: 11.5px; color: var(--ink-2); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 9px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table thead th { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.compare-table tbody th { font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-block .clean-result, .compare-block .note { padding: 12px 16px 0; font-size: 13px; color: var(--ink-2); }
.compare-block .note { font-size: 12.5px; }
.compare-block .btn { margin: 14px 16px 16px; }

/* ---------- how ---------- */

.rule-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px; }
.rule-num { font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.rule-card h3 { font-size: 15.5px; margin: 8px 0 8px; }
.rule-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.62; }

.prop-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); margin-top: 16px; }
.prop-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prop-table caption { text-align: left; padding: 12px 14px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.prop-table th, .prop-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.prop-table tbody tr:last-child td { border-bottom: 0; }
.prop-table thead th { font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.prop-table td:first-child { white-space: nowrap; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 15px 2px; font-size: 15px; font-weight: 500; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); font-size: 16px; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 2px 18px; color: var(--ink-2); font-size: 14px; max-width: 76ch; }

/* ---------- related ---------- */

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px 16px 18px;
  transition: border-color 140ms, transform 140ms;
}
.rel-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rel-kicker { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.rel-card h3 { font-size: 15px; }
.rel-card p { font-size: 13px; color: var(--ink-2); }
.rel-open { margin-top: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; cursor: pointer; color: var(--ink); text-decoration: none;
  transition: border-color 120ms, background-color 120ms;
}
.btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--ink); }
.btn.small { padding: 7px 13px; font-size: 12.5px; }
.btn.quiet { border-color: transparent; color: var(--ink-3); background: transparent; }
.btn.quiet:hover { color: var(--ink); border-color: var(--line-2); }
.btn[disabled] { opacity: 0.45; cursor: default; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 30px; background: var(--bg-2); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr; gap: 22px;
  padding-top: 32px; padding-bottom: 32px; align-items: start;
}
.footer-brand .brand { font-size: 16px; }
.footer-brand p { margin-top: 9px; font-size: 13px; color: var(--ink-2); max-width: 34ch; }
.footer-links h3 { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.footer-links ul { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { font-size: 12px; color: var(--ink-3); justify-self: end; text-align: right; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 13px; z-index: 60; box-shadow: var(--shadow);
}

/* ---------- plain pages ---------- */

.doc { max-width: 760px; padding-top: 46px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 26ch; }
.doc .updated { margin-top: 10px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.doc-lede { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.doc h2 { font-size: 1.2rem; margin: 34px 0 10px; }
.doc p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.doc li { margin-top: 8px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-foot a { text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.doc .eyebrow { margin-top: 22px; }
.notfound { text-align: center; padding: 90px 0 80px; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); }
.notfound p { margin-top: 14px; color: var(--ink-2); }
.notfound a { display: inline-block; margin-top: 22px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; padding-bottom: 44px; }
  .hero-art { max-width: 560px; }
  .file-body { grid-template-columns: 1fr; }
  .rule-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note { justify-self: start; text-align: left; }
}

@media (max-width: 760px) {
  section[id], article[id] { scroll-margin-top: 74px; }
  .wrap { padding: 0 18px; }
  .header-inner { gap: 12px; height: 60px; }
  .site-nav { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .facts { gap: 20px; flex-wrap: wrap; }
  .tool-shell { padding: 12px; }
  .dropzone { padding: 28px 14px 24px; }
  .section { padding-bottom: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-lede { max-width: none; }
  .mode-grid, .summary-grid { grid-template-columns: 1fr; }
  .summary-grid div:nth-child(odd) { border-right: 0; }
  .tag-search input { width: 100%; }
  .tag-bar { align-items: stretch; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .file-facts { grid-template-columns: 1fr; }
  .compare-block .btn { margin: 12px 14px 14px; }
}

@media (max-width: 460px) {
  .facts dt { font-size: 20px; }
  .risk-list li { font-size: 11px; }
  .dz-title { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
