.theme-page {
  overflow: hidden;
}

.theme-page .theme-hero__grid,
.theme-page .theme-intent__grid,
.theme-page .theme-blue__intro,
.theme-page .theme-blue__pair,
.theme-page .theme-blue__casino,
.theme-page .theme-faq__grid {
  display: grid;
  min-width: 0;
}

.theme-page .theme-hero__grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.theme-page .theme-hero__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 32.5rem;
}

.theme-page .theme-hero__copy h1 {
  max-width: 24rem;
}

.theme-page .theme-hero__copy .intro {
  max-width: 31rem;
}

.theme-page .theme-hero__actions {
  width: 100%;
}

.theme-page .theme-hero__media {
  grid-column: 7 / span 6;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.theme-page .theme-hero__media img {
  width: 100%;
  height: 36.875rem;
  object-fit: cover;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.theme-page .theme-hero__media:hover img {
  opacity: 0.97;
  transform: scale(1.02);
}

.theme-page .theme-hero__media figcaption,
.theme-page .theme-first__media figcaption,
.theme-page .theme-blue__media figcaption,
.theme-page .theme-last__mask-media figcaption,
.theme-page .theme-last__glamour-media figcaption {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-brass);
}

.theme-page .theme-intent__grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

.theme-page .theme-intent__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 31.25rem;
}

.theme-page .theme-intent__guides {
  grid-column: 8 / span 5;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-3);
}

.theme-page .theme-filter {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border: 0;
  border-bottom: 1px solid rgba(183, 154, 98, 0.75);
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-nav);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.theme-page .theme-filter span {
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: 500;
}

.theme-page .theme-filter[aria-pressed="true"] {
  color: var(--color-action);
}

.theme-page .theme-chapter__header {
  width: 100%;
  max-width: 26.875rem;
  margin-bottom: var(--space-9);
}

.theme-page .theme-entry {
  min-width: 0;
}

.theme-page .theme-entry h3 {
  margin-bottom: var(--space-4);
}

.theme-page .theme-entry p {
  max-width: 31rem;
}

.theme-page .theme-entry__ideal {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.theme-page .theme-first__night {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: var(--space-8);
}

.theme-page .theme-first__night .theme-entry__copy {
  grid-column: 1 / span 5;
  min-width: 0;
}

.theme-page .theme-first__shared {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
  min-width: 0;
  margin-bottom: var(--space-8);
}

.theme-page .theme-first__media {
  grid-column: 1 / span 6;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.theme-page .theme-first__media img {
  width: 100%;
  height: 39rem;
  object-fit: cover;
}

.theme-page .theme-entry--riviera {
  grid-column: 8 / span 5;
  min-width: 0;
}

.theme-page .theme-entry--riviera p {
  max-width: 24.5rem;
}

.theme-page .theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.theme-page .theme-tags li {
  min-width: 0;
}

.theme-page .theme-first__twenties {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
  min-width: 0;
}

.theme-page .theme-first__twenties > .theme-entry__copy {
  grid-column: 1 / span 5;
  min-width: 0;
}

.theme-page .theme-material-note {
  grid-column: 7 / span 6;
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--color-oak);
  background: var(--color-surface);
}

.theme-page .theme-material-note p {
  max-width: 27rem;
  margin-bottom: 0;
}

.theme-page .theme-blue__intro {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-8);
}

.theme-page .theme-blue__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 31.25rem;
}

