:root {
  --bg: #0f1115;
  --panel: #161a21;
  --line: #262c36;
  --text: #e8e8ea;
  --muted: #9aa0a6;
  --accent: #7aa2ff;
  --accent-ink: #0b1020;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .35em;
}
pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 0 0 1rem;
}
pre code { background: none; border: 0; padding: 0; font-size: .88rem; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 1.25rem; }
section.wrap { padding-top: 3rem; padding-bottom: 1rem; }
section[id] { scroll-margin-top: 64px; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
p { margin: 0 0 1rem; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 17, 21, .92);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 1rem; }
.brand { color: var(--text); font-weight: 700; }
.brand span { color: var(--muted); font-weight: 400; }
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--text); text-decoration: none; }

/* hero */
.hero { padding: 4.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.hero-art { display: block; width: 100%; height: auto; margin: .5rem 0 2rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 720px; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.facts li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; color: var(--muted); font-size: .92rem;
}
.facts strong { color: var(--text); }

/* actor tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.tile {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.1rem 1.2rem; color: var(--text);
}
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile h3 { margin: 0 0 .4rem; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }

/* steps */
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .6rem; }

/* one actor */
.actor { border-top: 1px solid var(--line); margin-top: 2rem; }
.actor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.actor-head p { color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--accent) !important; margin: 0 0 .3rem; }
.button {
  flex-shrink: 0; display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; border-radius: 8px; padding: .6rem 1.1rem; margin-top: 1.6rem;
}
.button:hover { text-decoration: none; filter: brightness(1.1); }

/* tables */
.table { overflow-x: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td:first-child { white-space: nowrap; }
td:last-child { color: var(--muted); }

.note { color: var(--muted); font-size: .92rem; }

/* faq */
details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: .8rem 1.1rem; margin-bottom: .7rem;
}
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: .7rem 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 640px) {
  .actor-head { flex-direction: column; gap: 0; }
  .button { margin-top: 0; margin-bottom: 1rem; }
  nav { gap: .8rem; }
  nav a { font-size: .88rem; }
  .nav { height: auto; padding-top: .6rem; padding-bottom: .6rem; flex-direction: column; align-items: flex-start; gap: .3rem; }
}
