:root {
  color-scheme: light;
  --ink: #102a2b;
  --muted: #526666;
  --paper: #f3f0e8;
  --paper-deep: #e7e0d1;
  --accent: #d96b43;
  --accent-dark: #9d462a;
  --line: rgba(16, 42, 43, 0.16);
  --shadow: 0 24px 70px rgba(16, 42, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 7%, rgba(217, 107, 67, 0.14), transparent 30rem),
    radial-gradient(circle at 7% 72%, rgba(16, 89, 86, 0.12), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(16, 42, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 43, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

main,
footer {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

main {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 5rem);
  padding-block: clamp(4rem, 10vw, 9rem);
}

.hero {
  max-width: 54rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 13vw, 8.8rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.intro {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.55;
}

.projects {
  margin-top: clamp(4.5rem, 10vw, 8rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 80px rgba(16, 42, 43, 0.18);
  outline: none;
  transform: translateY(-4px);
}

.project-copy {
  display: grid;
  gap: 0.35rem;
}

.project-name {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.project-description {
  color: var(--muted);
  font-size: 1rem;
}

.project-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 1.35rem;
}

footer {
  min-height: 5rem;
  padding-block: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 42rem) {
  main,
  footer {
    width: min(100% - 1.4rem, 70rem);
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 0.45rem;
  }

  .project-card {
    gap: 1rem;
  }

  .project-arrow {
    width: 2.8rem;
    height: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
