:root {
  color-scheme: light;
  --ink: #111915;
  --paper: #f4f0e8;
  --green: #0d7a4b;
  --line: rgba(17, 25, 21, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, sans-serif;
}

a { color: inherit; }

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  font: 900 1.25rem/1 Manrope, sans-serif;
  text-decoration: none;
}

.header-cta,
.gallery-close a {
  display: inline-flex;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

main { padding: 64px 0 80px; }

.gallery-hero,
.gallery-close {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 900 clamp(3rem, 8vw, 7.5rem)/.9 Manrope, sans-serif;
  letter-spacing: -.07em;
}

.gallery-hero > p:last-child {
  max-width: 760px;
  margin: 30px auto 0;
  color: #435048;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1400px, calc(100% - 40px));
  margin: 72px auto 0;
}

.design-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: 0 24px 70px rgba(17, 25, 21, .08);
}

.preview-shell {
  height: 610px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #d9ded9;
}

.preview-shell iframe {
  width: 1440px;
  height: 1900px;
  border: 0;
  transform: scale(.32);
  transform-origin: 0 0;
  pointer-events: none;
}

.design-copy { padding: 25px; }

.design-copy p {
  margin: 0 0 9px;
  color: #647069;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.design-copy h2 {
  margin: 0 0 22px;
  font: 900 clamp(1.55rem, 3vw, 2.2rem)/1 Manrope, sans-serif;
  letter-spacing: -.04em;
}

.design-copy a {
  color: var(--green);
  font-weight: 900;
  text-underline-offset: 4px;
}

.gallery-close {
  margin-top: 90px;
  padding: 60px 30px;
  border-radius: 30px;
  background: #dfeade;
}

.gallery-close h2 {
  max-width: 720px;
  margin: 0 auto 28px;
  font: 900 clamp(2rem, 5vw, 4rem)/1 Manrope, sans-serif;
  letter-spacing: -.05em;
}

@media (max-width: 960px) {
  .design-grid { grid-template-columns: 1fr; max-width: 680px; }
  .preview-shell { height: 500px; }
  .preview-shell iframe { transform: scale(.46); }
}

@media (max-width: 560px) {
  .gallery-header { align-items: flex-start; }
  .header-cta { max-width: 175px; text-align: center; }
  main { padding-top: 36px; }
  .preview-shell { height: 420px; }
  .preview-shell iframe { transform: scale(.24); }
}
