:root {
  --color-bg: #fffced;
  --color-accent: #d65555;
  --color-text: #373737;
  --color-text-muted: #868686;
  --color-text-dark: #303030;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max-width: 890px;
  --page-padding: clamp(1.5rem, 5vw, 12rem);
  --text-body: 14px;
  --text-caption: 12px;
  --text-small: 10px;
  --leading-body: 24px;
  --leading-tight: 20px;
  --leading-list: 28px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.625rem var(--page-padding) 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.breadcrumb a:hover {
  opacity: 0.85;
}

.breadcrumb-sep {
  color: var(--color-text-muted);
}

.breadcrumb-current {
  color: var(--color-text-muted);
  white-space: nowrap;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: lowercase;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.79;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.pronunciation {
  margin: -2.8px 0 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.79;
  color: var(--color-accent);
}

.noun-label {
  margin: 25px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.bio {
  position: relative;
  margin-top: 1rem;
  max-width: var(--max-width);
}

.bio::before {
  content: "";
  display: block;
  width: min(385px, 100%);
  height: 1px;
  background: url("assets/line.svg") no-repeat left center;
  background-size: 100% 1px;
  margin-bottom: 1.75rem;
}

.bio ul {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
  list-style-type: "- ";
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.bio li {
  margin-bottom: 0;
}

.bio li + li {
  margin-top: 0.99rem;
}

section {
  margin-top: 3.5rem;
  max-width: var(--max-width);
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.625rem;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  line-height: 1.79;
}

.list-row span:first-child {
  color: var(--color-text);
  text-transform: lowercase;
  flex-shrink: 0;
}

.list-row span:last-child {
  color: var(--color-text-muted);
  text-transform: capitalize;
  text-align: right;
  flex-shrink: 0;
}

.list-row span.no-transform {
  text-transform: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 1.75rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-image {
  aspect-ratio: 4 / 3;
  background: rgba(55, 55, 55, 0.08);
  border-radius: 4px;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.project-title a {
  color: var(--color-text-dark);
  text-decoration: underline;
  text-decoration-color: #868686;
  text-underline-offset: 0.2em;
}

.project-title a.title-case {
  text-transform: capitalize;
}

.project-title a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.project-tagline {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tag {
  border: 1px solid rgba(134, 134, 134, 0.6);
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  color: #777777;
  font-size: 14px;
  text-transform: lowercase;
}

@media (min-width: 721px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }

  .project-card {
    padding: 0 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(55, 55, 55, 0.15);
  }

  .project-card:not(:nth-child(3n)) {
    border-right: 1px solid rgba(55, 55, 55, 0.15);
  }

  .project-card:nth-child(n + 4) {
    padding-top: 1.75rem;
  }

  .project-card:nth-last-child(-n + 3) {
    border-bottom: none;
  }

  .project-image {
    aspect-ratio: 5 / 4;
  }

  .project-body {
    gap: 0.5rem;
    margin-top: 0.875rem;
  }
}

.closing {
  margin-top: 3.5rem;
  max-width: var(--max-width);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.6;
  text-transform: lowercase;
}

.closing p {
  margin: 0 0 0.5rem;
}

.closing p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  opacity: 0.85;
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #868686;
  text-underline-offset: 0.15em;
  text-transform: none;
}

.inline-link:hover,
.inline-link:active {
  color: #cf2b2b;
  text-decoration-color: #cf2b2b;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
  max-width: var(--max-width);
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.79;
  text-transform: lowercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.link-pair {
  display: inline-flex;
  gap: 2rem;
}

.social-links a {
  color: var(--color-text);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 720px) {
  :root {
    --text-body: 16px;
    --text-caption: 14px;
    --text-small: 12px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  h2,
  .pronunciation,
  .bio ul,
  .list-row,
  .feature-list li,
  .closing {
    font-size: var(--text-body);
  }

  .list-row span:last-child,
  .site-footer {
    font-size: var(--text-caption);
  }

  .list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .list-row span:last-child {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.25rem;
  }

  .project-card {
    flex-direction: row;
    gap: 1rem;
    padding: 1.75rem 0;
  }

  .project-card:first-child {
    padding-top: 0;
  }

  .project-image {
    width: 76px;
    height: 76px;
    aspect-ratio: unset;
    flex-shrink: 0;
  }

  .project-body {
    margin-top: 0;
    gap: 0.5rem;
  }

  .project-tagline {
    font-size: 0.9375rem;
  }

  .project-tags {
    gap: 0.4rem;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}
