:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #121212;
  --muted: #5f5f5f;
  --focus: #9b6800;
  --toggle-border: #d7d7d7;
  --toggle-fill: #121212;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #080808;
  --foreground: #ffffff;
  --muted: #c9c9c9;
  --focus: #f2c14f;
  --toggle-border: #555555;
  --toggle-fill: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.7rem 1rem;
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.theme-toggle {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.theme-toggle span {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--toggle-fill);
}

.theme-toggle:hover {
  border-color: var(--foreground);
}

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

.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 7vw, 7rem);
}

.brand {
  width: min(100%, 68rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

:root[data-theme="dark"] .logo {
  background: #ffffff;
  border-radius: 0.15rem;
}

h1 {
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
}

.email {
  margin-top: 1rem;
  color: var(--foreground);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: 0.09em;
  text-decoration-color: color-mix(in srgb, var(--foreground) 45%, transparent);
  text-underline-offset: 0.35em;
}

.email:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 38rem) {
  .brand {
    width: min(100%, 32rem);
  }

  h1 {
    letter-spacing: 0.28em;
  }
}

@media (forced-colors: active) {
  .theme-toggle {
    border: 2px solid ButtonText;
  }
}
