/* Base */
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #000000;
  background: #fff;
  letter-spacing: -0.01em;
}

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

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

:root {
  --container: 1200px;
  --pad: clamp(16px, 5vw, 32px);
  --muted: #4b5563;
  --link: #2563eb;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .08);
  --divider: #e5e7eb;
}

.container {
  width: min(100% - 2*var(--pad), var(--container));
  margin-inline: auto
}

/* Header */
.topbar {
  padding: 20px 40px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid #D2D2D2;
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.name {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.my-name {
  font-weight: 700
}

.my-email {
  color: var(--muted);
  font-size: 14px
}

.my-email:hover {
  color: var(--link);
  font-size: 14px
}

.nav {
  display: flex;
  gap: 18px
}

.nav a {
  color: var(--link);
  font-weight: 400
}

.nav a:hover {
  color: var(--link);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px
}

/* Hero */
.hero {
  padding: clamp(32px, 6vw, 63px) 0 clamp(80px, 12vw, 158px);
}

.hero h1 {
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -.01em;
  max-width: 980px;
  font-weight: 100;
}

/* Cards */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  padding: 12px 0 clamp(48px, 10vw, 238px)
}
.card{
  margin-bottom: 20px;
}
.a card {
  grid-column: span 4;
  border-radius: var(--radius)
}

.card:hover {
  color: var(--link)
}

.card__media {
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background: #f3f4f6
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.card__title {
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 600
}

.card__desc {
  color: #000000;
  padding-top: 6px;
  margin-top: 0;
}

@media (max-width: 980px) {
  .card {
    grid-column: span 6
  }
}

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

  .card {
    grid-column: 1/-1
  }
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 56px;
  color: #111
}

.links {
  display: flex;
  gap: 18px
}

.links a {
  position: relative
}

.links a:hover {
  color: var(--link);
}