:root {
  color-scheme: light;
  --paper: #edf3f8;
  --panel: #ffffff;
  --ink: #18334b;
  --muted: #4b647a;
  --line: #c6d6e3;
  --accent: #17618b;
  --signal: #a74b18;
  --ok: #136f46;
  --code-bg: #0f1f2e;
  --code-ink: #e6eff7;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 0.62rem 1rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
button:hover, .button:hover { filter: brightness(0.92); }
.secondary { background: var(--panel); color: var(--accent); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
header, main, footer { width: min(1240px, 100% - 3rem); margin-inline: auto; }
header {
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
header a { text-decoration: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--ink);
}
.brand img { width: 44px; height: 44px; border-radius: 8px; }
nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; }
h1, h2, h3 { line-height: 1.15; }
h1, h2 {
  font-family: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 0.5rem 0 1rem; max-width: 820px; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
p { max-width: 78ch; margin: 0 0 1rem; }
.eyebrow, .tag, code, pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 650;
}
.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
}
.hero p { color: var(--muted); font-size: 1.08rem; }
.hero-aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem;
}
.url-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  margin-bottom: 0.75rem;
}
.url-card:last-child { margin-bottom: 0; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}
.badge-allow { background: #d8f3e5; color: var(--ok); }
.badge-scramble { background: #fbe5d8; color: var(--signal); }
.url-card code { display: block; font-size: 0.82rem; word-break: break-all; margin: 0.2rem 0 0.4rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }
section { padding: 2.6rem 0; border-top: 1px solid var(--line); }
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pane-header {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #f7fafc;
}
.pane-header strong { font-size: 0.96rem; }
.pane-body { padding: 1.1rem; flex: 1; }
iframe.preview-frame {
  width: 100%;
  height: 560px;
  border: 0;
  background: #fff;
}
pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 1rem 1.15rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0.6rem 0 1rem;
}
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem;
}
.table-wrap { overflow-x: auto; margin-top: 1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}
th, td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
th { background: #f2f7fb; font-weight: 650; }
footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 920px) {
  .hero, .split-grid, .cmd-grid { grid-template-columns: 1fr; }
}
