* {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  --bg: #f4f4ef;
  --fg: #181818;
  --muted: #6c6c66;
  --border: #c9c9c0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --fg: #e9e9e3;
    --muted: #9a9a92;
    --border: #323232;
  }
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  line-height: 1.65;
}

.container {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

header,
section {
  margin-bottom: 52px;
}

h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.4rem, 8vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

.prompt,
.stack,
.item-header span,
footer {
  color: var(--muted);
}

.lead {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 1.08rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.socials a {
  white-space: nowrap;
}

article {
  margin-bottom: 34px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 7px;
}

.project {
  margin-bottom: 28px;
}

.project p {
  margin: 6px 0;
}

.stack {
  font-size: 0.92rem;
}

.skills p {
  margin-bottom: 10px;
}

.skills span {
  display: inline-block;
  min-width: 92px;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 28px, 760px);
    padding-top: 40px;
  }

  .item-header {
    flex-direction: column;
    gap: 2px;
  }

  .skills span {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}
