:root {
  color-scheme: light;
  --bg: #fefefe;
  --text: #5a8736;
  --muted: #476d2c;
  --line: currentColor;
  --panel: #f7faf4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgb(90 135 54 / 0.11) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

.site-header {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid currentColor;
}

.brand,
.site-header nav a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--text);
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.hero .site-header {
  border-bottom: 1px solid currentColor;
}

.hero-content {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 36px;
}

.hero-panel {
  min-height: clamp(420px, 68vh, 720px);
  padding: clamp(22px, 6vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
}

.hero-panel h1 {
  max-width: 880px;
}

.hero-panel h1 span {
  display: block;
  font-family: "Domine", Georgia, serif;
  font-style: normal;
  font-weight: 400;
}

.hero-panel p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
}

.projects-main {
  padding-top: 46px;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(3.7rem, 11vw, 8.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  border-bottom: 1px solid currentColor;
}

.project-card {
  min-width: 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
  gap: 28px;
  align-items: center;
  background: transparent;
  border-top: 1px solid currentColor;
  border-radius: 0;
}

.image-frame {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(220px, 24vw, 330px);
  justify-self: end;
  background: var(--text);
  border: 1px solid currentColor;
  border-radius: 10px;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  background-image: var(--project-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.75;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-content {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  text-align: left;
}

.card-content h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.button,
.contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button {
  min-height: 54px;
  padding: 14px 26px;
}

.button::before {
  content: "\2192";
  margin-right: 8px;
}

.button:hover,
.button:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible {
  background: var(--text);
  color: var(--bg);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
}

.portrait {
  width: 100%;
  max-height: 780px;
  height: auto;
  object-fit: contain;
  border: 1px solid currentColor;
  border-radius: 10px;
}

.about-copy {
  max-width: 660px;
}

.about-copy h1 {
  margin-bottom: 26px;
}

.about-copy h1 span {
  display: block;
  font-family: "Domine", Georgia, serif;
  font-weight: 400;
}

.about-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-list a {
  text-transform: none;
}

@media (max-width: 920px) {
  .project-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .image-frame,
  .card-content {
    grid-column: 1;
    grid-row: auto;
  }

  .image-frame {
    max-height: none;
    justify-self: stretch;
  }

  .about-layout {
    gap: 34px;
  }

  .portrait {
    max-height: 560px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 28px, 1200px);
    padding: 20px 0;
  }

  main {
    width: min(100% - 28px, 1200px);
    padding: 48px 0 56px;
  }

  .hero-content {
    width: min(100% - 28px, 1200px);
    padding: 28px 0 30px;
  }

  .hero-panel {
    min-height: 430px;
    gap: 24px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 5.1rem);
  }

  .projects-main {
    padding-top: 26px;
  }

  .card-content {
    min-height: 0;
    padding: 0;
  }

  .button,
  .contact-list a {
    width: 100%;
  }
}
