@font-face {
  font-family: Plex;
  src: url('/plex-mono.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #fff;
  color: #111;
  font-family: Plex, 'Courier New', monospace;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(24px, 3.8vw, 56px);
}

.masthead {
  display: flex;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid #111;
}

.wordmark {
  font-size: clamp(15px, 1.55vw, 23px);
  letter-spacing: -.025em;
  white-space: nowrap;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: stretch;
  min-height: 610px;
}

.message {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(100px, 14vh, 165px) 10px 52px 0;
  z-index: 1;
}

.status,
.footer {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .035em;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 4.3vw, 74px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.cursor {
  display: inline-block;
  width: .075em;
  height: .78em;
  margin-left: .13em;
  background: #194bfb;
  animation: blink 1.15s steps(1) infinite;
}

.dek {
  margin: 38px 0 0;
  font-size: clamp(16px, 1.55vw, 23px);
  line-height: 1.42;
  letter-spacing: -.035em;
}

.status { margin: 0; }
.status-mark { color: #194bfb; }
.status-mark::before { content: '●'; }

.portrait {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  margin: 0;
  min-width: 0;
  pointer-events: none;
}

.portrait pre {
  margin: 0;
  flex: none;
  color: #111;
  font: 400 clamp(5.4px, .59vw, 8.4px)/.98 Plex, 'Courier New', monospace;
  letter-spacing: 0;
  animation: appear 1.2s ease-out both;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 67px;
  padding-top: 19px;
  border-top: 1px solid #111;
}

.footer span:last-child { color: #696969; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes appear { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 900px) {
  .page { padding: 0 clamp(20px, 5vw, 38px); }
  .masthead { min-height: 68px; }
  .hero { display: flex; flex-direction: column-reverse; min-height: 0; }
  .portrait { justify-content: center; height: clamp(280px, 62vw, 550px); }
  .portrait pre { font-size: clamp(4.2px, 1.08vw, 8px); }
  .message { flex: 1; padding: 22px 0 40px; gap: 54px; }
  h1 { font-size: clamp(36px, 7.4vw, 66px); }
  .dek { margin-top: 24px; }
}

@media (max-width: 500px) {
  .portrait { height: 315px; }
  .message { gap: 42px; padding-bottom: 30px; }
  h1 { font-size: clamp(36px, 9vw, 47px); }
  .dek { font-size: 16px; }
  .status, .footer { font-size: 12px; }
  .footer { min-height: 58px; }
  .footer span:last-child { display: none; }
}

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