:root {
  color-scheme: light dark;
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #66666b;
  --border: #d8d8d4;
  --hover: #f0f0ed;
  --focus: #0969da;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 1.5rem;
  place-items: center;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

main {
  width: min(100%, 24rem);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

p {
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
  white-space: nowrap;
}

.doge {
  display: block;
  width: min(11rem, 50vw);
  height: auto;
  margin: 0 auto 1.5rem;
}

nav {
  display: grid;
  gap: 0.75rem;
}

a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

a svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

a .medium-icon {
  fill: currentColor;
  stroke: none;
}

a:hover {
  background: var(--hover);
  border-color: var(--muted);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 30rem) {
  p {
    white-space: normal;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141416;
    --surface: #1f1f22;
    --text: #f2f2f3;
    --muted: #aaaab0;
    --border: #3a3a3f;
    --hover: #29292d;
    --focus: #58a6ff;
  }
}
