@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --bg-color: #fff;
  --text-color: #333;
  --text-secondary: #444;
  --heading-color: #222;
  --divider-color: #777;
  --link-color: #333;
  --link-border: #777;
  --link-border-hover: #111;
}

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

body {
  color: var(--text-color);
  background-image: url('binding-light-1920x1080.png');
  font-family: 'Clash Display', Georgia, serif;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: end;
}

header > img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

header > div {
  display: grid;
}

h1 {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

section {
  position: relative;
}

h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid var(--link-border);
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--link-border-hover);
}

.italic-text {
  font-style: italic;
}

.divider {
  margin: 3em 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--divider-color),
    transparent
  );
}

.project {
  margin-bottom: 24px;
}

.row {
  display: flex;
}

.row.top {
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 0;
}

.row > div {
  flex: 1;
}

@media (max-width: 480px) {
  main {
    padding: 40px 16px;
  }

  header {
    gap: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .row.top {
    flex-direction: column;
    gap: 30px;
    max-width: 300px;
  }
}
