:root {
  --ink: #321624;
  --ink-soft: #6d4a5a;
  --berry: #a9345d;
  --berry-deep: #7f2346;
  --rose: #e56c92;
  --rose-dark: #c74c76;
  --blush: #ffd8e4;
  --blush-soft: #fff1f5;
  --cream: #fffaf7;
  --paper: #fff7f8;
  --line: rgba(83, 39, 57, 0.14);
  --line-light: rgba(255, 255, 255, 0.28);
  --shadow: 0 20px 70px rgba(120, 49, 79, 0.12);
  --display: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --radius-lg: 32px;
  --radius-md: 20px;
  --page: min(1180px, calc(100% - 72px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  overflow: hidden;
}

.section-frame {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 18px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 247, 248, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 247, 248, 0.96);
  box-shadow: 0 8px 30px rgba(116, 44, 74, 0.08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand__mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
  line-height: 1;
}

.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
}

.primary-nav__link,
.header-link,
.site-footer__links a,
.site-footer__legal a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 180ms ease;
}

.primary-nav__link::after,
.site-footer__links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--rose-dark);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible,
.primary-nav__link.is-active,
.header-link:hover,
.header-link:focus-visible,
.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--berry);
}

.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after,
.primary-nav__link.is-active::after,
.site-footer__links a:hover::after,
.site-footer__links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  display: flex;
  justify-self: end;
  gap: 10px;
  align-items: center;
}

.header-link span:last-child {
  color: var(--rose-dark);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.header-link:hover span:last-child,
.header-link:focus-visible span:last-child {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle__label {
  font-size: 13px;
  font-weight: 600;
}

.menu-toggle__icon {
  display: grid;
  gap: 5px;
}

.menu-toggle__icon i {
  display: block;
  width: 19px;
  height: 1px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  gap: clamp(46px, 7vw, 106px);
  align-items: center;
  min-height: 665px;
  padding-top: 54px;
  padding-bottom: 76px;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.card-meta,
.hero__visual-note-kicker,
.ritual-detail__label {
  margin: 0;
  color: var(--berry);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(229, 108, 146, 0.14);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
}

h1,
h2 {
  font-family: var(--display);
  letter-spacing: -0.06em;
}

h1 em,
h2 em,
.art-label em {
  color: var(--berry);
  font-style: italic;
}

h1 {
  max-width: 650px;
  margin: 25px 0 22px;
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: 0.98;
}

.hero__lede {
  max-width: 370px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 51px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

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

.button--primary {
  background: var(--berry);
  box-shadow: 0 12px 24px rgba(169, 52, 93, 0.18);
  color: white;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--berry-deep);
  box-shadow: 0 16px 28px rgba(169, 52, 93, 0.24);
}

.button--light {
  background: #fff;
  color: var(--berry-deep);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--blush-soft);
}

.text-link,
.card-link,
.row-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--berry-deep);
  font-size: 13px;
  font-weight: 700;
}

.text-link span,
.card-link span,
.row-link span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span,
.card-link:hover span,
.card-link:focus-visible span,
.row-link:hover span,
.row-link:focus-visible span {
  transform: translateX(4px);
}

.hero__footnote {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 290px;
  margin-top: 74px;
  color: var(--ink-soft);
}

.hero__footnote-line {
  flex: 0 0 22px;
  width: 22px;
  height: 1px;
  margin-top: 10px;
  background: var(--rose);
}

.hero__footnote p {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
}

.hero__visual {
  position: relative;
}

.hero__visual-frame {
  position: relative;
  min-height: 535px;
  overflow: hidden;
  border-radius: 45% 45% 19px 19px / 26% 26% 19px 19px;
  background: #eed8d5;
  box-shadow: var(--shadow);
}

.hero__visual-frame::after {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 535px;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.04);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__visual:hover img {
  transform: scale(1.075);
}

.hero__visual-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 243, 243, 0.78) 0%, rgba(255, 243, 243, 0.12) 44%, rgba(112, 44, 62, 0.03) 100%);
  pointer-events: none;
}

