/* TITC blog: shared article + interactive-demo styles (used by *-animation.html) */
:root {
  --bg: #05060a;
  --panel: #0c0e15;
  --text: #ece8df;
  --muted: #9a978f;
  --line: #23262f;
  --accent: #F8D01C;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 56px 20px 96px; }
.eyebrow {
  font-family: "DotGothic16", monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin: 0 0 12px;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.4;
}
.lead {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin: 0 0 24px;
  font-size: 15px;
}
h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 15px; font-weight: 500; margin: 28px 0 10px; color: var(--accent); }
p, li { font-size: 15px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 8px; }
a { color: var(--accent); }
.contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin-top: 16px;
}
footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
@media (max-width: 600px) {
  .wrap { padding: 40px 16px 72px; }
  h1 { font-size: 23px; }
}

.crumb { font-family: "DotGothic16", monospace; font-size: 12px; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 22px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.sub { display: block; font-size: 16px; font-weight: 400; color: var(--muted); margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 40px; }
.box { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 20px 22px; margin: 16px 0 32px; }
.box ul { margin: 0; }
.box li:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--text); }
.btn { display: inline-block; padding: 10px 18px; margin: 6px 12px 6px 0; border: 2px solid var(--accent); color: var(--accent); background: transparent; font-size: 14px; text-decoration: none; }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn:focus-visible { background: var(--accent); color: var(--bg); outline: 2px solid var(--text); outline-offset: 2px; }
.author { display: flex; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 22px; margin-top: 56px; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author .name { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.author .role { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.author .bio { font-size: 13px; color: var(--text); margin: 8px 0 0; line-height: 1.8; }
@media (max-width: 600px) {
  .sub { font-size: 14px; }
  .author { flex-direction: column; align-items: flex-start; }
  .btn { display: block; text-align: center; margin: 8px 0; }
}


/* ---- demo widgets ---- */
.demo { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 16px; margin: 20px 0 32px; }
.demo canvas { display: block; width: 100%; background: #07080e; border: 1px solid var(--line); touch-action: manipulation; }
.ctrls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ctrls button, .ctrls select { min-height: 44px; font: inherit; font-size: 14px; font-weight: 400; color: var(--text); background: var(--bg); border: 2px solid var(--line); padding: 6px 12px; border-radius: 0; }
.ctrls button { cursor: pointer; border-color: var(--accent); color: var(--accent); }
.ctrls button:hover:not(:disabled) { background: var(--accent); color: var(--bg); }
.ctrls button:disabled { opacity: .4; cursor: default; }
.ctrls button:focus-visible, .ctrls select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ctrls label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); font-family: "DotGothic16", monospace; letter-spacing: .05em; line-height: 1.4; }
.ctrls label select { margin-top: 2px; }
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 0; align-items: start; }
.status .stat { font-size: 13px; line-height: 1.7; }
.status .stat b { color: var(--accent); font-weight: 500; }
#phase { min-height: 3.4em; color: var(--text); font-size: 14px; }
#done { color: var(--accent); font-weight: 500; }
.cap { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
.steps { counter-reset: st; list-style: none; padding: 0; }
.steps li { counter-increment: st; padding-left: 40px; position: relative; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; line-height: 28px; text-align: center; font-family: "DotGothic16", monospace; background: var(--accent); color: var(--bg); }
.related { list-style: none; padding-left: 0; }
@media (max-width: 600px) {
  .status { grid-template-columns: 1fr; }
  .demo { padding: 12px; }
  .ctrls button { flex: 1 1 45%; }
  .ctrls label { flex: 1 1 45%; }
  .ctrls select { width: 100%; }
}
