:root {
  color-scheme: light dark;
  --bg: #f7f7f7;
  --fg: #121212;
  --muted: #5f5f5f;
  --link: #121212;
  --border: #d8d8d8;
  --switch-track: #e0e0e0;
  --switch-thumb: #fff;
}
html[data-theme="dark"] {
  --bg: #0c0c0c;
  --fg: #e6e6e6;
  --muted: #a0a0a0;
  --link: #e6e6e6;
  --border: #444;
  --switch-track: #2a2a2a;
  --switch-thumb: #c8c8c8;
}
body {
  margin: 0;
  padding: 56px 24px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
}
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 34px;
}
.hero-main {
  min-width: 0;
  flex: 1;
}
.name {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.tagline {
  margin: 10px 0 20px;
  color: var(--muted);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.nav-links span {
  color: var(--border);
}
.theme-toggle {
  position: relative;
  width: 42px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 999px;
}
.theme-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--switch-track);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(22px);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.theme-toggle:focus:not(:focus-visible) {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle-track,
  .theme-toggle-thumb {
    transition: none;
  }
}
p {
  margin: 0 0 12px;
}
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section-block {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-bottom: 22px;
}
h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.clean-list li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--border);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}
.contact-sep {
  color: var(--border);
  user-select: none;
}
footer {
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  body {
    padding: 36px 16px;
  }
  .hero {
    gap: 10px 12px;
  }
  .theme-toggle {
    width: 36px;
    height: 20px;
  }
  .theme-toggle-thumb {
    width: 14px;
    height: 14px;
    top: 2px;
    left: 2px;
  }
  .theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    transform: translateX(18px);
  }
}