.hero__visual-note {
  position: absolute;
  bottom: 42px;
  left: 42px;
  width: 155px;
  padding: 18px 19px 19px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 15px;
  background: rgba(255, 250, 249, 0.72);
  box-shadow: 0 13px 32px rgba(90, 33, 52, 0.1);
  backdrop-filter: blur(12px);
}

.hero__visual-note-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--berry-deep);
  font-size: 9px;
}

.hero__visual-note strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero__visual-index {
  position: absolute;
  right: 39px;
  bottom: 35px;
  color: rgba(69, 26, 43, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.hero__stamp {
  position: absolute;
  top: 42px;
  right: -28px;
  display: grid;
  width: 100px;
  height: 100px;
  place-content: center;
  gap: 2px;
  border-radius: 50%;
  background: var(--berry);
  color: white;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.05;
  text-align: center;
  transform: rotate(12deg);
  box-shadow: 0 15px 30px rgba(128, 30, 70, 0.2);
}

.hero__stamp-star {
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 14px;
}

.ribbon {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--blush);
}

.ribbon__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  gap: 20px;
  color: var(--berry-deep);
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  white-space: nowrap;
}

.ribbon__track i {
  color: var(--rose-dark);
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
}

.journal,
.ritual,
.notes {
  padding-top: 138px;
  padding-bottom: 138px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading h2,
.ritual__intro h2,
.closing-note h2 {
  margin: 17px 0 0;
  font-size: clamp(43px, 5.4vw, 72px);
  line-height: 0.98;
}

.section-heading__aside {
  max-width: 260px;
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.feature-card--hero {
  display: grid;
  grid-row: span 2;
  grid-template-rows: 1.05fr 0.95fr;
  min-height: 630px;
  background: #fff;
  box-shadow: 0 14px 50px rgba(128, 51, 78, 0.09);
}

.feature-card__art {
  position: relative;
  overflow: hidden;
}

.feature-card__art--rose {
  background: linear-gradient(145deg, #d74e7b 5%, #f49bb5 73%, #f8c4d0 100%);
}

.feature-card__art--rose::before,
.feature-card__art--rose::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.feature-card__art--rose::before {
  top: -45%;
  right: -10%;
  width: 71%;
  height: 135%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.06), 0 0 0 57px rgba(255, 255, 255, 0.05);
  transform: rotate(23deg);
}

.feature-card__art--rose::after {
  right: 19%;
  bottom: -37%;
  width: 48%;
  height: 80%;
  background: rgba(125, 33, 66, 0.17);
  filter: blur(8px);
}

.art-orb,
.art-spark,
.art-label {
  position: absolute;
  z-index: 1;
}

.art-orb {
  display: block;
  border-radius: 50%;
}

.art-orb--one {
  right: 15%;
  bottom: 15%;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 17px rgba(255, 255, 255, 0.14);
}

.art-orb--two {
  top: 17%;
  left: 13%;
  width: 58px;
  height: 58px;
  background: rgba(255, 236, 240, 0.32);
}

.art-spark {
  color: rgba(255, 255, 255, 0.78);
  font-size: 25px;
}

.art-spark--one {
  top: 22%;
  right: 15%;
}

.art-spark--two {
  bottom: 18%;
  left: 21%;
  font-size: 17px;
}

.art-label {
  bottom: 24px;
  left: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--display);
  font-size: 41px;
  letter-spacing: -0.07em;
  line-height: 0.79;
}

.feature-card__content {
  position: relative;
  padding: 30px 31px 30px;
}

.feature-card--hero .feature-card__content {
  padding: 33px 35px 35px;
}

.card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--berry);
  font-size: 10px;
}

.card-meta span + span::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
  vertical-align: 2px;
}

.feature-card h3 {
  max-width: 560px;
  margin: 18px 0 11px;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 43px);
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.feature-card--small h3 {
  max-width: 340px;
  margin-top: 16px;
  font-size: clamp(25px, 2.4vw, 34px);
}

.feature-card p {
  max-width: 470px;
  margin-bottom: 23px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.53;
}

