:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #6b6b6b;
  --rule: #e5e5e5;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #9a9a9a;
    --rule: #262626;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  padding: 3rem 1rem;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 1.5rem);
}

h1 { margin: 0; line-height: 0; }

.logo {
  display: block;
  width: clamp(14rem, 62vw, 36rem);
  height: auto;
}

.tagline {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
  text-wrap: balance;
}

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
}

/* Underline that grows on hover; the tagline link keeps a thin one so it reads as a link */
address a,
.tagline a {
  color: var(--fg);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease;
}

.tagline a { background-size: 100% 1px; }

address a:hover,
address a:focus-visible,
.tagline a:hover,
.tagline a:focus-visible { background-size: 100% 2px; }

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 2px;
}

.location { color: var(--muted); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}

footer nav {
  display: flex;
  gap: 0.75rem;
}

footer nav a {
  color: inherit;
  text-decoration: none;
}

footer nav a:hover { color: var(--fg); }

footer nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  address a, .tagline a { transition: none; }
}