.theme-page .theme-blue__media {
  grid-column: 7 / span 6;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.theme-page .theme-blue__media img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.theme-page .theme-blue__media:hover img {
  opacity: 0.97;
  transform: scale(1.02);
}

.theme-page .theme-blue__pair {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.theme-page .theme-blue__pair > article:first-child {
  grid-column: 1 / span 5;
  min-width: 0;
}

.theme-page .theme-entry--bordered {
  grid-column: 7 / span 5;
  min-width: 0;
  padding-left: var(--space-6);
  border-left: 1px solid var(--color-brass);
}

.theme-page .theme-blue__casino {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.theme-page .theme-blue__casino-copy {
  grid-column: 1 / span 7;
  min-width: 0;
}

.theme-page .theme-blue__casino-copy p {
  max-width: 38.75rem;
}

.theme-page .theme-clarification {
  grid-column: 9 / span 4;
  min-width: 15.625rem;
  padding: var(--space-5);
  border: 1px solid rgba(183, 154, 98, 0.8);
  background: var(--color-surface);
}

.theme-page .theme-clarification p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.theme-page .theme-last__header {
  width: min(100%, 38.75rem);
  margin: 0 auto var(--space-9);
  text-align: center;
}

.theme-page .theme-last__header .eyebrow {
  justify-content: center;
}

.theme-page .theme-last__mask,
.theme-page .theme-last__glamour,
.theme-page .theme-last__voyage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
  min-width: 0;
}

.theme-page .theme-last__mask {
  margin-bottom: var(--space-8);
}

.theme-page .theme-last__mask-media {
  grid-column: 1 / span 5;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.theme-page .theme-last__mask-media img {
  width: 100%;
  height: 33rem;
  object-fit: cover;
}

.theme-page .theme-last__mask > article {
  grid-column: 7 / span 5;
  min-width: 0;
}

.theme-page .theme-last__glamour {
  margin-bottom: var(--space-8);
}

.theme-page .theme-last__glamour > article {
  grid-column: 2 / span 5;
  min-width: 0;
}

.theme-page .theme-last__glamour-media {
  grid-column: 8 / span 5;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.theme-page .theme-last__glamour-media img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
}

.theme-page .theme-last__voyage > article {
  grid-column: 1 / span 5;
  min-width: 0;
}

.theme-page .theme-last__voyage > article p {
  max-width: 33.75rem;
}

.theme-page .theme-milestones {
  grid-column: 7 / span 4;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.theme-page .theme-milestones li {
  display: grid;
  min-width: 0;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-brass);
}

.theme-page .theme-milestones span {
  grid-row: 1 / span 2;
  color: var(--color-brass);
  font-size: var(--text-caption);
  font-weight: 700;
}

.theme-page .theme-milestones strong,
.theme-page .theme-milestones p {
  min-width: 0;
}

.theme-page .theme-milestones p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.theme-page .theme-method__intro {
  width: 100%;
  max-width: 32.5rem;
  margin-bottom: var(--space-8);
}

.theme-page .theme-method__intro p {
  max-width: 32.5rem;
}

.theme-page .theme-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid var(--color-brass);
}

.theme-page .theme-steps > article {
  min-width: 0;
  padding: var(--space-5);
  border-left: 1px solid rgba(183, 154, 98, 0.75);
  transition: background-color var(--transition-base);
}

.theme-page .theme-steps > article:first-child {
  border-left: 0;
}

.theme-page .theme-steps > article:hover {
  background: rgba(255, 253, 248, 0.55);
}

.theme-page .theme-steps span {
  display: block;
  margin-bottom: var(--space-5);
  color: var(--color-action);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.theme-page .theme-steps h3 {
  margin-bottom: var(--space-3);
  font-size: 1.625rem;
}

.theme-page .theme-steps p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.theme-page .theme-contexts__intro {
  width: 100%;
  max-width: 26.25rem;
  margin-bottom: var(--space-8);
}

.theme-page .theme-contexts__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid var(--color-brass);
}

.theme-page .theme-contexts__list > article {
  min-width: 0;
  padding: var(--space-5) var(--space-6);
  border-left: 1px solid var(--color-brass);
}

.theme-page .theme-contexts__list > article:first-child {
  padding-left: 0;
  border-left: 0;
}

.theme-page .theme-contexts__list h3 {
  margin-bottom: var(--space-4);
}

.theme-page .theme-contexts__list p {
  max-width: 22.5rem;
}

.theme-page .theme-faq {
  background-color: var(--color-surface);
  background-image: radial-gradient(circle at 20% 20%, rgba(237, 233, 225, 0.7) 0 1px, transparent 1.5px);
  background-size: 14px 14px;
}

.theme-page .theme-faq__grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.theme-page .theme-faq__intro {
  grid-column: 1 / span 4;
  min-width: 0;
  max-width: 25rem;
}

.theme-page .theme-accordion {
  grid-column: 6 / span 7;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.theme-page .theme-accordion__item {
  min-width: 0;
  border-top: 1px solid var(--color-oak);
}

.theme-page .theme-accordion__item:last-child {
  border-bottom: 1px solid var(--color-oak);
}

.theme-page .theme-accordion h3 {
  margin: 0;
}

.theme-page .theme-accordion button {
  display: grid;
  width: 100%;
  min-height: 3.75rem;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.theme-page .theme-accordion button span {
  position: relative;
  width: 1rem;
  height: 1rem;
  justify-self: end;
}

.theme-page .theme-accordion button span::before,
.theme-page .theme-accordion button span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 1px;
  content: "";
  background: var(--color-brass);
  transform: translate(-50%, -50%);
}

.theme-page .theme-accordion button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform var(--transition-fast);
}

.theme-page .theme-accordion button[aria-expanded="true"] span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.theme-page .theme-accordion__panel {
  width: 100%;
  max-width: 36.875rem;
  padding-bottom: var(--space-5);
}

.theme-page .theme-accordion__panel p {
  margin-bottom: 0;
}

.theme-page .theme-cta {
  background: var(--color-action);
  color: var(--color-surface);
}

.theme-page .theme-cta__inner {
  display: flex;
  width: min(100%, 37.5rem);
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin-inline: auto;
  text-align: center;
}

.theme-page .theme-cta__inner .eyebrow,
.theme-page .theme-cta__inner h2,
.theme-page .theme-cta__inner p {
  margin: 0;
  color: var(--color-surface);
}

.theme-page .theme-cta__inner .eyebrow::after {
  background: var(--color-surface);
}

.theme-page .theme-cta__inner h2 {
  max-width: 34rem;
}

.theme-page .theme-cta__inner p {
  max-width: 35rem;
}

.theme-page .theme-cta__button {
  min-width: 11.25rem;
  border-color: var(--color-surface);
  background: var(--color-surface);
  color: var(--color-action-hover);
}

.theme-page .theme-cta__button:hover {
  background: var(--color-page);
  color: var(--color-action-hover);
}

.theme-page .theme-reading-note {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-oak);
}

.theme-page .theme-reading-note__inner {
  width: min(100%, 42.5rem);
  min-width: 0;
  margin-inline: auto;
}

.theme-page .theme-reading-note__inner h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
}