.feature-card--small p {
  max-width: 250px;
}

.card-link {
  padding: 0;
  background: none;
  cursor: pointer;
}

.feature-card--small {
  min-height: 306px;
}

.feature-card--cream {
  background: #f8eadf;
}

.feature-card--cream::before {
  position: absolute;
  right: -50px;
  bottom: -105px;
  width: 245px;
  height: 245px;
  border: 1px solid rgba(169, 52, 93, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(169, 52, 93, 0.06), 0 0 0 50px rgba(169, 52, 93, 0.035);
  content: "";
}

.feature-card--cream .feature-card__content {
  z-index: 1;
}

.feature-card--berry {
  background: var(--berry-deep);
  color: white;
}

.feature-card--berry .card-meta,
.feature-card--berry .feature-card p {
  color: rgba(255, 245, 247, 0.75);
}

.feature-card--berry .card-meta span + span::before {
  background: rgba(255, 255, 255, 0.65);
}

.feature-card--berry::before {
  position: absolute;
  top: -102px;
  right: -74px;
  width: 274px;
  height: 274px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 27px rgba(255, 255, 255, 0.06), 0 0 0 54px rgba(255, 255, 255, 0.04);
  content: "";
}

.feature-card--berry .feature-card__content {
  z-index: 1;
}

.feature-card--berry .card-link {
  color: white;
}

.feature-card__footer-mark {
  position: absolute;
  right: 30px;
  bottom: 23px;
  color: rgba(103, 43, 60, 0.42);
  font-family: var(--display);
  font-size: 46px;
  font-style: italic;
  line-height: 1;
}

.feature-card--berry .feature-card__footer-mark {
  color: rgba(255, 255, 255, 0.35);
}

.ritual {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(45px, 9vw, 140px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.ritual__intro > p:not(.section-kicker):not(.ritual__disclaimer) {
  max-width: 310px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.58;
}

.ritual__disclaimer {
  max-width: 280px;
  margin: 48px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.ritual__panel {
  padding: 11px;
  border-radius: var(--radius-lg);
  background: #f4c5d1;
}

.ritual-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 15px;
}

.ritual-tab {
  flex: 1 1 120px;
  min-height: 43px;
  padding: 8px 14px;
  border-radius: 11px;
  background: transparent;
  color: var(--berry-deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.ritual-tab:hover,
.ritual-tab:focus-visible {
  background: rgba(255, 255, 255, 0.36);
}

.ritual-tab.is-selected {
  background: #fffafa;
  box-shadow: 0 5px 14px rgba(128, 49, 76, 0.1);
  color: var(--ink);
}

.ritual-detail {
  position: relative;
  min-height: 399px;
  margin-top: 5px;
  padding: 39px 40px 26px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--berry-deep);
  color: white;
}

.ritual-detail::before {
  position: absolute;
  top: 32px;
  right: -68px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.06), 0 0 0 57px rgba(255, 255, 255, 0.035);
  content: "";
}

.ritual-detail > * {
  position: relative;
  z-index: 1;
}

.ritual-detail__number {
  position: absolute;
  top: 30px;
  right: 35px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--display);
  font-size: 20px;
  font-style: italic;
}

.ritual-detail__label {
  color: var(--blush);
}

.ritual-detail h3 {
  max-width: 470px;
  margin: 19px 0 16px;
  font-family: var(--display);
  font-size: clamp(31px, 3.2vw, 46px);
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.ritual-detail__copy,
.ritual-detail p:not(.ritual-detail__label) {
  max-width: 490px;
  margin-bottom: 0;
  color: rgba(255, 245, 247, 0.79);
  font-size: 15px;
  line-height: 1.56;
}

.ritual-detail__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.ritual-detail__steps span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.ritual-detail__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 33px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.round-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.round-button:hover,
.round-button:focus-visible,
.round-button.is-saved {
  background: white;
  color: var(--berry-deep);
  transform: scale(1.05);
}

.notes {
  border-top: 1px solid var(--line);
}

.section-heading--compact {
  align-items: center;
  margin-bottom: 34px;
}

.section-heading--compact h2 {
  font-size: clamp(41px, 4.5vw, 61px);
}

.notes-list {
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 120px;
  border-bottom: 1px solid var(--line);
}

.note-row__index {
  color: var(--rose-dark);
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
}

.note-row__copy .card-meta {
  margin-bottom: 8px;
}

.note-row h3 {
  margin-bottom: 0;
}

.row-link {
  max-width: 780px;
  padding: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.12;
  text-align: left;
}

.row-link span {
  color: var(--rose-dark);
  font-family: var(--sans);
  font-size: 21px;
}

.note-row__tag {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.closing-note {
  padding-bottom: 84px;
}

.closing-note__inner {
  position: relative;
  display: flex;
  min-height: 370px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blush);
}

.closing-note__inner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 217, 228, 0.98) 0%, rgba(255, 217, 228, 0.84) 49%, rgba(196, 71, 111, 0.28) 100%);
  content: "";
  pointer-events: none;
}

