:root {
  color-scheme: light;
  --paper: #f3f3f1;
  --ink: #11110f;
  --muted: #74746f;
  --line: #d9d9d4;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.brand-name {
  white-space: nowrap;
}

.brand-p {
  color: #e84f6a;
}

.brand-n {
  color: #18a978;
}

.brand-g {
  color: #5279dd;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
}

nav a,
footer a {
  text-underline-offset: 5px;
}

nav a:hover,
footer a:hover {
  text-decoration: underline;
}

.statement {
  min-height: calc(100vh - 74px - 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 4vw;
}

.statement h2 {
  max-width: 1500px;
  margin: 0;
  font-size: clamp(58px, 9vw, 160px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}

.typewriter-shell {
  position: relative;
  display: inline-block;
}

.typewriter-ghost {
  visibility: hidden;
}

.typewriter-output {
  position: absolute;
  inset: 0;
  white-space: pre-line;
}

.typewriter-cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.045em;
  background: currentColor;
  vertical-align: -0.04em;
  animation: cursor-blink 800ms steps(1, end) infinite;
}

.typewriter-output.is-complete .typewriter-cursor {
  animation-iteration-count: 4;
}

@keyframes cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  padding: 14px 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 13px;
}

@media (max-width: 700px) {
  .site-header {
    height: 66px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  nav {
    gap: 18px;
  }

  .social-handle {
    display: none;
  }

  .statement {
    min-height: calc(100vh - 66px - 48px);
    padding: 56px 20px;
  }

  .statement h2 {
    font-size: 52px;
  }

  footer {
    min-height: 48px;
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .typewriter-cursor {
    display: none;
    animation: none;
  }
}