.theme-page .theme-reading-note__inner p {
  max-width: 42.5rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.theme-page [data-theme-tags] {
  transition: opacity var(--transition-fast);
}

.theme-page .theme-entry--filtered {
  opacity: 0.28;
}

@media (max-width: 64.9375rem) {
  .theme-page .theme-hero__grid,
  .theme-page .theme-intent__grid,
  .theme-page .theme-blue__intro,
  .theme-page .theme-blue__pair,
  .theme-page .theme-blue__casino,
  .theme-page .theme-faq__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .theme-page .theme-hero__copy,
  .theme-page .theme-intent__copy,
  .theme-page .theme-blue__copy,
  .theme-page .theme-faq__intro {
    grid-column: 1 / span 4;
  }

  .theme-page .theme-hero__media,
  .theme-page .theme-intent__guides,
  .theme-page .theme-blue__media {
    grid-column: 5 / span 4;
  }

  .theme-page .theme-hero__media img {
    height: 30rem;
  }

  .theme-page .theme-first__night,
  .theme-page .theme-first__shared,
  .theme-page .theme-first__twenties,
  .theme-page .theme-last__mask,
  .theme-page .theme-last__glamour,
  .theme-page .theme-last__voyage {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .theme-page .theme-first__night .theme-entry__copy,
  .theme-page .theme-first__twenties > .theme-entry__copy,
  .theme-page .theme-last__mask-media,
  .theme-page .theme-last__glamour > article,
  .theme-page .theme-last__voyage > article {
    grid-column: 1 / span 4;
  }

  .theme-page .theme-first__media,
  .theme-page .theme-material-note,
  .theme-page .theme-last__mask > article,
  .theme-page .theme-last__glamour-media,
  .theme-page .theme-milestones {
    grid-column: 5 / span 4;
  }

  .theme-page .theme-entry--riviera {
    grid-column: 5 / span 4;
  }

  .theme-page .theme-blue__pair > article:first-child,
  .theme-page .theme-entry--bordered {
    grid-column: span 4;
  }

  .theme-page .theme-blue__casino-copy {
    grid-column: 1 / span 5;
  }

  .theme-page .theme-clarification {
    grid-column: 6 / span 3;
    min-width: 0;
  }

  .theme-page .theme-accordion {
    grid-column: 5 / span 4;
  }

  .theme-page .theme-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-page .theme-steps > article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(183, 154, 98, 0.75);
  }

  .theme-page .theme-steps > article:nth-child(4) {
    border-top: 1px solid rgba(183, 154, 98, 0.75);
  }
}

@media (max-width: 47.4375rem) {
  .theme-page .theme-hero__grid,
  .theme-page .theme-intent__grid,
  .theme-page .theme-blue__intro,
  .theme-page .theme-blue__pair,
  .theme-page .theme-blue__casino,
  .theme-page .theme-faq__grid,
  .theme-page .theme-first__night,
  .theme-page .theme-first__shared,
  .theme-page .theme-first__twenties,
  .theme-page .theme-last__mask,
  .theme-page .theme-last__glamour,
  .theme-page .theme-last__voyage {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-page .theme-hero__grid,
  .theme-page .theme-intent__grid,
  .theme-page .theme-blue__intro,
  .theme-page .theme-first__shared,
  .theme-page .theme-first__twenties,
  .theme-page .theme-blue__pair,
  .theme-page .theme-blue__casino,
  .theme-page .theme-last__mask,
  .theme-page .theme-last__glamour,
  .theme-page .theme-last__voyage,
  .theme-page .theme-faq__grid {
    gap: var(--space-6);
  }

  .theme-page .theme-hero__copy,
  .theme-page .theme-hero__media,
  .theme-page .theme-intent__copy,
  .theme-page .theme-intent__guides,
  .theme-page .theme-first__night .theme-entry__copy,
  .theme-page .theme-first__media,
  .theme-page .theme-entry--riviera,
  .theme-page .theme-first__twenties > .theme-entry__copy,
  .theme-page .theme-material-note,
  .theme-page .theme-blue__copy,
  .theme-page .theme-blue__media,
  .theme-page .theme-blue__pair > article:first-child,
  .theme-page .theme-entry--bordered,
  .theme-page .theme-blue__casino-copy,
  .theme-page .theme-clarification,
  .theme-page .theme-last__mask-media,
  .theme-page .theme-last__mask > article,
  .theme-page .theme-last__glamour > article,
  .theme-page .theme-last__glamour-media,
  .theme-page .theme-last__voyage > article,
  .theme-page .theme-milestones,
  .theme-page .theme-faq__intro,
  .theme-page .theme-accordion {
    grid-column: 1;
    min-width: 0;
  }

  .theme-page .theme-hero__copy h1,
  .theme-page .theme-hero__copy .intro,
  .theme-page .theme-intent__copy,
  .theme-page .theme-blue__copy,
  .theme-page .theme-entry p,
  .theme-page .theme-entry--riviera p,
  .theme-page .theme-blue__casino-copy p,
  .theme-page .theme-last__voyage > article p,
  .theme-page .theme-method__intro,
  .theme-page .theme-method__intro p,
  .theme-page .theme-contexts__intro,
  .theme-page .theme-faq__intro {
    max-width: none;
  }

  .theme-page .theme-hero__media {
    order: 2;
  }

  .theme-page .theme-hero__media img,
  .theme-page .theme-first__media img,
  .theme-page .theme-blue__media img,
  .theme-page .theme-last__mask-media img,
  .theme-page .theme-last__glamour-media img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .theme-page .theme-chapter__header,
  .theme-page .theme-last__header {
    margin-bottom: var(--space-7);
  }

  .theme-page .theme-first__night,
  .theme-page .theme-first__shared,
  .theme-page .theme-first__twenties,
  .theme-page .theme-last__mask,
  .theme-page .theme-last__glamour {
    margin-bottom: var(--space-7);
  }

  .theme-page .theme-first__shared .theme-first__media {
    order: 1;
  }

  .theme-page .theme-first__shared .theme-entry--riviera {
    order: 2;
  }

  .theme-page .theme-entry--bordered {
    padding-top: var(--space-6);
    padding-left: 0;
    border-top: 1px solid var(--color-brass);
    border-left: 0;
  }

  .theme-page .theme-clarification {
    padding: var(--space-5);
  }

  .theme-page .theme-last__header {
    text-align: center;
  }

  .theme-page .theme-last__glamour-media {
    display: none;
  }

  .theme-page .theme-last__glamour > article {
    padding-bottom: var(--space-7);
    border-bottom: 1px solid var(--color-brass);
  }

  .theme-page .theme-milestones {
    gap: var(--space-3);
  }

  .theme-page .theme-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-page .theme-steps > article,
  .theme-page .theme-steps > article:first-child,
  .theme-page .theme-steps > article:nth-child(3),
  .theme-page .theme-steps > article:nth-child(4) {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: var(--space-3);
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(183, 154, 98, 0.75);
    border-left: 0;
  }

  .theme-page .theme-steps > article:first-child {
    border-top: 0;
  }

  .theme-page .theme-steps span {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .theme-page .theme-steps h3 {
    margin-bottom: var(--space-2);
  }

  .theme-page .theme-contexts__list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    border-top: 0;
  }

  .theme-page .theme-contexts__list > article,
  .theme-page .theme-contexts__list > article:first-child {
    padding: 0 0 0 var(--space-5);
    border-left: 1px solid var(--color-brass);
  }

  .theme-page .theme-contexts__list p {
    max-width: none;
  }

  .theme-page .theme-accordion button {
    min-height: 3.5rem;
  }

  .theme-page .theme-accordion__panel {
    max-width: none;
  }

  .theme-page .theme-cta__inner {
    gap: var(--space-4);
  }

  .theme-page .theme-reading-note {
    padding-block: 2.5rem;
  }
}

@media (max-width: 26.25rem) {
  .theme-page .theme-hero__actions .button,
  .theme-page .theme-cta__button {
    width: 100%;
  }

  .theme-page .theme-steps > article,
  .theme-page .theme-steps > article:first-child,
  .theme-page .theme-steps > article:nth-child(3),
  .theme-page .theme-steps > article:nth-child(4) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-2);
  }

  .theme-page .theme-steps span {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-page [data-theme-tags],
  .theme-page .theme-hero__media img,
  .theme-page .theme-blue__media img {
    transition: none;
  }

  .theme-page .theme-hero__media:hover img,
  .theme-page .theme-blue__media:hover img {
    transform: none;
  }
}
