:root {
  --background: #f7f3ec;
  --paper: #fffaf2;
  --ink: #1d1b18;
  --muted: #756f66;
  --line: #ded6ca;
  --accent: #7a3f2b;
  --accent-dark: #4c2b22;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration-color: rgba(122, 63, 43, 0.38);
  text-underline-offset: 0.2em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.site-header {
  align-items: center;
  background: rgba(247, 243, 236, 0.86);
  border-bottom: 1px solid rgba(222, 214, 202, 0.72);
  display: flex;
  justify-content: space-between;
  left: 0;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand,
.external-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.external-link {
  color: var(--accent-dark);
}

main {
  padding-bottom: 88px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(44px, 8vw, 92px) clamp(20px, 5vw, 56px) 72px;
}

.hero-image {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(20, 18, 15, 0.12), rgba(20, 18, 15, 0.18)),
    url("image.webp") center 42% / cover;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(62, 48, 33, 0.16);
  min-height: 0;
  order: 2;
}

.hero-copy {
  max-width: 690px;
  padding-top: 0;
}

.eyebrow,
.section-label,
.date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(48px, 8.4vw, 106px);
  margin-top: 12px;
  max-width: 880px;
}

.intro {
  color: #3f3931;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.45;
  margin: 24px 0 0;
  max-width: 850px;
}

.content-section,
.projects {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(18px, 5vw, 76px);
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(42px, 7vw, 76px) clamp(20px, 5vw, 56px);
}

.section-body,
.projects-body {
  max-width: 760px;
}

.section-body h2,
.projects-body h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  margin-bottom: 28px;
}

.section-body p {
  margin: 0 0 22px;
}

.section-body p:last-child,
.project p:last-child {
  margin-bottom: 0;
}

.projects-body {
  display: grid;
  gap: 18px;
}

.project {
  background: rgba(255, 250, 242, 0.64);
  border: 1px solid rgba(222, 214, 202, 0.92);
  border-radius: 6px;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
}

.project h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.project p {
  margin: 0;
}

.project a {
  color: var(--accent-dark);
  font-weight: 600;
  width: fit-content;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: var(--max);
  padding: 34px clamp(20px, 5vw, 56px) 64px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    gap: 14px;
    padding: 15px 20px;
  }

  .brand,
  .external-link {
    font-size: 13px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
  }

  .hero-image {
    aspect-ratio: 4 / 5;
    min-height: 340px;
    order: 0;
    width: 100%;
  }

  .content-section,
  .projects {
    display: block;
  }

  .section-label {
    margin-bottom: 18px;
  }

  .section-body h2,
  .projects-body h2 {
    margin-bottom: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 43px;
  }

  .intro {
    font-size: 19px;
  }
}
