:root {
  --bg:     #fafaf8;
  --text:   #1a1a1a;
  --muted:  #888;
  --border: #e0e0e0;
  --mono:   'IBM Plex Mono', monospace;
  --serif:  'Lora', Georgia, serif;
  --max:    620px;
  --pad:    clamp(1.2rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

main { flex: 1; padding: clamp(2.5rem, 7vw, 4.5rem) 0; }

h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 400; margin-bottom: 1.2rem; }
p  { color: #444; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a  { color: var(--text); }
a:hover { color: var(--muted); }

/* Nav */
nav { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--mono);
  font-size: .8rem;
  text-decoration: none;
  color: var(--text);
}
.nav-links { list-style: none; display: flex; gap: 1.8rem; }
.nav-links a {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 2px; }
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--text); }
@media (max-width: 480px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 53px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .85rem var(--pad); border-bottom: 1px solid var(--border); }
}

/* Footer */
footer { border-top: 1px solid var(--border); padding: 1.2rem 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .6rem;
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
}
.footer-links { list-style: none; display: flex; gap: 1.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

#ball {
    width: 50px;
    height: 50px;
    background: rgb(0, 0, 0);
    border-radius: 50%;
    position: fixed;
}