:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #20251e;
  --muted: #555b50;
  --line: #d8dbd1;
  --lime: #d9f867;
  --lime-hover: #c8ed4b;
  --focus: #355c42;
  --content: 1240px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, fieldset { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
button, input { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.wrap { width: min(var(--content), calc(100% - 112px)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 3;
  padding: 12px 16px;
  background: var(--lime);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; min-height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.brand-mark {
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 8px;
}
.brand-mark i { width: 3px; height: 15px; background: currentColor; transform: skewX(-24deg); }
.brand-mark i:first-child { height: 9px; align-self: end; margin-bottom: 9px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  grid-template-areas: "intro photo";
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 24px;
  align-items: center;
  padding-block: 56px 64px;
}

h1, h2 {
  font-weight: 600;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.04; text-wrap: balance; }
.hero-description {
  max-width: 410px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}
.hero-intro { grid-area: intro; }
.hero-action { margin-top: 24px; }

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 120px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.buy:hover { background: var(--lime-hover); }
.buy:active { background: #b8de36; }
.color-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5d5ca;
  border-radius: 12px;
  background: #fffefa;
}
.hero-photo { grid-area: photo; min-width: 0; }
.hero-photo img { height: auto; }
.colors-panel {
  scroll-margin-top: 20px;
  margin-bottom: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.colors-panel h2 { font-size: clamp(31px, 4.1vw, 55px); line-height: 1.05; }
.colors-panel p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.color-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.color-card img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: zoom-in;
}
.photo-zoom:focus-visible { outline-offset: -4px; }
.photo-zoom:hover .photo-caption { background: var(--paper); }
.zoom-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  margin-inline-start: auto;
}
.zoom-icon::before, .zoom-icon::after {
  content: "";
  position: absolute;
}
.zoom-icon::before {
  inset: 1px auto auto 1px;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.zoom-icon::after {
  inset: 9px auto auto 8px;
  width: 5px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}
.gallery-viewer {
  width: min(1442px, calc(100% - 24px), max(760px, calc((100dvh - 80px) * 4 / 3 + 2px)));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}
.gallery-viewer::backdrop { background: rgb(25 29 24 / 75%); }
html:has(.gallery-viewer[open]) { overflow: hidden; }
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 4px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.viewer-label { font-weight: 600; }
.viewer-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.viewer-close:hover { background: #eae8df; }
.viewer-close:focus-visible { outline-offset: -3px; }
.viewer-photo {
  max-height: calc(100dvh - 80px);
  overflow: auto;
  overscroll-behavior: contain;
  background: white;
}
.viewer-photo:focus-visible { outline-offset: -4px; }
.viewer-image {
  display: block;
  width: var(--view-width, 100%);
  max-width: none;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: white;
  cursor: zoom-in;
}
.viewer-image[aria-pressed="true"] { cursor: zoom-out; }
.viewer-image:focus-visible { outline-offset: -4px; }
.viewer-image img { height: auto; }
.photo-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  font-weight: 600;
}
.photo-caption::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid #0005;
  border-radius: 50%;
  background: var(--swatch);
  flex: none;
}

.gift-panel, .season-story {
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.gift-panel {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f1ea;
  scroll-margin-top: 20px;
}
.gift-copy h2 {
  font-size: clamp(31px, 4.1vw, 59px);
  line-height: 1.04;
  text-wrap: balance;
}
.gift-copy p {
  max-width: 435px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}
.gift-photo {
  overflow: hidden;
  aspect-ratio: 1.55;
  border: 1px solid #d5d5ca;
  border-radius: 10px;
  background: #fff;
}
.gift-photo img {
  height: 100%;
  object-fit: cover;
}
.season-story {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: "photos copy";
  padding-block: 64px;
}
.season-story .gift-copy { grid-area: copy; }
.season-story .gift-photo { grid-area: photos; }

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  margin-bottom: 40px;
  padding: 36px 40px;
  border-radius: 12px;
  background: #242d22;
  color: var(--paper);
}
.closing h2 { font-size: clamp(29px, 3.4vw, 48px); line-height: 1.07; }
.closing p { margin-top: 8px; color: #d8dfd1; font-size: 16px; line-height: 1.5; }
.closing .buy { flex: none; }
.closing .buy:focus-visible { outline-color: var(--lime); }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 24px; }
  .season-story { padding-block: 48px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .masthead-inner { min-height: 56px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "intro" "photo"; gap: 24px; padding-block: 32px 36px; }
  h1 { font-size: clamp(36px, 8.5vw, 56px); text-wrap: initial; }
  .hero-description { margin-top: 16px; }
  .hero-photo { max-width: 580px; }
  .colors-panel { margin-bottom: 36px; padding-top: 28px; }
  .colors-panel p { font-size: 16px; }
  .color-cards { gap: 8px; margin-top: 20px; }
  .color-card { border-radius: 8px; }
  .photo-caption { justify-content: center; gap: 4px; padding: 8px 3px; font-size: 12px; }
  .photo-caption::before { display: none; }
  .zoom-icon { margin-inline-start: 0; }
  .gift-panel, .season-story { grid-template-columns: minmax(0, 1fr); }
  .gift-panel { padding: 20px; }
  .gift-copy h2 { text-wrap: wrap; }
  .gift-copy p { margin-top: 12px; }
  .season-story {
    grid-template-areas: "copy" "photos";
    padding-block: 36px;
  }
  .closing { flex-direction: column; align-items: flex-start; margin-bottom: 24px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buy { transition: none; }
}
