/* ContextMeter site: one stylesheet, self-hosted font, no external requests. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f3f4f6;
  --ink: #0e1116;
  --muted: #4b5563;
  --border: #e3e6ea;
  --accent: #2740d4;
  --accent-ink: #1c33b8;
  --on-accent: #ffffff;
  --ok: #1f9d6b;
  --warn: #d99a1a;
  --danger: #d1453b;
  --ok-text: #17694a;
  --warn-text: #8a5a00;
  --danger-text: #b4332b;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.05), 0 8px 24px rgba(14, 17, 22, 0.07);
  --radius: 12px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012;
    --surface: #17181b;
    --soft: #1d1f23;
    --ink: #f1efe9;
    --muted: #a6a39a;
    --border: #2b2d31;
    --accent: #8da2ff;
    --accent-ink: #a9b8ff;
    --on-accent: #0a1020;
    --ok: #3ec28f;
    --warn: #e8b043;
    --danger: #ee6a5f;
    --ok-text: #5fd0a0;
    --warn-text: #e8b043;
    --danger-text: #ff8d82;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012;
  --surface: #17181b;
  --soft: #1d1f23;
  --ink: #f1efe9;
  --muted: #a6a39a;
  --border: #2b2d31;
  --accent: #8da2ff;
  --accent-ink: #a9b8ff;
  --on-accent: #0a1020;
  --ok: #3ec28f;
  --warn: #e8b043;
  --danger: #ee6a5f;
  --ok-text: #5fd0a0;
  --warn-text: #e8b043;
  --danger-text: #ff8d82;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
}
.nav .btn {
  margin-left: 8px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover {
  opacity: 0.88;
}
.btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--soft);
}
.btn[aria-disabled="true"] {
  cursor: default;
}
.btn[aria-disabled="true"]:hover {
  opacity: 1;
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 80px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 620;
  color: var(--muted);
}
.eyebrow i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
}
h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--accent-ink);
}
.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 560;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chips svg {
  width: 17px;
  height: 17px;
  color: var(--ok-text);
}
.fine {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

/* ---------- live demo ---------- */
.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 14px;
}
.demo-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.demo-bar span {
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.demo-chat {
  background: var(--soft);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-height: 130px;
}
.skel {
  height: 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--muted) 24%, transparent);
}
.skel.me {
  justify-self: end;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}
