:root {
  color-scheme: light dark;
  --bg: #11110f;
  --text: #efeee8;
  --muted: #a8a69d;
  --line: #34342f;
  --accent: #8fc7b4;
  --surface: #191916;
}

[data-theme="light"] {
  --bg: #f8f8f5;
  --text: #171717;
  --muted: #686862;
  --line: #ddddd6;
  --accent: #2f5d50;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.page {
  width: min(100% - 2rem, 680px);
  margin-inline: auto;
}

.site-header {
  padding-top: 2.5rem;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 2rem;
}

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

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  fill: none;
  height: 1rem;
  position: absolute;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1rem;
}

.icon-moon,
[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

.page {
  padding-block: 4.25rem 5rem;
}

.intro {
  margin-bottom: 4rem;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: 0;
}

.role {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.focus {
  margin-top: 0.35rem;
  max-width: 46ch;
}

.section {
  padding-block: 2.15rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: lowercase;
}

.stack {
  display: grid;
  gap: 0.45rem;
}

.entries {
  display: grid;
  gap: 1.65rem;
}

.entry {
  display: grid;
  gap: 0.2rem;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
}

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

.tags,
.inline-links,
.link-list {
  list-style: none;
  padding: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.1rem 0.38rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.link-list {
  display: grid;
  gap: 0.9rem;
}

.link-list li {
  display: grid;
  gap: 0.1rem;
}

.link-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.page-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  padding-top: 2rem;
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .site-header {
    padding-top: 1.35rem;
  }

  .page {
    padding-block: 3rem 4rem;
  }

  .intro {
    margin-bottom: 3rem;
  }
}
