:root {
  color-scheme: dark;
  --base: #181926;
  --mantle: #1e2030;
  --surface: #24273a;
  --surface-2: #363a4f;
  --text: #cad3f5;
  --subtext: #a5adcb;
  --muted: #939ab7;
  --prompt: #8bd5ca;
  --link: #b7bdf8;
  --hover: #f5a97f;
  --shadow: rgba(0, 0, 0, 0.32);
  --font-body: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--base);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 213, 202, 0.08), transparent 32rem),
    var(--base);
  font-family: var(--font-body);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.terminal-pane {
  width: min(100%, 48rem);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid rgba(183, 189, 248, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(36, 39, 58, 0.96), rgba(30, 32, 48, 0.96));
  box-shadow: 0 1.5rem 4rem var(--shadow);
}

.prompt {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.6;
}

.prompt span {
  color: var(--prompt);
}

h1 {
  max-width: 24ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.no-wrap {
  white-space: nowrap;
}

.subline {
  max-width: 52rem;
  margin: 1.5rem 0 0;
  color: var(--subtext);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  line-height: 1.75;
}

.subline a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.28em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.subline a:hover,
.subline a:focus-visible {
  color: var(--hover);
  text-decoration: underline;
}

.subline a:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 0.2rem;
}

.contact-prompt {
  margin-top: clamp(2rem, 6vw, 3.5rem);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.links a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  color: var(--link);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-underline-offset: 0.35em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.links a::before {
  color: var(--muted);
  content: "./";
}

.links a:hover,
.links a:focus-visible {
  color: var(--hover);
  text-decoration: underline;
}

.links a:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 0.35rem;
}

@media (max-width: 36rem) {
  .shell {
    align-items: start;
    padding: 1rem;
  }

  .terminal-pane {
    margin-top: 2rem;
  }

  h1 {
    max-width: 18ch;
  }

  .links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
