:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --text: #111111;
  --muted: #6d6a64;
  --line: #d8d5ce;
  --soft: #ece9e1;
  --dark: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.35;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header,
.landing,
.section,
.footer {
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 247, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.name {
  font-weight: 700;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
}

.landing {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  min-height: calc(100svh - 52px);
  padding-top: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.landing-copy {
  max-width: 520px;
}

.meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.landing-copy p:last-child,
.about-copy p,
.project-info p {
  color: var(--muted);
}

.hero-image {
  margin: 0;
}

.hero-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.image-placeholder,
.project-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: var(--soft);
}

.image-placeholder {
  position: relative;
  overflow: hidden;
}

.image-placeholder span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}

.image-placeholder-main {
  min-height: 460px;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.08), transparent 44%),
    linear-gradient(180deg, #242424, #050505);
}

.image-placeholder-1 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 42%),
    #181818;
}

.image-placeholder-2 {
  background:
    linear-gradient(160deg, transparent 20%, rgba(255, 255, 255, 0.16) 20% 28%, transparent 28%),
    #26241f;
}

.image-placeholder-3 {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    #151515;
  background-size: 42px 42px;
}

.image-placeholder-4 {
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.18), transparent 28%),
    #202020;
}

.image-placeholder-5 {
  background:
    linear-gradient(24deg, transparent 40%, rgba(255, 255, 255, 0.16) 40% 42%, transparent 42%),
    #111111;
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.portfolio-grid {
  display: grid;
  gap: 52px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: start;
}

.project-image {
  display: block;
  background: var(--soft);
}

.project-image:hover {
  text-decoration: none;
}

.project-info {
  display: grid;
  gap: 16px;
  padding-top: 2px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.06;
}

.project-info p {
  margin-bottom: 0;
}

.project-info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.project-info li {
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.project-links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(24px, 5vw, 80px);
}

.about-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.about-copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.contact-section h2 {
  max-width: 700px;
}

.contact-links {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .landing,
  .project,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .landing {
    min-height: auto;
  }

  .image-placeholder-main {
    min-height: 320px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-links {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .landing,
  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .portfolio-grid {
    gap: 42px;
  }

  .project-meta,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