.gauge-wrap {
  margin-top: 18px;
  text-align: center;
}
.gauge {
  width: min(300px, 100%);
  margin-inline: auto;
}
.gauge .track {
  fill: none;
  stroke: var(--border);
  stroke-width: 16;
  stroke-linecap: round;
}
.gauge .fill {
  fill: none;
  stroke: var(--ok);
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dasharray 0.35s ease, stroke 0.35s ease;
}
.gauge[data-level="warn"] .fill {
  stroke: var(--warn);
}
.gauge[data-level="danger"] .fill,
.gauge[data-level="over"] .fill {
  stroke: var(--danger);
}
.gauge .needle {
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: 120px 120px;
  transition: transform 0.35s ease;
}
.gauge .hub {
  fill: var(--ink);
}
.readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: -6px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.readout b {
  font-size: 46px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.readout span {
  color: var(--muted);
  font-size: 20px;
}
.tokens-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.status {
  margin: 8px 0 0;
  font-weight: 720;
  font-size: 16px;
  color: var(--ok-text);
}
.status[data-level="warn"] {
  color: var(--warn-text);
}
.status[data-level="danger"],
.status[data-level="over"] {
  color: var(--danger-text);
}
.demo-controls {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}
.field label,
.field .lab {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 28px;
  cursor: pointer;
}
select,
textarea,
button {
  font-family: inherit;
}
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
select {
  min-height: 44px;
}
.handoff-row {
  min-height: 48px;
}
.handoff-row .btn {
  width: 100%;
}
.handoff-row p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- sections ---------- */
section {
  padding: 84px 0;
}
.alt {
  background: var(--soft);
  border-block: 1px solid var(--border);
}
.kicker {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}
h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  font-weight: 800;
}
h3 {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.sec-lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 38em;
  margin: 0 0 44px;
}
.problem {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem .item {
  padding: 22px 4px 0;
  border-top: 2px solid var(--border);
}
.problem .item p {
  color: var(--muted);
  margin: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  grid-column: span 2;
}
.card.wide {
  grid-column: span 3;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.ico {
  color: var(--ink);
  margin-bottom: 14px;
}
.ico svg {
  width: 26px;
  height: 26px;
}
.mini-map {
  display: flex;
  gap: 3px;
  margin-top: 18px;
  height: 22px;
}
.mini-map span {
  flex: 1;
  border-radius: 3px;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
}
.mini-map span.u {
  background: var(--accent);
}
.mini-map span.big {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.mini-plan {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted);
}
.tag.on {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: s;
  padding: 0;
  list-style: none;
  margin: 0;
}
.steps li {
  counter-increment: s;
  border-top: 2px solid var(--ink);
  padding: 18px 4px 0;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 10px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.flow .box {
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
}
.flow .box b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.flow .arrow {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ticks svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 3px;
  color: var(--ok-text);
}
.ticks.no svg {
  color: var(--danger-text);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h3 {
  margin-bottom: 4px;
}

.limits-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.limit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.limit b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.limit span {
  color: var(--muted);
  font-size: 14.5px;
}

details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 4px 20px;
  margin: 0 0 12px;
}
summary {
  cursor: pointer;
  font-weight: 680;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 24px;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.final {
  text-align: center;
}
.final .lead {
  margin-inline: auto;
}
.final .cta-row {
  justify-content: center;
}

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14.5px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
footer a {
  color: var(--muted);
}

/* ---------- inner pages ---------- */
.page {
  padding: 56px 0 80px;
}
.page h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-top: 0;
}
.page h2 {
  font-size: 28px;
  margin-top: 44px;
}
.page p,
.page li {
  color: var(--muted);
}
.page strong {
  color: var(--ink);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 14px;
}
th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: var(--soft);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
}
kbd {
  background: var(--soft);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  font: 14px ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- token counter tool ---------- */
.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 28px 0;
}
textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px 16px;
}
.stat b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat span {
  font-size: 13.5px;
  color: var(--muted);
}
.bars {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.bar .lab {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 620;
  color: var(--ink);
  margin-bottom: 6px;
}
.bar .lab span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bar .rail {
  height: 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bar .rail i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ok);
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}
.bar[data-level="warn"] .rail i {
  background: var(--warn);
}
.bar[data-level="danger"] .rail i,
.bar[data-level="over"] .rail i {
  background: var(--danger);
}
.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .problem,
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .card,
  .card.wide {
    grid-column: span 3;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16.5px;
  }
  .nav a:not(.btn) {
    display: none;
  }
  .hero {
    padding: 44px 0 56px;
  }
  section {
    padding: 60px 0;
  }
  .card,
  .card.wide {
    grid-column: span 6;
  }
  .demo {
    padding: 14px;
    border-radius: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- article extras ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.crumbs a {
  color: var(--muted);
}
.stamp {
  margin-top: 36px;
  font-size: 14px;
  color: var(--muted);
}
.callout {
  background: var(--soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 28px 0;
}
.callout b {
  color: var(--ink);
}
.callout p {
  margin: 6px 0 0;
}
.page .lead {
  font-size: 20px;
  color: var(--muted);
}
.copy-block {
  position: relative;
  margin: 14px 0 24px;
}
.copy-block pre {
  margin: 0;
  padding: 18px 18px 64px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 14.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  max-height: 460px;
  overflow: auto;
}
.copy-block .btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
}
.related {
  margin-top: 56px;
  padding-top: 8px;
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.rel {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
}
.rel:hover {
  border-color: var(--ink);
}
.rel b {
  display: block;
  margin-bottom: 4px;
}
.rel span {
  color: var(--muted);
  font-size: 15px;
}
.compare td:first-child {
  font-weight: 650;
}

.nav a.btn,
.nav a.btn:hover {
  color: var(--bg);
  background: var(--ink);
}

/* ---------- product shots ---------- */
.rows {
  display: grid;
  gap: 72px;
}
.feat {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.feat.flip {
  grid-template-columns: 1.2fr 0.8fr;
}
.feat.flip .shot {
  order: -1;
}
.feat h3 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.feat p {
  margin: 0 0 12px;
  color: var(--muted);
}
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  height: auto;
}
.shot figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--border);
}
.facts div {
  padding: 22px 24px 4px 0;
}
.facts b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.facts span {
  color: var(--muted);
  font-size: 15.5px;
}
@media (max-width: 960px) {
  .feat,
  .feat.flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feat.flip .shot {
    order: 0;
  }
}

/* ---------- theme toggle and contact ---------- */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--soft);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
.nav a.contact {
  border: 1px solid var(--border);
  color: var(--ink);
  margin-left: 4px;
}
.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.contact-box p {
  margin: 4px 0 0;
  color: var(--muted);
}
@media (max-width: 680px) {
  .nav a.contact {
    display: none;
  }
}
