:root {
  --canvas: #0a0a0a;
  --canvas-soft: #1a1c20;
  --ink: #ffffff;
  --body: #dadbdf;
  --mute: #7d8187;
  --hairline: #212327;
  --pill-border: rgba(255, 255, 255, 0.25);
  --sidebar-w: 200px;
  --stage-pad: clamp(1.25rem, 3vw, 2.5rem);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: var(--stage-pad) 1.25rem;
  border-right: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  height: 100vh;
}

.site-title {
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.page {
  padding: var(--stage-pad);
}

.section {
  scroll-margin-top: 1.5rem;
}

.section-hero {
  min-height: calc(100vh - var(--stage-pad) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--stage-pad);
}

.section-hero img {
  width: 100%;
  max-width: min(900px, 100%);
  max-height: calc(100vh - var(--stage-pad) * 2);
  object-fit: contain;
  display: block;
}

.content {
  max-width: 560px;
  margin: 0 auto var(--stage-pad);
}

.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.5rem;
}

.content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.content h2 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.content h3 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--body);
}

.meta {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 0.5rem;
}

.content p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}

.block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-entry {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--hairline);
}

.project-copy h2 {
  margin-bottom: 0.25rem;
}

.projects-details,
.project-details {
  border: none;
}

.projects-summary {
  list-style: none;
  cursor: pointer;
  margin-bottom: 0;
}

.projects-summary::-webkit-details-marker,
.project-summary::-webkit-details-marker {
  display: none;
}

.projects-summary::after,
.project-summary::after {
  content: "+";
  float: right;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0;
}

.projects-details[open] .projects-summary::after,
.project-details[open] .project-summary::after {
  content: "−";
}

.projects-title {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 0.35rem;
}

.projects-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-details {
  border-top: 1px solid var(--hairline);
}

.project-details:last-child .project-entry {
  border-bottom: none;
}

.project-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.project-details .project-entry {
  padding-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: none;
}

.project-details .block {
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list li {
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.list strong {
  color: var(--ink);
  font-weight: 400;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--pill-border);
  border-radius: 9999px;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 1.25rem;
  }

  .site-title {
    margin-bottom: 0;
    width: 100%;
  }

  .page {
    padding: 1.25rem;
  }

  .section-hero {
    min-height: auto;
  }

  .section-hero img {
    max-height: 65vh;
  }
}
