:root {
  --ink: #201b17;
  --muted: #6f665c;
  --paper: #f7f3ec;
  --soft: #e8ded1;
  --sage: #526d54;
  --clay: #a85032;
  --sky: #8aa8af;
  --white: #fffaf3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

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

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--clay);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  min-height: calc(100vh - 74px);
  padding: clamp(32px, 6vw, 76px) clamp(18px, 5vw, 64px) 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.35rem, 5.2vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.hero-copy p:not(.eyebrow),
.intro p,
.about-copy p,
.contact-panel p,
footer {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 30px;
  font-size: clamp(1.04rem, 1.45vw, 1.28rem);
}

.button,
.mail-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 760;
  text-decoration: none;
}

.button:hover,
.button:focus-visible,
.mail-link:hover,
.mail-link:focus-visible {
  background: var(--clay);
  border-color: var(--clay);
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo::before {
  position: absolute;
  inset: 24px -18px -18px 18px;
  z-index: -1;
  border: 1px solid var(--sage);
  content: "";
}

.hero-photo img {
  height: min(72vh, 760px);
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.intro {
  padding: 48px clamp(18px, 5vw, 64px);
  background: var(--ink);
}

.intro p {
  max-width: 980px;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 3.2rem);
  line-height: 1.18;
}

.portfolio {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 780px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
  text-decoration: none;
}

.photo-card.wide {
  grid-column: span 2;
}

.photo-card.tall {
  grid-row: span 2;
}

.photo-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.photo-card:hover img,
.photo-card:focus-visible img {
  transform: scale(1.04);
}

.photo-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 76%, transparent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 760;
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 64px);
  background: var(--soft);
}

.about-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.contact-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 6px;
  background: var(--white);
}

.contact-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.contact-panel p {
  margin: 12px 0 22px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

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

  .hero,
  .about-contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-photo img {
    height: 62vh;
    min-height: 360px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .photo-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

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

  h1 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
  }

  .hero-photo::before {
    inset: 14px -10px -10px 10px;
  }

  .gallery {
    display: block;
  }

  .photo-card {
    display: block;
    margin-bottom: 14px;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .photo-card.wide {
    aspect-ratio: 4 / 3;
  }
}
