:root {
  color-scheme:dark;
  --bg:#191e1b;
  --cream:#dad7c7;
  --ink:#494b41;
  --green:#a9ee91;
  --screen-bg:#14231a;
  --screen-ink:#a9ee91;
  --muted:#929b90
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--bg);
  color:var(--cream);
  font-family:'Courier New',Courier,monospace;
  -webkit-font-smoothing:antialiased
}

body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background-image:linear-gradient(#b9c7b005 1px,transparent 1px),linear-gradient(90deg,#b9c7b005 1px,transparent 1px);
  background-size:36px 36px;
  pointer-events:none
}

button,input {
  font:inherit
}

button,a,input {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:focus-visible,a:focus-visible {
  outline:2px solid var(--green);
  outline-offset:5px
}

.page {
  max-width:1200px;
  min-height:100svh;
  margin:auto;
  padding:48px;
  display:grid;
  align-items:center;
}

.computer {
  max-width:820px;
  margin:auto;
  padding:0 28px;
  border:1px solid #eae8d3;
  border-radius:17px;
  background:linear-gradient(135deg,#e5e2d2,#c9c6b6);
  box-shadow:0 24px 70px #0005,inset 0 2px 1px #fff8,inset 0 -5px 0 #a9a798;
  color:var(--ink)
}

.computer-top {
  height:38px;
  display:flex;
  align-items:center;
}

.model-mark {
  font-size:21px;
  line-height:1
}

.bezel {
  padding:15px;
  background:#7d8174;
  border-radius:12px;
  box-shadow:inset 0 3px 8px #0006,0 1px 0 #fff9
}

.screen {
  position:relative;
  overflow:hidden;
  min-height:380px;
  display:flex;
  flex-direction:column;
  border:2px solid #0e1610;
  border-radius:9px;
  padding:24px 27px 20px;
  color:var(--screen-ink);
  background:radial-gradient(ellipse at 45% 40%,#ffffff04,transparent 80%),var(--screen-bg);
  box-shadow:inset 0 0 40px #0008;
  text-shadow:0 0 10px color-mix(in srgb,var(--screen-ink) 22%,transparent)
}

.screen::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:repeating-linear-gradient(transparent 0 2px,#0002 2px 3px);
  opacity:.5
}

.greeting {
  position:relative;
  flex:1;
  display:flex;
  align-items:center;
  padding:24px 0;
}

h1 {
  font-size:clamp(48px,6.5vw,78px);
  line-height:.98;
  letter-spacing:-5px;
  margin:0;
  font-weight:bold;
}

.punctuation {
  margin-left:3px
}

.cursor {
  font-weight:normal;
  font-size:.85em;
  margin-left:6px;
  animation:blink 1.2s steps(1,end) infinite
}

.ascii-flower {
  position:absolute;
  right:15px;
  top:50%;
  width:92px;
  transform:translateY(-50%) rotate(-7deg);
  opacity:.9;
}

.ascii-flower svg {
  width:100%;
  image-rendering:pixelated
}

.terminal-output {
  font-size:9px;
  letter-spacing:.4px;
  line-height:1.6;
  min-height:15px;
  margin:4px 0 11px;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.command-line {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid color-mix(in srgb,var(--screen-ink) 20%,transparent);
  padding-top:11px
}

.command-line label {
  font-size:17px
}

.command-line input {
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--screen-ink);
  font-size:12px;
  caret-color:var(--screen-ink)
}

.command-line:focus-within {
  border-top-color:var(--screen-ink)
}

.command-line input::placeholder {
  color:var(--screen-ink);
  opacity:.5
}

.command-line button {
  border:1px solid color-mix(in srgb,var(--screen-ink) 25%,transparent);
  border-radius:3px;
  background:transparent;
  color:var(--screen-ink);
  padding:0 7px;
  font-size:17px
}

.command-line button:hover {
  background:#ffffff0d
}

.computer-controls {
  height:73px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}

.power-status {
  display:flex;
  align-items:center;
  gap:8px;
}

.power-led {
  width:5px;
  height:5px;
  background:#5f8851;
  box-shadow:0 0 4px #8aad67
}

.vents {
  width:85px;
  height:16px;
  margin-left:20px;
  background:repeating-linear-gradient(90deg,#797d6e 0 2px,transparent 2px 6px);
  opacity:.65
}

.controls {
  display:flex;
  gap:12px
}

.controls button {
  font-size:9px;
  letter-spacing:.5px;
  color:var(--ink);
  background:transparent;
  border:0;
  padding:10px 12px;
  border-radius:4px
}

.controls button span {
  margin-right:5px
}

.controls button:hover {
  background:#00000009
}

.controls .run-button {
  background:#e8e5d8;
  border:1px solid #b1b3a3;
  box-shadow:0 3px 0 #a3a595,inset 0 1px #fff9
}

.controls .run-button:hover {
  background:#f3f0e3
}

.controls .run-button:active {
  transform:translateY(2px);
  box-shadow:0 1px 0 #a3a595
}

.controls button:focus-visible {
  outline-color:#313d2d
}

.computer-foot {
  width:240px;
  height:12px;
  margin:auto;
  background:linear-gradient(#95998a,#a8ab9b);
  border-radius:0 0 4px 4px;
  box-shadow:0 10px 12px #0004
}

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

.amber {
  --screen-ink:#ffc16c;
  --screen-bg:#2b2115
}

@keyframes blink {
  50% {
    opacity:0
  }
}

@media(prefers-reduced-motion:reduce) {
  .cursor {
    animation:none
  }
}

main {
  width:100%;
}

@media(max-width:700px) {
  .page { padding:32px 20px; }
  .computer { padding:0 15px; border-radius:12px; }
  .computer-top { height:32px; }
  .bezel { padding:10px; }
  .screen { padding:18px 16px; min-height:330px; }
  h1 { font-size:62px; letter-spacing:-4px; }
  .ascii-flower { width:45px; right:0; }
  .computer-controls { height:65px; }
  .controls { gap:6px; }
  .controls button { font-size:10px; }
  .computer-foot { width:170px; }
}

@media(max-width:370px) {
  .page { padding:24px 12px; }
  .computer { padding:0 12px; }
  .screen { padding-left:12px; padding-right:12px; }
  h1 { font-size:55px; }
  .ascii-flower { width:32px; }
}

