:root {
  --bg: #EDE7DD;
  --paper: #F9F5EE;
  --accent: #E2571E;
  --accent2: #2E6E7E;
  --amber: #F2C14E;
  --text: #241F1C;
  --muted: #605953;
  --edge: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge) 120px;
}

/* ── hero: overlapping collage ───────────────────────────── */

.hero { padding: 56px 0 96px; }

.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.collage figure { margin: 0; }

.collage__back {
  grid-column: 3 / -1;
  grid-row: 1;
}

.collage__back img {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(36, 31, 28, 0.28);
}

.collage__front {
  grid-column: 1 / 4;
  grid-row: 1;
  align-self: end;
  transform: translateY(38px);
  z-index: 2;
}

.collage__front img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 8px solid var(--paper);
  box-shadow: 0 18px 40px rgba(36, 31, 28, 0.3);
}

.collage__plate {
  grid-column: 2 / 10;
  grid-row: 1;
  align-self: start;
  margin-top: clamp(180px, 30vw, 380px);
  z-index: 3;
  background: var(--paper);
  padding: 30px 34px;
  border-radius: 4px;
  border-left: 5px solid var(--accent);
  box-shadow: 0 20px 44px rgba(36, 31, 28, 0.22);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.collage__plate h1 {
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -0.015em;
}

.collage__plate h1 span {
  display: block;
  margin-top: 10px;
  font-size: clamp(16px, 2.1vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.lede {
  margin: 18px 0 0;
  max-width: 54ch;
  color: var(--muted);
}

/* ── section intros ──────────────────────────────────────── */

.intro {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent2);
  margin: 0 0 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(36, 31, 28, 0.16);
}

.intro--left { text-align: left; }
.intro--right { text-align: right; }

/* ── numbered steps ──────────────────────────────────────── */

.steps { padding: 40px 0 90px; }

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
}

.step-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px dashed rgba(36, 31, 28, 0.2);
}

.step-list li:last-child { border-bottom: 0; }

.step-list__num {
  font-family: Georgia, serif;
  font-size: 68px;
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.85;
}

.step-list h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 10px;
}

.step-list p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

/* ── shop grid ───────────────────────────────────────────── */

.shop { padding: 40px 0 90px; }

.shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.shop__grid article {
  background: var(--paper);
  padding: 26px 28px;
  border-radius: 4px;
  border-top: 4px solid var(--accent2);
}

.shop__grid h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.shop__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.shop__grid figure {
  margin: 0;
  grid-row: span 2;
}

.shop__grid figure img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 4px;
}

/* ── screens carousel with peek ──────────────────────────── */

.screens { padding: 40px 0 90px; }

.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail figure {
  margin: 0;
  flex: 0 0 clamp(210px, 26vw, 280px);
  scroll-snap-align: start;
}

.rail figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(36, 31, 28, 0.14);
  box-shadow: 0 16px 34px rgba(36, 31, 28, 0.18);
}

.rail__art img {
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
}

.rail figcaption {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail__controls {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.rail__controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(36, 31, 28, 0.25);
  background: var(--paper);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.rail__controls button:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* ── legal, expand in place ──────────────────────────────── */

.legal { padding: 40px 0 0; }

.sheet {
  background: var(--paper);
  border-radius: 4px;
  padding: 30px 32px;
  margin-bottom: 22px;
  border-left: 5px solid var(--accent2);
  scroll-margin-top: 24px;
}

.sheet h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 12px;
}

.sheet__summary {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
}

.sheet__toggle {
  margin-top: 18px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.sheet__toggle:hover,
.sheet__toggle[aria-expanded="true"] {
  background: var(--accent);
  color: var(--paper);
}

.sheet__body {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(36, 31, 28, 0.16);
}

.sheet__body h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}

.sheet__body h3:first-child { margin-top: 0; }

.sheet__body p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 16px;
}

.sheet__body a { color: var(--accent2); }

/* ── corner stack nav ────────────────────────────────────── */

.corner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(249, 245, 238, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(36, 31, 28, 0.18);
}

.corner a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.16s ease;
}

.corner a:first-child {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.corner a:hover { color: var(--accent); }

/* ── footer ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid rgba(36, 31, 28, 0.16);
  padding: 30px var(--edge) 40px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0; }

/* ── narrow screens ──────────────────────────────────────── */

@media (max-width: 860px) {
  .collage__back { grid-column: 1 / -1; }

  .collage__front {
    grid-column: 1 / 6;
    transform: translateY(24px);
  }

  .collage__plate {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 48px;
    padding: 24px 22px;
  }

  .step-list li {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .step-list__num { font-size: 46px; }

  .shop__grid { grid-template-columns: 1fr; }

  .shop__grid figure { grid-row: auto; }

  .shop__grid figure img { min-height: 220px; }

  .intro--right { text-align: left; }

  .corner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 14px;
    justify-content: center;
  }

  .corner a:first-child { display: none; }

  main { padding-bottom: 140px; }
}
