:root {
  --bg: #171615;
  --surface: #1f1d1b;
  --surface-muted: #23211f;
  --border: #34312d;
  --border-strong: #4a453f;
  --text: #f1eee8;
  --muted: #b7aea2;
  --accent: #9aae8d;
  --accent-strong: #c7d1be;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p,
dl,
dt,
dd {
  margin: 0;
}

.container {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.resource-row {
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.site-main {
  flex: 1 0 auto;
  padding: 56px 0 40px;
}

.narrow-layout {
  width: min(100%, 680px);
}

.intro-block,
.content-block {
  margin-bottom: 28px;
}

.intro-block h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 12px;
}

.body-copy,
.project-intro p,
.resource-detail {
  color: var(--muted);
}

.list-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.profile-image {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
}

.content-block h2,
.project-intro h1 {
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0 0 12px;
}

.list-panel {
  overflow: hidden;
}

.resource-row {
  min-height: 60px;
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.resource-row {
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto;
}

.resource-row + .resource-row {
  border-top: 1px solid var(--border);
}

.resource-row:hover,
.resource-row:focus-visible {
  background: var(--surface-muted);
}

.resource-name,
.resource-action {
  font-weight: 500;
}

.resource-action {
  color: var(--accent);
}

.site-footer {
  padding: 0 0 40px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.project-shell {
  flex: 1 0 auto;
  padding: 40px 0 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--border-strong);
  color: var(--text);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.project-header--simple {
  justify-content: flex-start;
}

.project-main {
  padding-top: 24px;
}

.project-intro {
  margin-bottom: 24px;
}

.project-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .project-header,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-main,
  .project-shell {
    padding-top: 32px;
  }

  .resource-row {
    grid-template-columns: 1fr;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
