:root {
  --bg: #ffffff;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --border: #ececec;
}

:root[data-theme="dark"] {
  --bg: #1d1f21;
  --text: #d6d6d6;
  --muted: #9a9a9a;
  --link: #8ab4f8;
  --link-hover: #aecbfa;
  --border: #2e3033;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 720px;
  padding: 2.5rem 1.25rem 4rem;
  margin: 0 auto;
  transition: background 0.2s ease, color 0.2s ease;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

/* Header / nav */
.site-header {
  margin-bottom: 3rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  border-bottom: none;
}

.site-title:hover {
  color: var(--text);
  border-bottom: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: none;
}

.nav-links a:hover {
  color: var(--text);
}

#theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.2s ease;
  z-index: 10;
}

#theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--muted);
}

/* Content */
.content h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.content p {
  margin: 0 0 1.25rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}
