/* FireSuiren — static developer site (editorial layout: dark rail sidebar + light stage) */
:root {
  --ink: #14201e;
  --ink-2: #1c2b28;
  --paper: #f7f5f1;
  --surface: #ffffff;
  --text: #1b2624;
  --muted: #64716d;
  --line: #e3ded4;
  --ember: #c9502e;
  --gold: #d9a441;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.7 Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.sans {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--ink);
  color: #dfe7e4;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}

.side .brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.side .brand img { width: 52px; height: 52px; border-radius: 14px; }

.side .brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.2px;
}

.side .brand span span {
  display: block;
  font-size: 13px;
  color: #93a29d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
}

.side-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: #b9c6c1;
  border-left: 2px solid transparent;
}

.side-nav a:hover {
  background: var(--ink-2);
  color: #fff;
  border-left-color: var(--ember);
}

.side-stats {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #93a29d;
  border-top: 1px solid #2b3a37;
  padding-top: 18px;
}

.side-stats b {
  display: block;
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--gold);
  font-weight: 400;
}

.side-stats div + div { margin-top: 14px; }

.side-foot {
  margin-top: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #6f807b;
}

.side-foot a { color: #93a29d; }

/* ---------- main ---------- */
.main { min-width: 0; }

section {
  padding: 54px 6vw;
  border-bottom: 1px solid var(--line);
}

main[id], section[id] { scroll-margin-top: 12px; }

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: 0 0 10px;
}

.section-sub { color: var(--muted); margin: 0 0 30px; max-width: 58ch; }

/* ---------- stage ---------- */
.stage {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stage::-webkit-scrollbar { display: none; }

.act {
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-width: 0;
}

.act-art {
  position: relative;
  padding: 14px 0 22px 14px;
  min-width: 0;
}

.act-art img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(20, 32, 30, .14);
}

.act-art .under {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  transform: rotate(-5deg);
  opacity: .9;
  z-index: 0;
}

.act-art .over {
  position: relative;
  z-index: 1;
  margin-left: 26px;
}

.kicker {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 12px;
}

.act h1, .act .act-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 12px;
}

.act .lede {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 42ch;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
}

.facts span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--muted);
}

.facts b { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover { background: var(--ember); }

.btn::before {
  content: "";
  width: 0; height: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn.ghost::before { display: none; }

.btn.ghost:hover { background: var(--surface); color: var(--text); }

/* ---------- icon rail (carousel selector) ---------- */
.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 6vw 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.rail button {
  flex: 0 0 auto;
  width: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity .18s, border-color .18s, transform .18s;
}

.rail button img { width: 100%; border-radius: 12px; }

.rail button:hover { opacity: 1; transform: translateY(-2px); }

.rail button[aria-current="true"] {
  opacity: 1;
  border-color: var(--ember);
}

.rail-hint {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 6vw 0;
}

/* ---------- directory list ---------- */
.dir { border-top: 1px solid var(--line); }

.dir a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.dir a:hover { background: var(--surface); }

.dir img { width: 44px; height: 44px; border-radius: 12px; }

.dir .who { min-width: 0; }

.dir .who span { font-size: 17px; }

.dir .who small {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dir .rate {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.dir .go {
  font-family: -apple-system, sans-serif;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- about ---------- */
.prose { max-width: 62ch; }

dl {
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 6px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

dt { color: var(--muted); }

dd { margin: 0; word-break: break-word; }

/* ---------- legal ---------- */
.legal h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; margin: 0 0 10px; }

.legal h2 { margin-top: 34px; font-size: 20px; }

.legal p, .legal li { color: #3c4a46; max-width: 72ch; }

.legal ul { padding-left: 22px; }

.legal .updated { color: var(--ember); font-size: 14px; }

/* ---------- responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  html, .stage { scroll-behavior: auto; }
}

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

  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    padding: 16px 20px;
  }

  .side .brand { flex-direction: row; align-items: center; gap: 10px; }

  .side .brand img { width: 36px; height: 36px; }

  .side .brand strong { font-size: 19px; }

  .side .brand span span { display: none; }

  .side-nav { flex-direction: row; gap: 4px; font-size: 14px; }

  .side-nav a {
    padding: 6px 10px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .side-nav a:hover { border-left-color: transparent; border-bottom-color: var(--ember); }

  .side-stats, .side-foot { display: none; }

  section { padding: 40px 22px; }

  .rail { padding: 16px 22px 0; }

  .rail-hint { margin: 10px 22px 0; }

  .act { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .act-art { max-width: 300px; margin: 0 auto; }

  dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }

  dl dt { margin-top: 14px; }
}
