:root {
  --bg: #232a2f;
  --paper: #fffaf0;
  --muted: #b8bdbe;
  --accent: #f2b84b;
  --line: rgba(255, 250, 240, .18);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.page {
  width: min(calc(100% - 48px), 1080px);
  height: 100%;
  min-height: 510px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin-inline: auto;
}

header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}

nav { display: flex; gap: clamp(24px, 4vw, 52px); }
nav a, .lab-cta { text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
nav a:hover, .lab-cta:hover { color: var(--accent); }
.is-current { text-decoration-style: wavy; }

main {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: clamp(28px, 5vh, 55px) 0 clamp(25px, 4vh, 45px);
}

h1 {
  align-self: center;
  margin: 0;
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(7rem, 19vw, 16rem);
  font-weight: 900;
  line-height: .74;
  letter-spacing: -.035em;
  text-align: center;
  transform: scaleX(.96);
}

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 36px;
  padding-top: clamp(22px, 4vh, 42px);
  border-top: 1px solid var(--line);
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
.lab-cta {
  padding-bottom: 4px;
  font-size: .82rem;
  white-space: nowrap;
}
.lab-cta span { color: var(--accent); }

footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .67rem;
}

@media (max-width: 680px) {
  .page { width: calc(100% - 30px); }
  header { min-height: 74px; }
  main { padding-block: 25px; }
  h1 { font-size: clamp(6rem, 27vw, 7rem); line-height: .78; }
  .intro { grid-template-columns: 1fr auto; gap: 20px; }
  .intro p { font-size: .69rem; }
  footer { min-height: 62px; }
}
