:root {
  color-scheme: light;
  --paper: #f3f0e7;
  --paper-raised: #faf8f1;
  --paper-bright: #fffdf8;
  --ink: #171812;
  --ink-soft: #3f4038;
  --muted: #5d5f56;
  --line: #d6d1c3;
  --line-strong: #b8b2a3;
  --accent: #b83f26;
  --accent-hover: #94301b;
  --accent-soft: #edd8cf;
  --signal: #2f6b4d;
  --dark-muted: #a9a79a;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Baskerville", "Times New Roman",
    "Songti SC", "Noto Serif CJK SC", serif;
  --font-mono: "SFMono-Regular", "SF Mono", "Cascadia Code", "Roboto Mono",
    Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgb(23 24 18 / 3.4%) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgb(23 24 18 / 3.4%) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 64px), 1240px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(135deg);
}

.brand-sub {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

/* Home */

.home-main {
  padding-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(40px, 7vw, 104px);
  align-items: end;
  padding: clamp(68px, 10vw, 128px) 0 clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10.6vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero h1 span {
  display: inline-block;
  padding-left: 0.08em;
  color: var(--accent);
}

.hero-lede {
  max-width: 34rem;
  margin-top: clamp(30px, 4vw, 42px);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
}

.hero-aside {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.aside-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.aside-label {
  padding-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aside-index {
  font-family: var(--font-serif);
  font-size: 82px;
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.75;
}

.aside-facts {
  display: grid;
  gap: 11px;
  margin-top: 36px;
}

.aside-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--line-strong);
}

.aside-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.aside-facts dd {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: right;
}

.aside-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgb(47 107 77 / 12%);
}

.tools {
  padding-top: clamp(48px, 6vw, 72px);
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.section-bar h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-bar span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.tool-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 62px;
  gap: 28px;
  align-items: center;
  margin-inline: -18px;
  padding: 42px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    background-color 0.32s var(--ease),
    color 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

.tool-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.tool-title-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.tool-title-line h3 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tool-route {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tool-copy {
  max-width: 44rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  list-style: none;
}

.tags li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-arrow {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    background-color 0.32s var(--ease),
    border-color 0.32s var(--ease),
    color 0.32s var(--ease);
}

.tool-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.32s var(--ease);
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.tool-card:hover .tool-copy,
.tool-card:hover .tool-index,
.tool-card:focus-visible .tool-copy,
.tool-card:focus-visible .tool-index {
  color: var(--dark-muted);
}

.tool-card:hover .tool-route,
.tool-card:focus-visible .tool-route {
  border-color: #4b4c44;
  color: var(--dark-muted);
}

.tool-card:hover .tags li,
.tool-card:focus-visible .tags li {
  border-color: #44453d;
  color: #c3c0b3;
}

.tool-card:hover .tool-arrow,
.tool-card:focus-visible .tool-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff8ef;
}

.tool-card:hover .tool-arrow svg,
.tool-card:focus-visible .tool-arrow svg {
  transform: translate(2px, -2px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  padding: 30px 30px 34px;
  border-right: 1px solid var(--line);
}

.principle:first-child {
  padding-left: 0;
}

.principle:last-child {
  border-right: 0;
}

.principle-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.principle h3 {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.principle p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Tool page */

.tool-main {
  padding-top: clamp(40px, 5vw, 66px);
}

.tool-crumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(44px, 7vw, 84px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-crumb a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tool-crumb a:hover {
  color: var(--accent);
}

.tool-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
  padding-bottom: clamp(38px, 6vw, 70px);
  border-bottom: 1px solid var(--line-strong);
}

.tool-heading h1 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.tool-heading h1 span {
  color: var(--accent);
}

.tool-heading-copy {
  min-width: 0;
}

.tool-lede {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.82;
}

.spec-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-list b {
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 24px;
  margin-top: 40px;
}

.panel {
  min-width: 0;
  padding: clamp(24px, 3.3vw, 38px);
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-head-meta {
  color: var(--muted);
}

.field {
  margin-top: 26px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.field label,
.advanced label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-toggle {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.text-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.input {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input::placeholder {
  color: #97978b;
}

.input:focus {
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.advanced {
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  list-style: none;
}

.advanced summary::-webkit-details-marker {
  display: none;
}

.advanced-plus {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.advanced[open] .advanced-plus {
  transform: rotate(45deg);
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 12px;
  padding: 0 0 20px;
}

.advanced .field {
  margin-top: 0;
}

.advanced .input {
  height: 44px;
  font-size: 12px;
}

.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: 54px;
  margin-top: 27px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #fff8ef;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.primary:hover:not(:disabled) {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.primary:hover:not(:disabled) .button-arrow {
  transform: translateX(4px);
}

.form-error {
  margin-top: 15px;
  padding: 11px 13px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: #661f0f;
  font-size: 12.5px;
  line-height: 1.65;
}

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.secure-note::before {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.55em;
  border: 1px solid var(--muted);
  content: "";
}

.result-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.result-panel::before,
.result-panel::after {
  position: absolute;
  border: 1px solid rgb(243 240 231 / 7%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.result-panel::before {
  top: -92px;
  right: -72px;
  width: 260px;
  height: 260px;
}

.result-panel::after {
  right: -34px;
  bottom: -122px;
  width: 220px;
  height: 220px;
}

.result-panel .panel-head {
  position: relative;
  z-index: 1;
  border-color: rgb(243 240 231 / 14%);
  color: var(--dark-muted);
}

.result-panel .panel-head-meta {
  color: var(--dark-muted);
}

.result-body {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 26px 0;
}

.result-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.result-placeholder::before {
  width: 18px;
  height: 1px;
  background: #5d5e55;
  content: "";
}

.code-wrap {
  animation: code-in 0.35s var(--ease) both;
}

.otp-code {
  color: #fff9ee;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.otp-code.is-expired {
  opacity: 0.28;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-meta span + span::before {
  margin-right: 7px;
  color: #57584f;
  content: "/";
}

.result-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgb(243 240 231 / 14%);
}

.countdown {
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.countdown.is-urgent {
  color: #e8a28d;
}

.copy-button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgb(243 240 231 / 26%);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.copy-button:hover:not(:disabled) {
  border-color: var(--paper);
  background: rgb(243 240 231 / 6%);
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

/* Documentation */

.doc-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(56px, 8vw, 94px) 0;
  border-bottom: 1px solid var(--line);
}

.doc-section:first-of-type {
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--ink);
}

.doc-rail {
  align-self: start;
}

.doc-rail h2 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.doc-content {
  min-width: 0;
}

.doc-content > p {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

.doc-content > p + p {
  margin-top: 12px;
}

.endpoint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.method {
  padding: 4px 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.endpoint code {
  font-size: inherit;
}

.code-label {
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-block {
  margin-top: 9px;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ece8db;
}

.code-block code {
  color: inherit;
  font-size: 11.5px;
  line-height: 1.8;
  white-space: pre;
}

.params {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.params th {
  padding: 0 14px 9px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.params td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.65;
  vertical-align: top;
}

.params td:first-child {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.params td:last-child,
.params th:last-child {
  padding-right: 0;
}

.params code {
  padding: 1px 4px;
  background: rgb(23 24 18 / 5%);
  font-size: 10.5px;
}

.required {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.note {
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: rgb(255 253 248 / 60%);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.note strong {
  color: var(--ink);
  font-weight: 600;
}

.steps {
  margin-top: 26px;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0;
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  padding-top: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.steps h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.inline-code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.steps .code-block {
  margin-top: 13px;
}

.steps .code-label {
  margin-top: 16px;
}

/* Footer */

.site-footer {
  margin-top: clamp(70px, 9vw, 112px);
  padding: 30px 0 46px;
  border-top: 1px solid var(--line-strong);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* 404 */

.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding: clamp(60px, 10vw, 120px) 0;
}

.error-code {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 19vw, 14rem);
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.error-page h1 {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.error-page p {
  max-width: 32rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes code-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .eyebrow,
  .hero-copy > h1,
  .hero-copy > .hero-lede {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-copy > h1 {
    animation-delay: 0.07s;
  }

  .hero-copy > .hero-lede {
    animation-delay: 0.14s;
  }

  .hero-aside {
    animation: rise 0.8s 0.2s var(--ease) both;
  }

  .tool-heading-copy,
  .tool-heading > .spec-list {
    animation: rise 0.7s var(--ease) both;
  }

  .tool-heading > .spec-list {
    animation-delay: 0.08s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 10vw, 7rem);
  }

  .aside-index {
    font-size: 66px;
  }

  .tool-heading {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .result-body {
    min-height: 190px;
  }

  .otp-code {
    font-size: clamp(3.4rem, 9vw, 5rem);
  }

  .doc-section {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 40px), 1240px);
  }

  body::after {
    background-size: 72px 72px;
  }

  .header-inner {
    height: 70px;
  }

  .brand-sub {
    display: none;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(3.9rem, 17vw, 6.4rem);
  }

  .hero-aside {
    max-width: 360px;
  }

  .aside-facts {
    grid-template-columns: 1fr 1fr;
    gap: 11px 22px;
  }

  .aside-facts > div {
    display: block;
  }

  .aside-facts dd {
    margin-top: 3px;
    text-align: left;
  }

  .tool-card {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 18px;
    margin-inline: -12px;
    padding: 32px 12px;
  }

  .tool-index {
    display: none;
  }

  .tool-arrow {
    width: 48px;
    height: 48px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle:first-child {
    padding-top: 28px;
  }

  .tool-crumb {
    margin-bottom: 44px;
  }

  .tool-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tool-heading h1 {
    font-size: clamp(3.5rem, 15vw, 5.3rem);
  }

  .workbench {
    margin-top: 28px;
  }

  .panel {
    padding: 24px 20px;
  }

  .result-body {
    min-height: 170px;
  }

  .otp-code {
    font-size: clamp(2.8rem, 13.5vw, 4.6rem);
    letter-spacing: 0.05em;
  }

  .advanced-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .doc-section,
  .doc-section:first-of-type {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 0;
  }

  .doc-section:first-of-type {
    margin-top: 56px;
  }

  .doc-rail h2 {
    max-width: 16ch;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(calc(100% - 32px), 1240px);
  }

  .brand {
    font-size: 11px;
  }

  .nav {
    gap: 16px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 18vw, 4.6rem);
  }

  .hero-lede {
    font-size: 15px;
  }

  .tool-title-line h3 {
    font-size: 2.15rem;
  }

  .tool-route {
    display: none;
  }

  .result-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-button {
    align-self: stretch;
    padding-block: 11px;
  }

  .params {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .params td {
    white-space: normal;
  }
}
