:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #203b32;
  background: #e8f0e5;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(2.6rem, 6vw, 5.5rem) clamp(1rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 13% 34%, #f3eddc 0, transparent 39%),
    radial-gradient(ellipse at 80% 5%, #f4f8ec 0, transparent 51%),
    #e6efe4;
}

.heading { text-align: center; margin-bottom: clamp(1.65rem, 4vw, 3rem); }
.heading h1 {
  margin: 0.48rem 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 8vw, 6.25rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.cat-mark {
  position: relative;
  display: inline-block;
  width: 2.2rem;
  height: 1.75rem;
  margin-top: 0.35rem;
  border-radius: 41% 41% 47% 47%;
  background:
    radial-gradient(circle at 34% 48%, #f6faef 5%, transparent 7%),
    radial-gradient(circle at 66% 48%, #f6faef 5%, transparent 7%),
    radial-gradient(circle at 50% 66%, #f6faef 4%, transparent 6%),
    #43685a;
}

.cat-mark::before, .cat-mark::after {
  content: '';
  position: absolute;
  top: -0.31rem;
  width: 0.74rem;
  height: 0.77rem;
  background: #43685a;
  clip-path: polygon(0 100%, 8% 0, 100% 76%, 100% 100%);
}

.cat-mark::before { left: 0.15rem; }
.cat-mark::after { right: 0.15rem; transform: scaleX(-1); }

.gallery {
  width: min(100%, 65rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.25rem);
}

.card {
  min-width: 0;
  margin: 0;
  padding: clamp(0.52rem, 1.25vw, 0.9rem);
  border: 1px solid #fdfdf6;
  border-radius: clamp(1.1rem, 2.5vw, 1.7rem);
  background: #f9fbf3;
  box-shadow: 0 1.25rem 3rem -2rem #3757498c, 0 0.12rem 0.4rem #3a534018;
}

.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.15;
  border-radius: clamp(0.74rem, 1.75vw, 1.12rem);
  background: #ccdaca url('frames.png') no-repeat;
}

/* The preview uses the two photo areas of the supplied mock. */
.frame--first { background-size: 283.13% 209.67%; background-position: 9.73% 60.12%; }
.frame--second { background-size: 255.68% 209.67%; background-position: 93.24% 60.12%; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

figcaption {
  padding: 0.85rem 0.35rem 0.2rem;
  font-size: clamp(1rem, 2vw, 1.23rem);
  font-weight: 600;
  text-align: center;
}

.motion {
  min-height: 2.75rem;
  margin-top: 1.45rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid #648675;
  border-radius: 99rem;
  font: inherit;
  color: #203b32;
  background: #f7faef;
  cursor: pointer;
}

.motion:hover { background-color: #fff; }
.motion:focus-visible { outline: 2px solid #203b32; outline-offset: 3px; }

@media (max-width: 38rem) {
  .gallery { grid-template-columns: minmax(0, 1fr); max-width: 29rem; }
  .page { align-content: start; }
}
