:root {
  color-scheme: dark;
  --graphite: #14181f;
  --surface: #1c222b;
  --surface-strong: #242c36;
  --text: #d8dde4;
  --muted: #9aa4b1;
  --white: #ffffff;
  --mint: #74e2be;
  --signal: #ed5c5c;
  --line: #333d49;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--graphite);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #10141a 0, var(--graphite) 28rem),
    var(--graphite);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--mint);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 40px), 780px);
  margin-inline: auto;
}

.site-header {
  padding: 32px 0 50px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.record-mark {
  width: 12px;
  height: 12px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(237 92 92 / 12%);
}

.language-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

.language-link:hover {
  border-color: var(--mint);
  color: var(--white);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  margin-bottom: 26px;
}

.waveform span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--mint);
}

.waveform span:nth-child(1),
.waveform span:nth-child(9) { height: 8px; opacity: 0.35; }
.waveform span:nth-child(2),
.waveform span:nth-child(8) { height: 16px; opacity: 0.5; }
.waveform span:nth-child(3),
.waveform span:nth-child(7) { height: 25px; opacity: 0.7; }
.waveform span:nth-child(4),
.waveform span:nth-child(6) { height: 34px; opacity: 0.9; }
.waveform span:nth-child(5) { height: 20px; }

h1,
h2,
h3 {
  color: var(--white);
  line-height: 1.3;
}

h1 {
  max-width: 660px;
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 7vw, 4rem);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  padding-bottom: 72px;
}

.summary {
  margin: 0 0 60px;
  padding: 22px 24px;
  border-left: 3px solid var(--mint);
  background: var(--surface);
}

.summary p {
  margin: 0;
}

section {
  padding: 36px 0 38px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.04rem;
}

p,
ul {
  max-width: 72ch;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 12px 0 18px;
  padding-left: 1.35em;
}

li {
  margin-bottom: 8px;
  padding-left: 0.22em;
}

li::marker {
  color: var(--mint);
}

.data-list {
  margin: 22px 0 8px;
  border-top: 1px solid var(--line);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(0, 2fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.data-row dt {
  color: var(--white);
  font-weight: 650;
}

.data-row dd {
  margin: 0;
  color: var(--muted);
}

.operator {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.operator p:last-child,
section > :last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 24px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 580px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 32px), 780px);
  }

  .site-header {
    padding-top: 22px;
  }

  .topbar {
    margin-bottom: 52px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media print {
  :root { color-scheme: light; }
  body { color: #222; background: #fff; }
  .site-header, main, .site-footer { width: 100%; }
  .topbar { margin-bottom: 40px; }
  .language-link { display: none; }
  h1, h2, h3, .brand, .data-row dt { color: #000; }
  .lede, .meta, .data-row dd, .site-footer { color: #444; }
  section, .data-list, .data-row, .site-footer { border-color: #bbb; }
  .summary, .operator { background: #f5f5f5; border-color: #bbb; }
  a { color: #075c48; }
}
