:root {
  color-scheme: dark;
  --bg: #101317;
  --panel: #171c22;
  --line: #343d47;
  --text: #f5f6f2;
  --muted: #b8c2c9;
  --mint: #98f2c6;
  font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .3em; }
p { line-height: 1.85; color: var(--muted); margin: 0; }
button, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
header, .lesson, .faq { border-bottom: 1px solid var(--line); }
.bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #49735f; border-radius: 8px; color: var(--mint); background: #20382e; font: 700 1.125rem monospace; }
nav { display: flex; gap: clamp(12px, 3vw, 30px); font-size: .875rem; }
nav a, footer > a:last-child { color: var(--muted); text-decoration: none; }
nav a:hover, footer > a:last-child:hover { color: var(--mint); }
.hero { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(28px, 7vw, 96px); padding-block: clamp(52px, 8vw, 112px); }
.eyebrow { font: 700 .875rem/1.4 monospace; letter-spacing: .13em; color: var(--mint); margin-bottom: 18px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: clamp(3.15rem, 7.6vw, 6.5rem); letter-spacing: -.08em; line-height: .99; }
h1 span { color: var(--mint); font-family: system-ui, sans-serif; }
.intro { margin-top: 24px; max-width: 28em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); text-decoration: none; font-weight: 700; cursor: pointer; }
.button:hover { border-color: var(--mint); }
.primary { background: var(--mint); border-color: var(--mint); color: #102218; }
.primary:hover { background: #bdf9db; }
.terminal { margin: 0; background: radial-gradient(ellipse at top right, #20342e, transparent 65%), var(--panel); border: 1px solid #3b524a; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 52px #0005; }
figcaption { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid #3b524a; color: var(--muted); font-size: .875rem; }
.lamp { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; }
.terminal-body { padding: clamp(16px, 3vw, 29px); }
.speaker { display: block; color: var(--mint); font-size: .875rem; font-weight: 700; margin-bottom: 8px; }
.message { color: var(--text); margin-bottom: 22px; }
.diff { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 1.6; }
.diff > * { display: block; padding: 7px 12px; }
.filename { font: .875rem/1.5 monospace; background: #11161a; }
.minus { color: #ffc0bd; background: #39252a; }
.plus { color: #b6f4d1; background: #20382e; }
.lesson, .faq { background: #14191e; border-top: 1px solid var(--line); }
.lesson, .content { padding-block: clamp(42px, 6vw, 78px); }
h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); letter-spacing: -.04em; }
h3 { font-size: 1.18rem; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 30px 0 0; padding: 0; }
.steps li, .prompt-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: clamp(16px, 2.5vw, 26px); }
.number { display: block; font: 700 .875rem monospace; color: var(--mint); margin-bottom: 16px; }
.content { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 72px); }
.content h2 + p { margin-top: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
legend { margin-bottom: 8px; color: var(--muted); font-size: .875rem; }
input { accent-color: var(--mint); }
textarea { display: block; width: 100%; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; line-height: 1.7; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
#status { color: var(--mint); font-size: .875rem; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 10px; }
details a { color: var(--mint); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero, .content, .steps { grid-template-columns: 1fr; }
  .desktop { display: none; }
}
@media (max-width: 430px) {
  header .bar { padding-block: 14px; flex-wrap: wrap; }
}
