:root {
  --paper: #F1EFE8;
  --ink: #2C3627;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

main {
  flex: 1 1 auto;
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  overflow: hidden;
}

h1 {
  margin: 0;
  display: flex;
  white-space: pre;
  line-height: 1;
  letter-spacing: -0.02em;
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 300;
}

h1 span {
  display: inline-block;
  transition: opacity 0.3s;
}

h1 span.scrambling {
  opacity: 0.55;
}

footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 56px) 28px;
}

nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration: underline;
}
