/* silk.spidertaz.com (SILK Developer Program, November 11, 2026). Day/night from the visitor's setting. */
:root {
  --bg: #070a11;
  --panel: #0f1622;
  --panel-2: #131c2b;
  --line: #24344a;
  --text: #f4f7fb;
  --muted: #a9b5c6;
  --accent: #61d8ff;
  --accent-ink: #04121a;
  --thread: #dfe9ff;
  --ok: #6ee7a8;
  --bad: #ff8a8a;
  --code: #0a1019;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f6fb; --panel: #ffffff; --panel-2: #f7f9fd; --line: #d4dceb; --text: #0c1320; --muted: #4b5a70;
    --accent: #0a7cc4; --accent-ink: #ffffff; --thread: #6b7f9e; --ok: #11804c; --bad: #b42323; --code: #eef2f8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%), var(--bg);
  color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.top {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 85%, transparent);
  position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand strong { letter-spacing: .08em; }
.top nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-left: auto; }
.network-controls { display: flex; align-items: center; min-width: 0; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a[aria-current="page"], .top nav a:hover { color: var(--text); }
.top form { margin: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.btn {
  display: inline-block; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .92rem; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.inline { display: inline; margin: 0; }
.hero { padding: 28px 0 8px; }
.hero-thread { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.hero-thread svg { width: 200px; height: 40px; overflow: visible; }
.hero-thread path { fill: none; stroke: var(--thread); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 230; stroke-dashoffset: 230; animation: spin 1.4s .2s ease-out forwards; }
.node { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 20%, var(--panel)); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.node-st { background: var(--panel); }
.steps ol { padding-left: 1.2rem; display: grid; gap: 10px; max-width: 46rem; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card h3 { margin: 0 0 6px; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.panel { margin: 18px 0; }
.panel h2:first-child { margin-top: 0; }
.tag { display: inline-block; margin: 6px 0 0; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tag-live { border-color: var(--ok); color: var(--ok); }
.tag-bad { border-color: var(--bad); color: var(--bad); }
.promise { border-left: 3px solid var(--ok); padding-left: 14px; margin-top: 28px; }
.note { padding: 10px 14px; border-radius: 12px; background: var(--panel); }
.note-ok { border: 1px solid var(--ok); }
.note-bad { border: 1px solid var(--bad); }
.foot { border-top: 1px solid var(--line); padding: 20px 16px 32px; text-align: center; color: var(--muted); font-size: .92rem; }
.app-list, .rows, .todo { list-style: none; padding: 0; margin: 10px 0; }
.app-list li, .rows li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.todo li { padding: 6px 0 6px 22px; position: relative; }
.todo li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); }
.crumb { margin: 0; font-size: .92rem; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tabs a { flex: none; padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.form { display: grid; gap: 8px; max-width: 40rem; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-row label { width: 100%; font-weight: 600; }
.form-row input { flex: 1; min-width: 200px; }
label { font-weight: 600; }
input, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit;
}
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; padding: 4px 0; }
.check input { width: auto; min-height: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
code { background: var(--code); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.copy { user-select: all; }
.secret-once { border: 1px solid var(--ok); border-radius: 12px; padding: 12px 14px; }
.docs table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; display: block; overflow-x: auto; }
.docs th, .docs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.toc { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 6px; }
.flow { display: grid; gap: 14px; padding-left: 1.2rem; }
@keyframes spin { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-thread path { animation: none; stroke-dashoffset: 0; }
  .card, .card:hover { transition: none; transform: none; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { margin-top: 6px; }
}
