:root {
  --bg: #0b0f14;
  --surface: #10161d;
  --text: #e7edf5;
  --muted: #9ba9bb;
  --line: #202a36;
  --link: #9cc5ff;
  --header-bg: rgba(11, 15, 20, 0.92);
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #17212b;
  --muted: #556273;
  --line: #d7e0ea;
  --link: #165ecf;
  --header-bg: rgba(247, 249, 252, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(760px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  width: 2.2rem;
  height: 2rem;
  padding: 0;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.theme-toggle::before {
  content: "\263E";
  line-height: 1;
}

[data-theme="light"] .theme-toggle::before {
  content: "\2600";
}

.main {
  padding: 2.4rem 0 3rem;
}

.intro-block {
  padding-bottom: 1.2rem;
}

.role {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

h1 {
  margin: 0.2rem 0 0.2rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.tagline {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.content-section {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 1.2rem;
}

h2 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
}

p {
  margin: 0.35rem 0;
}

a {
  color: var(--link);
}

.blog-list {
  margin: 0;
  padding-left: 1.1rem;
}

.blog-list li {
  margin: 0.35rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.1rem 0 2rem;
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.35rem;
  }
}
