.mid-year-sale {
  --mid-ink: #1c1a17;
  --mid-soft-ink: #514c45;
  --mid-cream: #f6f0e6;
  --mid-paper: #fffbf4;
  --mid-accent: #7b5f4d;
  --mid-accent-hover: #3a3228;
  --mid-rust: #9b4d32;
  --mid-clay: #d8b596;
  --mid-line: rgba(28, 26, 23, 0.14);
  --mid-shadow: 0 24px 80px rgba(28, 26, 23, 0.14);
  background:
    radial-gradient(circle at 8% 18%, rgba(155, 77, 50, 0.16), transparent 30rem),
    radial-gradient(circle at 86% 8%, rgba(123, 95, 77, 0.16), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, #f4eadf 46%, #fbf7f0 100%);
  color: var(--mid-ink);
  overflow-x: hidden;
  font-family: var(--body-font);
  font-style: var(--body-font-style);
}

.mid-year-sale *,
.mid-year-sale *::before,
.mid-year-sale *::after {
  box-sizing: border-box;
}

.mid-year-sale img {
  display: block;
  max-width: 100%;
}

.mid-year-sale__hero {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  padding: clamp(34px, 4.1vw, 58px) 0 clamp(48px, 6.2vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.mid-year-sale__hero-copy {
  max-width: 1048px;
  position: relative;
  z-index: 2;
}

.mid-year-sale__eyebrow,
.mid-year-sale__kicker {
  margin: 0 0 18px;
  color: var(--mid-rust);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mid-year-sale h1,
.mid-year-sale h2,
.mid-year-sale h3,
.mid-year-sale p {
  font-family: var(--body-font);
  font-style: var(--body-font-style);
  letter-spacing: 0;
}

.mid-year-sale h1 {
  margin: 0;
  max-width: 1048px;
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1;
  font-weight: 600;
  color: var(--mid-ink);
}

.mid-year-sale__lead {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--mid-soft-ink);
}

.mid-year-sale__hero-payment {
  max-width: 640px;
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--mid-accent);
  color: var(--mid-ink);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.5;
  font-weight: 500;
}

.mid-year-sale__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.mid-year-sale__button {
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mid-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(28, 26, 23, 0.12);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.mid-year-sale__button:hover,
.mid-year-sale__button:focus-visible {
  transform: translateY(-2px);
}

.mid-year-sale a.mid-year-sale__button--dark,
.mid-year-sale a.mid-year-sale__button--dark:visited {
  border-color: #17130f;
  background: #17130f;
  color: #fffaf2 !important;
}

.mid-year-sale a.mid-year-sale__button--light,
.mid-year-sale a.mid-year-sale__button--light:visited {
  border-color: #17130f;
  background: #fffaf2;
  color: #17130f !important;
}

.mid-year-sale a.mid-year-sale__button--dark:hover,
.mid-year-sale a.mid-year-sale__button--dark:focus-visible,
.mid-year-sale a.mid-year-sale__button--light:hover,
.mid-year-sale a.mid-year-sale__button--light:focus-visible {
  border-color: var(--mid-accent-hover);
  background: var(--mid-accent-hover);
  color: #fffaf2 !important;
}

.mid-year-sale__final a.mid-year-sale__button--light,
.mid-year-sale__final a.mid-year-sale__button--light:visited {
  border-color: #fffaf2;
  background: #fffaf2;
  color: #17130f !important;
}

.mid-year-sale__final a.mid-year-sale__button--light:hover,
.mid-year-sale__final a.mid-year-sale__button--light:focus-visible {
  border-color: #d8b596;
  background: #d8b596;
  color: #17130f !important;
}

.mid-year-sale__terms {
  margin: 24px 0 0;
  color: var(--mid-soft-ink);
  font-size: 14px;
  line-height: 1.5;
}

.mid-year-sale__hero-media {
  position: relative;
  min-height: 560px;
}

.mid-year-sale__image-stack {
  position: relative;
  height: 100%;
  min-height: 560px;
}

.mid-year-sale__hero-img {
  position: absolute;
  width: min(72%, 420px);
  height: 78%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--mid-shadow);
  transition: transform 700ms ease, filter 700ms ease;
}

.mid-year-sale__hero-img--primary {
  top: 0;
  right: 8%;
}

.mid-year-sale__hero-img--secondary {
  width: min(56%, 320px);
  height: 48%;
  left: 0;
  bottom: 2%;
  filter: saturate(0.92) contrast(1.05);
}

.mid-year-sale__hero-media:hover .mid-year-sale__hero-img--primary {
  transform: translateY(-8px) scale(1.025);
}

.mid-year-sale__hero-media:hover .mid-year-sale__hero-img--secondary {
  transform: translateY(8px) scale(1.025);
}

.mid-year-sale__offer-card {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: min(260px, 58%);
  padding: 22px;
  border-radius: 8px;
  background: var(--mid-accent);
  color: #fffaf2;
  box-shadow: var(--mid-shadow);
}

.mid-year-sale__offer-card span,
.mid-year-sale__offer-card strong,
.mid-year-sale__offer-card small {
  display: block;
}

.mid-year-sale__offer-card span {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1;
  font-weight: 700;
}

.mid-year-sale__offer-card strong {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mid-year-sale__offer-card small {
  margin-top: 4px;
  color: rgba(255, 250, 242, 0.74);
}

.mid-year-sale .page-width {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.mid-year-sale__intro,
.mid-year-sale__desire {
  padding: clamp(56px, 7.5vw, 96px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.mid-year-sale__intro h2,
.mid-year-sale__section-head h2,
.mid-year-sale__desire h2,
.mid-year-sale__final h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.06;
  font-weight: 600;
}

.mid-year-sale__intro > p,
.mid-year-sale__desire-copy + .mid-year-sale__proof-grid {
  margin: 0;
}

.mid-year-sale__intro > p {
  color: var(--mid-soft-ink);
  font-size: 17px;
  line-height: 1.7;
}

.mid-year-sale__tier,
.mid-year-sale__products {
  padding: clamp(56px, 7vw, 96px) 0;
}

.mid-year-sale__section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.mid-year-sale__section-head--wide {
  max-width: 980px;
}

.mid-year-sale__section-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--mid-soft-ink);
  font-size: 17px;
  line-height: 1.6;
}

.mid-year-sale__tier-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
  gap: 18px;
  grid-auto-flow: dense;
}

.mid-year-sale__tier-table,
.mid-year-sale__tier-note,
.mid-year-sale__proof-grid article {
  border: 1px solid var(--mid-line);
  border-radius: 8px;
  background: rgba(255, 251, 244, 0.78);
  box-shadow: 0 18px 60px rgba(28, 26, 23, 0.08);
  backdrop-filter: blur(16px);
}

.mid-year-sale__tier-table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.mid-year-sale__tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--mid-line);
}

