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

:root {
  --bg:     #0b0b0b;
  --bg2:    #0f0f0f;
  --border: #222222;
  --text:   #ffffff;
  --muted:  #bfbfbf;
  --subtle: #3a3835;
}
[data-theme="light"] {
  --bg:     #ffffff;
  --bg2:    #ffffff;
  --border: #e6e6e6;
  --text:   #000000;
  --muted:  #333333;
  --subtle: #d5d3cf;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* Brand */
.brand-font {
  font-family: 'Luckiest Guy', cursive;
}
.brand-heading {
  font-size: clamp(1.8rem, 3.9vw, 2.2rem);
}
.brand-footer {
  font-family: 'Luckiest Guy', cursive;
  font-size: 0.68rem;
}

.nav-name {
  font-family: 'Luckiest Guy', cursive;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
}
.nav-name { font-size: 0.88rem; font-weight: 500; letter-spacing: -0.01em; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; color: var(--muted);
  transition: color 0.2s; font-family: 'Inter', sans-serif;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  outline: none;
  gap: 0.45rem;
  color: var(--muted);
  font-family: 'Racing Sans One', cursive;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.theme-btn:hover { border-color: var(--muted); color: var(--text); }
.theme-btn svg { display: block; }

/* PAGE WRAPPER */
.page {
  max-width: 760px; margin: 0 auto;
  padding: 7rem 2rem 5rem;
  animation: fadein 0.3s ease;
}
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* PAGE HEADER */
.page-header { margin-bottom: 2.5rem; }
.page-header h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.page-header p { font-size: 0.82rem; color: var(--muted); }

/* SECTION LABEL */
.section-label {
  font-family: 'Racing Sans One', cursive;
  font-size: 0.68rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* DIVIDER */
.divider { height: 1px; background: var(--border); margin: 3.5rem 0; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  max-width: 760px; margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex; justify-content: space-between;
  font-family: 'Luckiest Guy', cursive;
  font-size: 0.68rem; color: var(--muted);
}

@media (max-width: 580px) {
  .page { padding: 6rem 1.3rem 4rem; }
  footer { flex-direction: column; gap: 0.4rem; }
  nav { padding: 1rem 1.2rem; }
  .nav-links { gap: 1.1rem; }
}
