:root {
  --bg: #f2f3ec;
  --ink: #1a1f16;
  --mute: #66705c;
  --line: #d4d8c8;
  --pod: #3e7a3a;
  --bean: #eaf2c4;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121510;
    --ink: #e8eddf;
    --mute: #8f9884;
    --line: #2a3026;
    --pod: #8fbc6a;
    --bean: #1a1f16;
  }
}

* { box-sizing: border-box; margin: 0; }

html { color-scheme: light dark; }

body {
  min-height: 100vh;
  font: 16px/1.55 var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--pod) 26%, transparent);
}

:focus-visible {
  outline: 1px solid var(--pod);
  outline-offset: 3px;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.intro {
  margin-top: 1.7rem;
  color: var(--mute);
  max-width: 34rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand svg,
.brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand .word {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand .name {
  font: 500 15px/1.1 var(--sans);
  letter-spacing: -0.02em;
}

.brand .lab {
  font: 12px/1 var(--mono);
  color: var(--mute);
}

nav {
  display: flex;
  gap: 1.15rem;
  font: 13px/1 var(--mono);
}

nav a {
  color: var(--mute);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }

.projects {
  list-style: none;
}

.projects li {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.projects h2,
.page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.meta {
  margin-top: 0.28rem;
  font: 12px/1.4 var(--mono);
  color: var(--mute);
}

.projects p:not(.meta) {
  margin-top: 0.5rem;
  color: var(--mute);
  max-width: 34rem;
}

.url-icons {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 0.35rem;
}

.url-icons a {
  display: inline-flex;
  color: var(--mute);
}

.url-icons a:hover { color: var(--ink); }

.url-icons svg {
  width: 15px;
  height: 15px;
  display: block;
}

.page { padding-top: 1.85rem; }

.page section + section { margin-top: 2.15rem; }

.page p,
.page li { color: var(--mute); }

.page p + p,
.page ul { margin-top: 0.7rem; }

.page ul { padding-left: 1.1rem; }

.page li + li { margin-top: 0.35rem; }

a { color: var(--pod); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  margin-top: 2rem;
  font: 13px/1.4 var(--mono);
}

.mail { text-decoration: none; }
.mail:hover { text-decoration: underline; }

.foot {
  display: flex;
  gap: 1.15rem;
  color: var(--mute);
}

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

.foot a:hover { color: var(--ink); }

.legal {
  flex-basis: 100%;
  margin-top: 0.6rem;
  font-size: 12px;
  color: var(--mute);
}

@media (max-width: 480px) {
  main { padding: 2rem 1.2rem 4rem; }
  header { align-items: flex-start; }
}

.projects h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.projects h2 a.app {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.projects h2 a.app:hover { color: inherit; }

.projects h2 a.app:hover .app-name { text-decoration: underline; }

.projects .app-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
}