.mid-year-sale__tier-table tbody .mid-year-sale__tier-row:last-child {
  border-bottom: 0;
}

.mid-year-sale__tier-row th,
.mid-year-sale__tier-row td {
  display: block;
  padding: 0;
  text-align: left;
}

.mid-year-sale__tier-row--head {
  min-height: 48px;
  color: var(--mid-soft-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(123, 95, 77, 0.08);
}

.mid-year-sale__tier-row strong {
  display: block;
  justify-self: start;
  font-size: clamp(18px, 1.55vw, 23px);
}

.mid-year-sale__tier-row td,
.mid-year-sale__tier-row th {
  font-size: 15px;
  font-weight: 600;
}

.mid-year-sale__tier-row--head th {
  font-size: inherit;
  font-weight: inherit;
}

.mid-year-sale__tier-row--top {
  background: var(--mid-ink);
  color: #fffaf2;
}

.mid-year-sale__tier-note {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(20px, 4vw, 36px);
  background: var(--mid-accent);
  color: #fffaf2;
}

.mid-year-sale__tier-note span {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  font-weight: 700;
}

.mid-year-sale__tier-note h3,
.mid-year-sale__tier-note p {
  margin: 0;
}

.mid-year-sale__tier-note h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  font-weight: 600;
}

.mid-year-sale__tier-note p {
  color: rgba(255, 250, 242, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.mid-year-sale__installment {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 242, 0.26);
}

.mid-year-sale__installment strong {
  display: block;
  max-width: 18ch;
  color: #fffaf2;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  font-weight: 700;
}

.mid-year-sale__installment p {
  margin-top: 12px;
  color: rgba(255, 250, 242, 0.86);
}

.mid-year-sale__product-accordion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mid-year-sale__product-card {
  height: 430px;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  color: #fffaf2 !important;
  text-decoration: none;
  background: var(--mid-ink);
  isolation: isolate;
}

.mid-year-sale__product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.76);
  transition: transform 780ms ease, filter 780ms ease;
}

.mid-year-sale__product-card:hover img,
.mid-year-sale__product-card:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.08) brightness(0.74);
}

.mid-year-sale__product-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(28, 26, 23, 0.04), rgba(28, 26, 23, 0.92) 76%, rgba(28, 26, 23, 0.98));
}

