:root {
  --background: #fbfaf8;
  --foreground: #17191c;
  --muted: #74787f;
  --rule: #e6e3dd;
  --accent: #b4491f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e0f11;
    --foreground: #e8e6e2;
    --muted: #878b93;
    --rule: #232529;
    --accent: #e0714a;
  }
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
}

.muted {
  color: var(--muted);
}

.page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .page {
    padding: 6rem 2.5rem;
  }
}

main {
  flex: 1;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.nav__name {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

.nav__name:hover {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.8rem;
}

.nav__links a {
  color: var(--muted);
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--foreground);
}

.nav__links a.is-active {
  color: var(--accent);
}

.nav__resume {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.nav__resume:hover {
  color: var(--foreground);
  border-color: var(--accent);
}

.nav__resume svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.15s;
}

.nav__resume:hover svg {
  transform: translateY(1px);
}

/* ---------- home ---------- */
.intro {
  margin-top: 4rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 640px) {
  .intro {
    margin-top: 5rem;
  }
}

.sections {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.section {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .section {
    display: flex;
    gap: 2.5rem;
  }
}

.section__label {
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

@media (min-width: 768px) {
  .section__label {
    margin-bottom: 0;
    width: 6rem;
  }
}

.section__body {
  min-width: 0;
  flex: 1;
}

/* ---------- entries ---------- */
.entries {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.entry__line {
  font-size: 0.95rem;
  line-height: 1.65;
}

.entry__meta {
  margin-top: 0.375rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.link {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.entry__org {
  font-weight: 600;
}

.dash {
  color: var(--muted);
}

.stack {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 2;
  color: var(--muted);
}

/* ---------- about ---------- */
.about {
  margin-top: 4rem;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .about {
    margin-top: 5rem;
  }
}

.about h1 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  color: var(--muted);
  transition: color 0.15s;
  display: inline-flex;
}

.footer__socials a:hover {
  color: var(--accent);
}

.footer__socials svg {
  width: 1rem;
  height: 1rem;
}

.footer__loc {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
}
