:root {
  color-scheme: dark;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --charcoal: #101214;
  --surface: #171b1f;
  --raised: #20252a;
  --rule: #30363d;
  --cream: #e7e5df;
  --titanium: #aeb6be;
  --gold: #c6a467;
  --gold-bright: #e6c687;
  color: var(--cream);
  background: var(--charcoal);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(16px, 5vw, 72px);
  background: radial-gradient(ellipse at 52% 33%, #292d33 0%, var(--surface) 43%, var(--charcoal) 76%);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  inset: 55% -32% -23%;
  background: linear-gradient(90deg, #646c7355 1px, transparent 1px),
    linear-gradient(#646c7355 1px, transparent 1px);
  background-size: 64px 45px;
  transform: perspective(26rem) rotateX(63deg);
  transform-origin: center top;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 8%, #0000 72%);
}

.terminal {
  width: min(100%, 61rem);
}

.bezel {
  position: relative;
  padding: clamp(12px, 2.7vw, 28px);
  border: 1px solid #434b53;
  border-top-color: #646f77;
  border-radius: 21px 21px 14px 14px;
  background: repeating-linear-gradient(0deg, #e7e5df05 0 1px, transparent 1px 3px),
    linear-gradient(158deg, #41494f, #2a3035 24%, var(--raised) 61%, #191d21 88%, #2c343a);
  box-shadow: inset 0 1px #ffffff19, inset 0 -3px #0006,
    0 7px 0 #181c20, 0 13px 0 #111417, 0 17px 0 #0b0c0e, 0 36px 55px #0009;
}

.screen {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 4vw, 47px);
  border: 2px solid #111315;
  border-radius: 13px;
  background: radial-gradient(ellipse at 24% 31%, #232625 0%, var(--surface) 44%, var(--charcoal) 96%);
  box-shadow: 0 0 0 1px #000d, 0 1px 0 2px #ffffff19, inset 0 0 43px #000c;
}

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

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .82em;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: .24em;
}

.wordmark::before {
  content: "";
  width: .75em;
  height: .75em;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px #171b1f;
  background: var(--gold-bright);
  transform: rotate(45deg);
}

.workspace {
  color: var(--titanium);
  font-size: .84rem;
  line-height: 1.4;
}

.screen-body {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4.5vw, 66px);
  min-height: 24rem;
  padding: clamp(24px, 4.7vw, 48px) 0 0;
}

.scope {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  min-height: clamp(16rem, 30vw, 21rem);
  isolation: isolate;
  background: radial-gradient(ellipse at 47% 46%, #c6a46725 1%, #c6a4670d 42%, transparent 73%);
}

.scope::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #8f949b3d 1px, transparent 1px),
    linear-gradient(#8f949b3d 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse, #000 14%, #0000 77%);
}

.scope::after {
  --corner: #bb9b6390;
  content: "";
  position: absolute;
  inset: 7%;
  z-index: -1;
  background:
    linear-gradient(var(--corner), var(--corner)) top left / 18px 1px,
    linear-gradient(var(--corner), var(--corner)) top left / 1px 18px,
    linear-gradient(var(--corner), var(--corner)) top right / 18px 1px,
    linear-gradient(var(--corner), var(--corner)) top right / 1px 18px,
    linear-gradient(var(--corner), var(--corner)) bottom left / 18px 1px,
    linear-gradient(var(--corner), var(--corner)) bottom left / 1px 18px,
    linear-gradient(var(--corner), var(--corner)) bottom right / 18px 1px,
    linear-gradient(var(--corner), var(--corner)) bottom right / 1px 18px;
  background-repeat: no-repeat;
}

.mask {
  width: clamp(124px, 19vw, 177px);
  aspect-ratio: 4 / 5;
  transform: perspective(390px) rotateX(5deg) rotateY(-12deg);
  filter: drop-shadow(3px 2px 0 #886f46) drop-shadow(5px 4px 0 #544a39) drop-shadow(0 0 24px #d5b36d37);
}

.mask-face {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: polygon(25% 0, 75% 0, 75% 5%, 85% 5%, 85% 10%, 92% 10%, 92% 20%, 97% 20%, 97% 55%, 92% 55%, 92% 67%, 85% 67%, 85% 76%, 77% 76%, 77% 84%, 68% 84%, 68% 92%, 60% 92%, 60% 100%, 40% 100%, 40% 92%, 32% 92%, 32% 84%, 23% 84%, 23% 76%, 15% 76%, 15% 67%, 8% 67%, 8% 55%, 3% 55%, 3% 20%, 8% 20%, 8% 10%, 15% 10%, 15% 5%, 25% 5%);
  background: linear-gradient(180deg, #fff4d12e, transparent 40%, #1e17122c),
    linear-gradient(90deg, #ad9164 0 15%, #d1b783 15% 31%, #ecd4a5 31% 51%, #cfb07a 51% 68%, #ad905d 68% 84%, #846e4d 84%);
}

.mask-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 6px, #231d1a31 6px 7px),
    repeating-linear-gradient(90deg, transparent 0 6px, #231d1a22 6px 7px);
}

.mask-face i {
  position: absolute;
  display: block;
  background: #251f19;
}

.mask-face .brow {
  top: 20%;
  left: 11%;
  width: 34%;
  height: 12%;
  clip-path: polygon(0 74%, 15% 74%, 15% 45%, 30% 45%, 30% 15%, 71% 15%, 71% 42%, 87% 42%, 87% 70%, 100% 70%, 100% 100%, 74% 100%, 74% 72%, 57% 72%, 57% 51%, 34% 51%, 34% 75%, 18% 75%, 18% 100%, 0 100%);
}

.mask-face .brow-right, .mask-face .eye-right {
  right: 11%;
  left: auto;
  transform: scaleX(-1);
}

.mask-face .eye {
  top: 35%;
  left: 12%;
  width: 35%;
  height: 11%;
  clip-path: polygon(0 17%, 19% 17%, 19% 0, 71% 0, 71% 20%, 86% 20%, 86% 42%, 100% 42%, 100% 78%, 78% 78%, 78% 100%, 26% 100%, 26% 76%, 11% 76%, 11% 48%, 0 48%);
}

.mask-face .eye-right {
  right: 12%;
  left: auto;
}

.mask-face .nose {
  top: 39%;
  left: 40%;
  width: 21%;
  height: 21%;
  clip-path: polygon(56% 0, 68% 0, 68% 40%, 82% 40%, 82% 65%, 100% 65%, 100% 86%, 76% 86%, 76% 100%, 23% 100%, 23% 86%, 0 86%, 0 69%, 17% 69%, 17% 77%, 45% 77%, 45% 52%, 56% 52%);
  background: #836b49;
}

.mask-face .cheek {
  top: 52%;
  left: 12%;
  width: 22%;
  height: 6%;
  background: #a89168;
  clip-path: polygon(0 20%, 18% 20%, 18% 0, 84% 0, 84% 26%, 100% 26%, 100% 76%, 80% 76%, 80% 100%, 22% 100%, 22% 73%, 0 73%);
}

.mask-face .cheek-right { right: 12%; left: auto; }

.mask-face .mouth {
  left: 14%;
  top: 59%;
  width: 72%;
  height: 17%;
  clip-path: polygon(0 0, 8% 0, 8% 25%, 16% 25%, 16% 43%, 24% 43%, 24% 33%, 31% 33%, 31% 17%, 39% 17%, 39% 8%, 61% 8%, 61% 17%, 69% 17%, 69% 33%, 76% 33%, 76% 43%, 84% 43%, 84% 25%, 92% 25%, 92% 0, 100% 0, 100% 47%, 94% 47%, 94% 64%, 86% 64%, 86% 84%, 75% 84%, 75% 100%, 25% 100%, 25% 84%, 14% 84%, 14% 64%, 6% 64%, 6% 47%, 0 47%, 0 0, 29% 54%, 29% 65%, 37% 65%, 37% 75%, 63% 75%, 63% 65%, 71% 65%, 71% 54%, 63% 54%, 63% 41%, 37% 41%, 37% 54%, 29% 54%);
}

.mask-face .chin {
  top: 81%;
  left: 36%;
  width: 28%;
  height: 14%;
  clip-path: polygon(0 0, 100% 0, 100% 26%, 85% 26%, 85% 50%, 70% 50%, 70% 75%, 61% 75%, 61% 100%, 39% 100%, 39% 75%, 30% 75%, 30% 50%, 15% 50%, 15% 26%, 0 26%);
}

.signin {
  min-width: 0;
  width: 100%;
  max-width: 23rem;
  justify-self: center;
}

.screen-body > .signin:only-child {
  grid-column: 1 / -1;
}

.signin h1 {
  margin: 0 0 32px;
  color: var(--cream);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 5.3vw, 3.55rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.cursor {
  display: inline-block;
  width: .33em;
  height: .055em;
  margin-left: .22em;
  background: var(--gold);
  box-shadow: 0 0 10px #d5b36d63;
}

form { display: grid; gap: 10px; }

label {
  display: block;
  margin-bottom: 1px;
  color: var(--titanium);
  font-size: .9rem;
  font-weight: 600;
}

input, button {
  width: 100%;
  min-height: 48px;
  border-radius: 3px;
  font: inherit;
}

input {
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #626870;
  outline-offset: 3px;
  color: var(--cream);
  background: var(--charcoal);
  box-shadow: inset 0 2px 10px #0004;
  caret-color: var(--gold-bright);
  font-family: var(--mono);
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--gold-bright);
  color: #1f1a12;
  background: linear-gradient(165deg, var(--gold-bright), var(--gold) 78%);
  box-shadow: inset 0 1px #fff6da60, 0 2px 0 #705939, 0 6px 15px #0004;
  cursor: pointer;
  font-weight: 650;
  text-align: left;
}

button:hover { background: var(--gold-bright); }
button:active { box-shadow: inset 0 1px 3px #0003; transform: translateY(1px); }
a { color: var(--gold-bright); text-underline-offset: .2em; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

.status {
  margin: 2px 0 0;
  color: #efbbaa;
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.5;
}

.status:empty { display: none; }

.hardware {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  margin-bottom: -10px;
  padding: 6px 3px 0;
}

.vents {
  width: 54px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #111416 0 5px, #737a805c 5px 6px, transparent 6px 9px);
}

.power {
  width: 5px;
  height: 5px;
  background: var(--gold-bright);
  box-shadow: 0 0 8px #d5b36d70;
}

@media (max-width: 620px) {
  .bezel { padding: 13px 13px 15px; border-radius: 14px; }
  .screen { border-radius: 8px; }
  .screen-body { grid-template-columns: 1fr; min-height: 0; padding-top: 18px; }
  .scope { min-height: 9.5rem; }
  .scope::after { inset: 3% max(6%, calc(50% - 104px)); }
  .mask { width: 105px; }
  .signin h1 { margin-bottom: 22px; }
}

@media (forced-colors: active) {
  .screen::after, .scope { display: none; }
  .screen-body { grid-template-columns: 1fr; min-height: 0; }
  button { border-color: ButtonText; }
  input:focus-visible, button:focus-visible, a:focus-visible { outline-color: Highlight; }
}
