:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #521000;
  background: #fffbf5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1200px, 100%); margin: 0 auto; padding: 48px 32px 24px; }
header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 500; letter-spacing: -.04em; margin: 0; }
h1 span { color: #ff4801; }
p { margin: 0; }
.repo-link, .console-bar, .connection, code, input, button, #terminal { font-family: "SF Mono", Consolas, "Liberation Mono", monospace; }
.repo-link { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; color: #521000; text-decoration: none; font-size: 13px; margin-bottom: 20px; }
.repo-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro { margin-top: 12px; color: #865c4d; }
.connection { display: flex; align-items: center; gap: 16px; font-size: 13px; flex-shrink: 0; }
#status::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #865c4d; border-radius: 50%; margin-right: 8px; }
#status[data-connected="true"]::before { background: #ff4801; }
button { min-height: 40px; border: 1px solid #521000; background: #521000; color: #fffbf5; padding: 10px 20px; border-radius: 9999px; font-size: 13px; cursor: pointer; }
button:hover:not(:disabled) { border-style: dashed; background: #71311d; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid #521000; outline-offset: 4px; }
.console { position: relative; border: 1px solid #ebd5c1; border-radius: 12px; background: #fffdfb; }
.corner { position: absolute; width: 8px; height: 8px; border: 1px solid #ebd5c1; border-radius: 1.5px; background: #fffbf5; pointer-events: none; }
.tl { top: -4px; left: -4px; } .tr { top: -4px; right: -4px; }
.bl { bottom: -4px; left: -4px; } .br { bottom: -4px; right: -4px; }
.console-bar { display: flex; justify-content: space-between; padding: 16px 24px; border-bottom: 1px dashed #ebd5c1; font-size: 11px; letter-spacing: .08em; color: #865c4d; }
#terminal { position: relative; height: clamp(280px, 60dvh, 680px); margin: 24px; overflow: hidden; font-size: 14px; cursor: text; }
#terminal:focus-within { outline: 2px solid #521000; outline-offset: 4px; }
#terminal-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; resize: none; font-size: 16px; }
.notice { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #521000; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { display: inline-block; color: #521000; padding: 12px; }
noscript { display: block; margin-top: 24px; }
@media (max-width: 640px) {
  main { padding: 24px 12px; }
  header { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 24px; }
  .connection { justify-content: space-between; }
  .console-bar { padding: 12px; }
  #terminal { margin: 12px; height: 55dvh; min-height: 280px; }
}
