@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/lexend-latin.woff2") format("woff2");
}

:root {
  --bg: #fafafa;
  --bg-gradient: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  --text-main: #0a0a0a;
  --text-secondary: #333333;
  --text-muted: #666666;
  --border: #d0d0d0;
  --accent: #1a2e4a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --space: 8px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: "Lexend", sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: calc(var(--space) * 10) calc(var(--space) * 5);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 150, 50, 0.035);
  z-index: 9999;
}

main {
  width: 100%;
  max-width: 1200px;
}

nav {
  display: flex;
  gap: calc(var(--space) * 4);
  margin-bottom: calc(var(--space) * 8);
  padding-bottom: calc(var(--space) * 3);
  border-bottom: 1px solid var(--border);
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

nav a:hover {
  color: var(--text-main);
}
nav a.active {
  color: var(--text-main);
}

.img-container {
  width: 160px;
  height: 160px;
  margin-bottom: calc(var(--space) * 3);
}
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 calc(var(--space) * 0.5);
  line-height: 1.1;
}

header p {
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0;
  font-size: 18px;
  font-style: italic;
}

section {
  margin-bottom: calc(var(--space) * 7);
}
p {
  font-weight: 300;
  margin: 0 0 calc(var(--space) * 3);
  color: var(--text-secondary);
  font-size: 17px;
}
p:last-child {
  margin-bottom: 0;
}

.link-underline {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--text-main), var(--text-main));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s var(--ease);
}
.link-underline:hover {
  background-size: 100% 1px;
}

.social-nav {
  display: flex;
  gap: calc(var(--space) * 1.5);
  flex-wrap: wrap;
  margin-top: calc(var(--space) * 4);
}
.social-nav a {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space) * 0.75);
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: calc(var(--space) * 1.25) calc(var(--space) * 2.5);
  border: 1px solid var(--text-main);
  background: transparent;
  transition: all 0.25s var(--ease);
}
.social-nav a:hover {
  background: var(--text-main);
  color: var(--bg);
}

h2 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin: 0 0 calc(var(--space) * 3);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
li {
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: calc(var(--space) * 2);
}
li:last-child {
  margin-bottom: 0;
}

.icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  body {
    padding: calc(var(--space) * 5) calc(var(--space) * 3);
  }
  h1 {
    font-size: 32px;
  }
  .img-container {
    width: calc(var(--space) * 17.5);
    height: calc(var(--space) * 17.5);
  }
  nav {
    gap: calc(var(--space) * 2);
  }
  .social-nav a {
    width: 100%;
    justify-content: center;
  }
  h2 {
    letter-spacing: 0.06em;
  }
}

.masonry {
  position: relative;
}

.masonry-sizer,
.masonry-item {
  width: calc(33.333% - 16px);
  margin: 0 8px 16px;
}

.masonry-item a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease);
}

.masonry-item a:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .masonry-sizer,
  .masonry-item {
    width: calc(50% - 16px);
  }
}

@media (max-width: 500px) {
  .masonry-sizer,
  .masonry-item {
    width: calc(100% - 16px);
  }
}
