:root {
  --bg: #fdf8f0;
  --ink: #1f1a17;
  --muted: #6b6159;
  --accent: #c2410c;
  --rule: #e8dccb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --ink: #f3ece2;
    --muted: #a99d91;
    --accent: #fb923c;
    --rule: #3a322b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 5px;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.sidebar {
  position: sticky;
  top: 4rem;
  align-self: start;
  border-right: 2px solid var(--rule);
  padding-right: 2rem;
}

.site-name {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  margin-bottom: 2rem;
}

.sidebar h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.project-list li {
  margin-bottom: 1rem;
}

.project-list a {
  font-weight: 700;
}

.project-list span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.github {
  font-weight: 700;
}

main {
  padding-top: 2rem;
}

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

h1 {
  margin: 0 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.intro {
  max-width: 34em;
  font-size: 1.35rem;
}

@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 16px;
  }

  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 2px solid var(--rule);
    padding: 0 0 1.5rem;
  }

  main {
    padding-top: 0;
  }
}