.mid-year-sale__product-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 250, 242, 0.86) !important;
}

.mid-year-sale__product-card h3 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(21px, 1.8vw, 30px);
  line-height: 1.08;
  color: #fffaf2 !important;
}

.mid-year-sale__product-card small {
  display: inline-flex;
  margin-top: 14px;
  color: rgba(255, 250, 242, 0.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.mid-year-sale__desire {
  align-items: center;
  padding-bottom: clamp(44px, 5.5vw, 70px);
}

.mid-year-sale__proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}

.mid-year-sale__proof-grid article {
  min-height: 148px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.mid-year-sale__proof-grid strong {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.08;
  font-weight: 600;
}

.mid-year-sale__proof-grid span {
  color: var(--mid-soft-ink);
  font-size: 17px;
  line-height: 1.55;
}

.mid-year-sale__final {
  padding: clamp(44px, 6vw, 72px) 0 clamp(56px, 7.5vw, 96px);
}

.mid-year-sale__final > div {
  padding: clamp(34px, 6vw, 70px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 181, 150, 0.24), transparent 18rem),
    var(--mid-accent);
  color: #fffaf2;
}

.mid-year-sale__final .mid-year-sale__kicker {
  color: #f2d8bd;
}

.mid-year-sale__final p {
  max-width: 720px;
  margin: 22px 0 30px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.mid-year-sale__footer {
  padding: 22px 0 44px;
  color: var(--mid-soft-ink);
  font-size: 14px;
}

@media (max-width: 989px) {
  .mid-year-sale__hero,
  .mid-year-sale__intro,
  .mid-year-sale__desire,
  .mid-year-sale__tier-grid {
    grid-template-columns: 1fr;
  }

  .mid-year-sale__hero {
    min-height: auto;
    padding-top: 42px;
  }

  .mid-year-sale__hero-media,
  .mid-year-sale__image-stack {
    min-height: 560px;
  }

  .mid-year-sale__product-accordion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mid-year-sale__product-card {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .mid-year-sale__hero,
  .mid-year-sale .page-width {
    width: min(100% - 24px, 1180px);
  }

  .mid-year-sale h1 {
    font-size: clamp(34px, 9.8vw, 42px);
    line-height: 1.02;
  }

  .mid-year-sale__lead {
    font-size: 17px;
  }

  .mid-year-sale__hero-actions,
  .mid-year-sale__button {
    width: 100%;
  }

  .mid-year-sale__hero-media,
  .mid-year-sale__image-stack {
    min-height: 440px;
  }

  .mid-year-sale__hero-img--primary {
    right: 0;
    width: 76%;
    height: 76%;
  }

  .mid-year-sale__hero-img--secondary {
    width: 58%;
    height: 44%;
  }

  .mid-year-sale__offer-card {
    width: 72%;
    bottom: 3%;
  }

  .mid-year-sale__tier-note {
    gap: 30px;
  }

  .mid-year-sale__tier-note h3 {
    font-size: 28px;
  }

  .mid-year-sale__tier-note p {
    font-size: 15px;
  }

  .mid-year-sale__installment {
    margin-top: 0;
  }

  .mid-year-sale__intro,
  .mid-year-sale__tier,
  .mid-year-sale__products,
  .mid-year-sale__desire,
  .mid-year-sale__final {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .mid-year-sale__tier-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    padding: 18px 22px;
  }

  .mid-year-sale__tier-row--head {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .mid-year-sale__tier-row td,
  .mid-year-sale__tier-row strong {
    display: grid;
    gap: 6px;
  }

  .mid-year-sale__tier-row td::before {
    content: attr(data-label);
    color: var(--mid-soft-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mid-year-sale__tier-row td {
    font-size: 16px;
  }

  .mid-year-sale__tier-row strong {
    font-size: 24px;
    line-height: 1.08;
  }

  .mid-year-sale__tier-row em {
    font-size: 17px;
  }

  .mid-year-sale__tier-row--top td::before {
    color: rgba(255, 250, 242, 0.66);
  }

  .mid-year-sale__product-accordion,
  .mid-year-sale__proof-grid {
    grid-template-columns: 1fr;
  }

  .mid-year-sale__proof-grid article {
    min-height: auto;
    padding: 24px 22px;
    gap: 12px;
  }

  .mid-year-sale__proof-grid strong {
    font-size: 26px;
  }

  .mid-year-sale__proof-grid span {
    font-size: 17px;
  }

  .mid-year-sale__product-card {
    height: 380px;
  }

  .mid-year-sale__final h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mid-year-sale *,
  .mid-year-sale *::before,
  .mid-year-sale *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
