:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --ink: #292b28;
  --soft-ink: #6f726c;
  --line: #dddcd5;
  --accent: #b96b50;
  --term: #272a27;
  --term-white: #ebece6;
  --term-muted: #969c92;
  --term-accent: #e3a98e;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#707469 0.46px, transparent 0.46px);
  background-size: 24px 24px;
  opacity: 0.095;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
}

::selection { background: #ecd3c6; color: var(--ink); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  width: min(1140px, calc(100% - 112px));
  min-height: 100svh;
  margin-inline: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* top bar */

.topbar {
  padding: 35px 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }

.brand-mark {
  height: 30px;
  width: 30px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font: 700 23px/1 var(--mono);
  position: relative;
  padding-bottom: 4px;
  letter-spacing: -2px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  bottom: 6px;
  right: 5px;
}

.brand-name { font-size: 16px; letter-spacing: -0.4px; font-weight: 650; }

.top-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--soft-ink);
  font: 12px/1.4 var(--mono);
}
.top-meta .separator { opacity: 0.5; }

.status-light {
  width: 6px;
  height: 6px;
  background: #91a68c;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(145, 166, 140, 0.12);
}

/* hero */

.main {
  flex: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.88fr);
  gap: clamp(42px, 6vw, 98px);
  padding: 78px 0 105px;
}

.hero { min-width: 0; animation: rise-in 0.8s cubic-bezier(0.2, 0.65, 0.2, 1) both; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--soft-ink);
  font: 12px/1.5 var(--mono);
  letter-spacing: 0.03em;
}
.eyebrow .prompt { color: var(--accent); font-weight: 700; font-size: 19px; line-height: 1; }

h1 {
  font-size: clamp(88px, 10vw, 136px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.067em;
  margin: 34px 0 30px -0.04em;
}

.period { color: var(--accent); }

/* The umlaut is a pair of eyes. They sit on the baseline anchor inside the
   "o", so they land in the right spot whatever system font renders it. */

.o {
  display: inline-block;
  letter-spacing: 0;
  margin-right: -0.067em;
}

.eyes {
  display: inline-block;
  position: relative;
  width: 0;
  height: 0;
}

.eye {
  position: absolute;
  bottom: calc(1ex + 0.09em);
  width: 0.12em;
  height: 0.12em;
  border-radius: 50%;
  background: currentColor;
  translate: var(--dx, 0px) var(--dy, 0px);
  scale: 1 var(--lid, 1);
  transition:
    translate 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
    scale 0.08s ease-in;
  animation: wake 1.1s 0.5s backwards;
}

.eye.right { right: 0.1em; }
.eye.left { right: calc(1ch - 0.22em); }

.o.blink .eye { --lid: 0.12; }

@keyframes wake {
  from, 65% { scale: 1 0.12; }
  to { scale: 1 1; }
}

.subtitle {
  max-width: 420px;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.012em;
  margin: 0;
}

.inline-rule { width: 34px; height: 1px; background: #a4a59d; margin: 36px 0 18px; }

.signature { color: #666a64; font: 12px/1.6 var(--mono); }
.signature strong { font-weight: 600; color: #383b36; }

/* terminal */

.terminal {
  border: 1px solid rgba(22, 27, 24, 0.16);
  border-radius: 13px;
  overflow: hidden;
  background: var(--term);
  color: var(--term-white);
  box-shadow: 0 28px 58px rgba(36, 40, 34, 0.12), 0 3px 12px rgba(36, 40, 34, 0.035);
  animation: rise-in 1s 0.14s cubic-bezier(0.2, 0.65, 0.2, 1) both;
  transform: translateZ(0);
}

.terminal-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.028);
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.window-dot { width: 9px; height: 9px; border-radius: 50%; background: #6d716b; }
.window-dot:first-child { background: #bc816b; }

.terminal-title {
  font: 11px/1 var(--mono);
  margin-inline: auto;
  padding-right: 43px;
  color: #8b938a;
  letter-spacing: 0.02em;
}

.terminal-body {
  height: 360px;
  overflow-y: auto;
  padding: 29px 31px 32px;
  font: 13px/1.75 var(--mono);
  letter-spacing: -0.012em;
  scrollbar-width: thin;
  scrollbar-color: #4a4f49 transparent;
  cursor: text;
}

.cmd { color: var(--term-white); white-space: nowrap; }
.cmd.lone { margin-bottom: 8px; }
.cmd .chevron { color: var(--term-accent); font-weight: 700; margin-right: 10px; }

.output {
  color: var(--term-muted);
  line-height: 1.5;
  margin: 7px 0 24px 21px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.output a { color: var(--term-accent); }

.directories { display: flex; flex-wrap: wrap; gap: 8px 21px; }
.directories span { color: #b7c4b0; }

.prompt { display: flex; align-items: baseline; }

.prompt input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--term-white);
  font: inherit;
  caret-color: var(--term-accent);
}

.prompt input:focus-visible {
  outline: none;
  box-shadow: 0 1px 0 var(--term-accent);
}

.terminal-foot {
  background: #232623;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
  color: var(--term-muted);
  font: 10px/1.3 var(--mono);
}
.terminal-foot .left { display: flex; align-items: center; gap: 9px; }
.terminal-foot .tiny-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9baa8d;
  animation: breathe 3.8s ease-in-out infinite;
}
.terminal-foot kbd { font: inherit; color: var(--term-white); }

/* footer */

.footer {
  border-top: 1px solid var(--line);
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--soft-ink);
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.01em;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

@keyframes breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(155, 170, 141, 0.3); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(155, 170, 141, 0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .page { width: min(650px, calc(100% - 48px)); }
  .topbar { padding: 26px 0 22px; }
  .main { grid-template-columns: 1fr; align-content: center; gap: 48px; padding: 83px 0 85px; }
  .hero { max-width: 570px; }
  .terminal { width: 100%; }
  .terminal-body { height: 306px; }
}

@media (max-width: 500px) {
  .page { width: calc(100% - 36px); }
  .top-meta .meta-label, .top-meta .separator { display: none; }
  .main { padding: 64px 0 68px; gap: 42px; }
  h1 { font-size: clamp(76px, 24vw, 104px); margin-top: 26px; }
  .subtitle { font-size: 15px; line-height: 1.8; }
  .terminal-body { padding: 24px 19px; font-size: 12px; height: 295px; }
  .terminal-head { padding-inline: 16px; }
  .directories { column-gap: 12px; }
  .terminal-foot { padding: 13px 15px; }
  .footer { min-height: 73px; font-size: 10px; }
}

/* Touch keyboards zoom into inputs under 16px. */
@media (pointer: coarse) {
  .prompt input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
