@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #16140f;
  --text: #ece6da;
  --muted: #9a9284;
  --prompt: #6f685c;
  --rule: #2e2a22;
  --ember: #e0703a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 8vw, 7.5rem);
  background: var(--ground);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: 3rem 0;
}

.lockup {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.prompt { color: var(--prompt); }
.flag { color: var(--ember); }

.status p { margin: 0; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); }
.status .muted { color: var(--muted); font-size: clamp(0.875rem, 1.3vw, 1.125rem); }

.hammer .head { fill: var(--ember); }
.hammer .handle { fill: var(--text); }

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.06em;
  vertical-align: -0.15em;
  background: var(--ember);
  animation: blink 1s step-end infinite;
}
.lockup .cursor { height: 0.8em; vertical-align: -0.06em; }
@keyframes blink { 50% { opacity: 0; } }
.status p { min-height: 1.4em; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 3rem;
  row-gap: 0.25rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  padding-bottom: 1rem;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  text-decoration: none;
}
nav a.mail { color: var(--ember); }
nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  nav { flex-direction: column; }
}
