﻿:root {
  color-scheme: dark;
  --background: #141716;
  --surface: #1b201e;
  --surface-raised: #242b26;
  --line: #343c36;
  --text: #eeede6;
  --muted: #a5ada7;
  --accent: #d5b98c;
  --accent-hover: #e4cda7;
  --error: #edaaa4;
  --success: #8dc6a3;
  --content-width: 1112px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(40px, 5vw, 62px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin: 0 0 10px; font-size: 29px; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }
code, pre { font-family: Consolas, "Courier New", monospace; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--background); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--background); }
.nav { width: min(calc(100% - 48px), var(--content-width)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); font-size: 13px; }
.nav-links a:hover { color: var(--accent); }
.nav-menu { display: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--text); font-size: 12px; }

main { width: min(calc(100% - 48px), var(--content-width)); margin: auto; }
.intro-section { display: grid; grid-template-columns: 1.3fr .8fr; align-items: center; gap: 64px; padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.intro-copy, .route-preview, .converter-card, .instructions, .example, .service-details > * { min-width: 0; }
.kicker { margin-bottom: 18px; color: var(--accent); font-size: 13px; }
.page-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.page-title-row img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.lede { max-width: 580px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.route-preview { padding-left: 28px; border-left: 1px solid var(--line); }
.route-preview p { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.route-preview code { display: block; font-size: 12px; overflow-wrap: anywhere; }
.route-preview span { display: block; margin: 8px 0; color: var(--accent); }
.route-preview code:last-child { color: var(--accent); }

.workspace { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 28px; }
.section-heading p, .example-heading p { color: var(--muted); font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 600; }
.field-help { margin: 5px 0 12px; color: var(--muted); font-size: 13px; }
.input-row { display: block; }
input { min-width: 0; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #4c574d; border-radius: 4px; background: #111512; color: var(--text); font-size: 14px; }
input::placeholder { color: var(--muted); opacity: .8; }
input:focus { border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--error); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.4; transition: background .15s, border-color .15s; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #1b201e; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { background: transparent; color: var(--text); }
.button.secondary:hover { background: var(--surface-raised); border-color: #59634f; }
.message { margin-top: 16px; padding: 12px 14px; border: 1px solid; border-radius: 4px; font-size: 14px; }
.message.error { background: #2c1e1d; border-color: #704b46; color: var(--error); }
.result { margin-top: 24px; padding: 18px; border: 1px solid #415d48; border-radius: 5px; background: #202e24; }
.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--success); font-size: 14px; font-weight: 600; }
.result-url-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.result-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.result-url { min-height: 44px; border-color: #415d48; background: var(--background); font-family: Consolas, "Courier New", monospace; font-size: 13px; cursor: text; }
.result-copy-row .button { min-height: 44px; }
.instructions { padding-left: 36px; border-left: 1px solid var(--line); }
.steps { margin: 20px 0 0; padding-left: 20px; }
.steps li { padding: 0 0 20px 8px; }
.steps li::marker { color: var(--accent); font-size: 13px; }
.steps strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.steps span { display: block; color: var(--muted); font-size: 14px; }
.credential-note { padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.credential-note strong { color: var(--accent); font-weight: 600; }
.credential-note p { margin-top: 6px; color: var(--muted); }

.example { padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.example-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.example-heading .button { flex-shrink: 0; }
pre { max-width: 100%; margin: 0; padding: 24px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; background: #111512; color: var(--text); font-size: 13px; line-height: 1.75; tab-size: 4; }
.service-details { display: grid; grid-template-columns: .65fr 1fr; gap: 48px; padding: 36px 0 48px; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dl > div:first-child { padding-top: 0; }
dl > div:last-child { border-bottom: 0; }
dt { font-size: 13px; font-weight: 600; }
dd { margin: 0; color: var(--muted); font-size: 14px; }
.health-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--muted); }
.health-dot.online { background: var(--success); }
.health-dot.offline { background: var(--error); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(24px, calc((100% - var(--content-width)) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer div { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .intro-section, .workspace { gap: 32px; }
  .instructions { padding-left: 28px; }
}
@media (max-width: 800px) {
  .nav { width: calc(100% - 32px); min-height: 62px; flex-wrap: wrap; gap: 0 12px; }
  .nav-menu { display: block; }
  .nav-links { display: grid; width: 100%; gap: 0; padding: 8px 0 16px; }
  .nav-links a { padding: 10px 0; }
  .nav[data-nav-ready] .nav-links { display: none; }
  .nav[data-nav-ready].nav-open .nav-links { display: grid; }
  main { width: calc(100% - 40px); }
  .intro-section, .workspace, .service-details { grid-template-columns: 1fr; }
  .intro-section { padding: 36px 0 30px; gap: 28px; }
  .route-preview { padding-left: 18px; }
  .workspace { padding: 30px 0; gap: 32px; }
  .instructions { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .service-details { gap: 16px; padding-bottom: 36px; }
}
@media (max-width: 480px) {
  .brand { gap: 8px; font-size: 14px; }
  .page-title-row { gap: 14px; }
  .page-title-row img { width: 44px; height: 44px; }
  h1 { font-size: 40px; }
  .lede { font-size: 16px; }
  .result-copy-row { grid-template-columns: 1fr; }
  .result-copy-row .button { width: 100%; }
  .example-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  dl > div { grid-template-columns: 1fr; gap: 6px; }
  pre { padding: 16px; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