.closing-note__orb {
  position: absolute;
  top: -52%;
  right: -3%;
  width: 65%;
  height: 155%;
  border: 1px solid rgba(169, 52, 93, 0.19);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(169, 52, 93, 0.06), 0 0 0 63px rgba(169, 52, 93, 0.035);
  transform: rotate(-25deg);
}

.closing-note__copy,
.closing-note__side {
  position: relative;
  z-index: 1;
}

.closing-note__copy {
  max-width: 550px;
  padding: 49px 55px 47px;
}

.closing-note__copy h2 {
  font-size: clamp(42px, 5vw, 69px);
}

.closing-note__copy > p:not(.section-kicker) {
  max-width: 300px;
  margin: 28px 0 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.56;
}

.closing-note__side {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 55px 47px 20px;
  color: rgba(100, 28, 55, 0.72);
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  line-height: 1.1;
  text-align: right;
}

.closing-note__side span:first-child {
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: end;
  min-height: 190px;
  padding-top: 36px;
  padding-bottom: 33px;
  border-top: 1px solid var(--line);
}

.site-footer__brand p {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.site-footer__links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.site-footer__legal a span {
  color: var(--rose-dark);
  font-size: 15px;
}

.story-modal {
  width: min(550px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 25px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 26px 100px rgba(58, 14, 34, 0.26);
}

.story-modal::backdrop {
  background: rgba(50, 22, 36, 0.36);
  backdrop-filter: blur(5px);
}

.story-modal__inner {
  position: relative;
  padding: 44px 45px 40px;
  background: var(--cream);
}

.story-modal__close {
  position: absolute;
  top: 17px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.story-modal__close:hover,
.story-modal__close:focus-visible {
  background: var(--blush);
  color: var(--berry-deep);
}

.story-modal h2 {
  max-width: 430px;
  margin: 15px 0 19px;
  font-size: clamp(35px, 5vw, 53px);
  line-height: 1.02;
}

.story-modal__body {
  margin-bottom: 27px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.story-modal__tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--blush);
  color: var(--berry-deep);
  font-size: 13px;
  line-height: 1.48;
}

.story-modal__tip > span:first-child {
  font-size: 17px;
  line-height: 1;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 15px 35px rgba(50, 22, 36, 0.21);
  color: white;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(198, 76, 118, 0.44);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 42px, 760px);
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 21px;
    left: 21px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 250, 250, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav__link {
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 15px;
  }

  .primary-nav__link:hover,
  .primary-nav__link:focus-visible,
  .primary-nav__link.is-active {
    background: var(--blush-soft);
  }

  .primary-nav__link::after {
    display: none;
  }

  .header-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 76px;
  }

  .hero__copy {
    max-width: 610px;
  }

  .hero__visual {
    width: min(100%, 620px);
    margin-left: auto;
  }

  .hero__visual-frame,
  .hero__visual img {
    min-height: 490px;
  }

  .ritual {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .ritual__intro {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
    align-items: end;
  }

  .ritual__intro .section-kicker,
  .ritual__intro h2 {
    grid-column: 1 / -1;
  }

  .ritual__intro > p:not(.section-kicker):not(.ritual__disclaimer) {
    margin-top: 0;
  }

  .ritual__disclaimer {
    margin: 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__links {
    justify-content: end;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 32px);
    --radius-lg: 24px;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand__name {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-top: 59px;
    padding-bottom: 58px;
  }

  h1 {
    margin-top: 20px;
    font-size: clamp(49px, 15vw, 72px);
  }

  .hero__lede {
    font-size: 16px;
  }

  .hero__footnote {
    margin-top: 50px;
  }

  .hero__visual-frame,
  .hero__visual img {
    min-height: 350px;
  }

  .hero__visual-frame {
    border-radius: 42% 42% 16px 16px / 20% 20% 16px 16px;
  }

  .hero__visual-note {
    bottom: 23px;
    left: 23px;
    width: 141px;
    padding: 15px;
  }

  .hero__visual-note strong {
    font-size: 17px;
  }

  .hero__visual-index {
    right: 22px;
    bottom: 20px;
  }

  .hero__stamp {
    top: 18px;
    right: -28px;
    width: 84px;
    height: 84px;
    font-size: 13px;
  }

  .ribbon__track {
    justify-content: flex-start;
    min-height: 52px;
    gap: 17px;
    font-size: 15px;
  }

  .ribbon__track span:nth-of-type(n + 3),
  .ribbon__track i:nth-of-type(n + 3) {
    display: none;
  }

  .journal,
  .ritual,
  .notes {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .section-heading {
    display: block;
    margin-bottom: 31px;
  }

  .section-heading h2,
  .ritual__intro h2,
  .closing-note h2 {
    font-size: clamp(41px, 13vw, 62px);
  }

  .section-heading__aside {
    max-width: 300px;
    margin-top: 22px;
  }

  .feature-grid {
    display: block;
  }

  .feature-card--hero {
    display: block;
    min-height: 0;
    margin-bottom: 14px;
  }

  .feature-card__art {
    min-height: 230px;
  }

  .feature-card--hero .feature-card__content,
  .feature-card__content {
    padding: 26px 24px 27px;
  }

  .feature-card h3,
  .feature-card--small h3 {
    font-size: 31px;
  }

  .feature-card--small {
    min-height: 270px;
    margin-bottom: 14px;
  }

  .feature-card--small:last-child {
    margin-bottom: 0;
  }

  .ritual__intro {
    display: block;
  }

  .ritual__intro > p:not(.section-kicker):not(.ritual__disclaimer) {
    margin-top: 25px;
  }

  .ritual__disclaimer {
    margin-top: 29px;
  }

  .ritual__panel {
    padding: 7px;
    border-radius: 19px;
  }

  .ritual-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ritual-tab {
    text-align: left;
  }

  .ritual-detail {
    min-height: 430px;
    padding: 30px 25px 22px;
    border-radius: 17px;
  }

  .ritual-detail h3 {
    max-width: 290px;
    margin-top: 21px;
    font-size: 38px;
  }

  .ritual-detail__number {
    top: 26px;
    right: 24px;
  }

  .ritual-detail__steps {
    gap: 6px;
    margin-top: 25px;
  }

  .ritual-detail__steps span {
    font-size: 10px;
  }

  .ritual-detail__footer {
    margin-top: 29px;
  }

  .section-heading--compact {
    display: flex;
    align-items: end;
  }

  .section-heading--compact h2 {
    font-size: 50px;
  }

  .section-heading--compact .text-link {
    margin-bottom: 5px;
    white-space: nowrap;
  }

  .note-row {
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    min-height: 0;
    padding: 22px 0;
  }

  .note-row__index {
    padding-top: 2px;
    font-size: 17px;
  }

  .note-row__tag {
    grid-column: 2;
    width: fit-content;
    margin-top: 4px;
  }

  .row-link {
    font-size: 25px;
  }

  .closing-note {
    padding-bottom: 51px;
  }

  .closing-note__inner {
    min-height: 430px;
  }

  .closing-note__copy {
    padding: 35px 26px 32px;
  }

  .closing-note__side {
    position: absolute;
    right: 22px;
    bottom: 25px;
    padding: 0;
  }

  .closing-note__side span:last-child {
    display: none;
  }

  .site-footer {
    display: block;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .site-footer__links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 29px;
  }

  .site-footer__legal {
    display: flex;
    margin-top: 25px;
  }

  .story-modal__inner {
    padding: 39px 25px 29px;
  }

  .story-modal h2 {
    font-size: 40px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Amazon beauty shelf */
.products {
  padding-top: 126px;
  padding-bottom: 118px;
  border-top: 1px solid var(--line);
}

.products__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 58px;
  margin-bottom: 43px;
}

.products__header h2 {
  margin: 17px 0 0;
  font-size: clamp(43px, 5.4vw, 72px);
  line-height: 0.98;
}

.products__header-copy {
  max-width: 302px;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.products__header-copy p {
  margin: 0;
}

.products__count {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-top: 17px;
  padding: 7px 11px;
  border: 1px solid rgba(169, 52, 93, 0.18);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 216, 228, 0.45);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.products__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 12px 0 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-filter strong {
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
}

.product-filter:hover,
.product-filter:focus-visible {
  border-color: rgba(169, 52, 93, 0.34);
  color: var(--berry-deep);
  transform: translateY(-1px);
}

.product-filter.is-selected {
  border-color: var(--berry);
  color: #fff;
  background: var(--berry);
}

.product-filter.is-selected strong {
  color: var(--blush);
}

.products__amazon-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(169, 52, 93, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card:hover {
  border-color: rgba(169, 52, 93, 0.3);
  box-shadow: 0 16px 34px rgba(128, 51, 78, 0.12);
  transform: translateY(-4px);
}

.product-card__image-wrap {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  padding: 21px;
  background: linear-gradient(145deg, #fff1f5 0%, #f8e3e0 100%);
}

.product-card:nth-child(4n + 2) .product-card__image-wrap {
  background: linear-gradient(145deg, #fff4ee 0%, #f6e1e7 100%);
}

.product-card:nth-child(4n + 3) .product-card__image-wrap {
  background: linear-gradient(145deg, #f9edf4 0%, #f6dbe3 100%);
}

.product-card:nth-child(4n + 4) .product-card__image-wrap {
  background: linear-gradient(145deg, #fff5f1 0%, #f2e4ee 100%);
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(169, 52, 93, 0.09);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-card__content {
  padding: 18px 17px 17px;
}

.product-card__category {
  margin: 0 0 9px;
  color: var(--rose-dark);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--berry-deep);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.product-card__shop span:last-child {
  font-size: 15px;
  line-height: 1;
}

.products__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.45;
}

.products__footer p {
  margin: 0;
}

.products__footer p:first-child span {
  margin-right: 5px;
  color: var(--rose-dark);
}

@media (max-width: 980px) {
  .products__header {
    gap: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .products {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .products__header {
    display: block;
    margin-bottom: 31px;
  }

  .products__header h2 {
    font-size: clamp(41px, 13vw, 62px);
  }

  .products__header-copy {
    max-width: 310px;
    margin-top: 22px;
  }

  .products__controls {
    display: block;
    margin-bottom: 18px;
  }

  .product-filters {
    gap: 6px;
  }

  .product-filter {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .products__amazon-link {
    display: inline-flex;
    margin-top: 17px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card__image-wrap {
    padding: 11px;
  }

  .product-card__badge {
    top: 8px;
    left: 8px;
    padding: 5px 6px;
    font-size: 8px;
  }

  .product-card__content {
    padding: 13px 12px 14px;
  }

  .product-card__category {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .product-card h3 {
    min-height: 43px;
    font-size: 19px;
  }

  .product-card__shop {
    margin-top: 13px;
    padding-top: 11px;
    font-size: 10px;
  }

  .products__footer {
    display: block;
    padding-top: 14px;
    font-size: 10px;
  }

  .products__footer p + p {
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-filter {
    transition: none;
  }
}
