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

:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --color-bg: #e8e6e0;
  --color-text: #1a1a1a;
  --color-muted: #6b6862;
  --color-media: #000000;
  --page-padding: 40px;
  --page-max: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TOP HEADER
   ======================================== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--page-padding);
  font-size: 0.75rem;
  font-weight: 500;
}

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

/* ========================================
   PAGE LAYOUT
   ======================================== */

.page {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  padding-block: 12vh 16vh;
  text-align: center;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* ========================================
   PROJECTS
   ======================================== */

.project {
  margin-bottom: 14vh;
}

.project__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.project__media {
  width: 100%;
  background: var(--color-media);
}

.project__media--rect {
  aspect-ratio: 16 / 10;
}

.project__media--circle {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 520px;
  margin-inline: auto;
}

.project--contact {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  padding-top: 28px;
  margin-bottom: 0;
}

/* ----- Captions ----- */

.project__caption {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px 24px;
  margin-top: 18px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.caption__meta {
  grid-column: 1 / -1;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 6px;
}

.caption__col--a { grid-column: 1 / span 4; }
.caption__col--b { grid-column: 5 / span 4; }
.caption__col--c { grid-column: 9 / span 4; }

.caption__subhead {
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 4px;
}

.caption__list {
  list-style: disc;
  padding-left: 1.1em;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  width: 100%;
  max-width: var(--page-max);
  margin: 8vh auto 0;
  padding: 0 var(--page-padding) 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.footer__col--name { grid-column: 1 / span 3; }
.footer__col--bio { grid-column: 5 / span 4; }

.footer__label {
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 6px;
}

.footer__links {
  grid-column: 9 / span 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 32px;
  align-content: start;
}

.footer__link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 767px) {
  :root {
    --page-padding: 20px;
  }

  .caption__col--a,
  .caption__col--b,
  .caption__col--c,
  .footer__col--name,
  .footer__col--bio,
  .footer__links {
    grid-column: 1 / -1;
  }
}
