.themes-page {
  overflow: clip;
}

.themes-page .section {
  position: relative;
}

.themes-hero {
  position: relative;
  min-height: 47.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  color: var(--color-white);
  background: var(--color-sea-blue-deep);
}

.themes-hero__media,
.themes-hero__content {
  grid-area: 1 / 1;
  min-width: 0;
}

.themes-hero__media {
  overflow: hidden;
}

.themes-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(9, 44, 63, 0.79) 0%, rgba(9, 44, 63, 0.58) 37%, rgba(9, 44, 63, 0.12) 72%, rgba(9, 44, 63, 0.08) 100%);
}

.themes-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 47.5rem;
  object-fit: cover;
  object-position: center center;
}

.themes-hero__content {
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-32);
}

.themes-hero__content > * {
  min-width: 0;
  margin: 0;
}

.themes-hero__content h1 {
  max-width: 32rem;
  color: var(--color-white);
}

.themes-hero__eyebrow {
  color: var(--color-white);
}

.themes-hero__intro {
  max-width: 32.5rem;
  font-family: var(--font-serif);
  font-size: var(--text-intro);
  line-height: var(--leading-intro);
}

.themes-hero__support {
  max-width: 30rem;
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.themes-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.themes-hero__actions > * {
  min-width: 0;
}

.themes-hero .text-link {
  color: var(--color-white);
  text-decoration-color: var(--color-brass);
}

.themes-thread__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(21rem, 5fr);
  gap: var(--space-16);
  align-items: start;
}

.themes-thread__manifest,
.themes-thread__markers,
.themes-marker {
  min-width: 0;
}

.themes-thread__manifest {
  max-width: 38.75rem;
}

.themes-thread__intro {
  max-width: 38.75rem;
}

.themes-thread__rule,
.themes-chapter-head__rule,
.themes-frame__rule {
  width: 4.5rem;
  height: 1px;
  background: var(--color-brass);
}

.themes-thread__markers {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.themes-marker {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-brass);
}

.themes-marker > * {
  margin: 0;
}

.themes-marker > * + * {
  margin-top: var(--space-3);
}

.themes-marker__number,
.theme-card__meta,
.theme-card__badge,
.themes-frame__label,
.themes-path__number,
.themes-compose__number {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.themes-marker__number {
  color: var(--color-sea-blue);
}

.themes-marker--social .themes-marker__number {
  color: var(--color-olive);
}

.themes-first {
  padding-block: clamp(6rem, 10vw, 9rem);
}

.themes-chapter-head {
  width: min(100%, 37.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.themes-chapter-head > * {
  min-width: 0;
  margin: 0;
}

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

.theme-card {
  min-width: 0;
  overflow: hidden;
  border: var(--border-stone);
  border-radius: var(--radius-md);
  background: var(--color-marble);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.theme-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(178, 138, 74, 0.85);
}

.theme-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
}

.theme-card__body > * {
  min-width: 0;
  margin: 0;
}

.theme-card__body h3 {
  max-width: 28rem;
}

.theme-card__meta {
  color: var(--color-sea-blue);
}

.theme-card__meta--olive {
  color: var(--color-olive);
}

.theme-card__feature-media {
  width: 100%;
  height: 20rem;
  margin: 0;
  border-radius: 0;
}

.theme-card__toggle {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-sea-blue);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--color-brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.theme-card__toggle:hover {
  color: var(--color-sea-blue-deep);
}

.theme-card__detail {
  width: 100%;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(18, 59, 82, 0.14);
  color: var(--color-sea-blue);
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.theme-card--riviera {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
}

.theme-card--white {
  grid-column: 8 / span 5;
  grid-row: 1;
  background: var(--color-white);
}

.theme-card--paris {
  grid-column: 8 / span 5;
  grid-row: 2;
  margin-top: var(--space-8);
}

.theme-card--provence {
  grid-column: 1 / span 4;
  grid-row: 3;
}

.theme-card--black {
  grid-column: 5 / span 4;
  grid-row: 3;
  margin-top: var(--space-8);
  border-color: transparent;
  background: var(--color-sea-blue);
  color: var(--color-white);
}

.theme-card--black h3,
.theme-card--black .theme-card__meta,
.theme-card--black .theme-card__toggle,
.theme-card--jazz h3,
.theme-card--jazz .theme-card__meta,
.theme-card--jazz .theme-card__toggle {
  color: var(--color-white);
}

.theme-card--black .theme-card__toggle,
.theme-card--jazz .theme-card__toggle {
  text-decoration-color: var(--color-brass);
}

.themes-second {
  padding-block: clamp(6rem, 10vw, 9rem);
}

.themes-second__layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-6);
  align-items: start;
}

.themes-second__intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
}

.themes-second__intro > * {
  min-width: 0;
  margin: 0;
}

.themes-second__intro .eyebrow {
  color: var(--color-terracotta-soft);
}

.themes-second__intro h2 {
  color: var(--color-white);
}

.themes-second__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  min-width: 0;
}

.themes-second__mosaic > * {
  min-width: 0;
}

.theme-card--glamour {
  grid-column: 1;
  grid-row: 1;
  background: var(--color-marble-warm);
}

.theme-card--cinema {
  grid-column: 2;
  grid-row: 1;
}

.theme-card--jazz {
  grid-column: 1 / span 2;
  grid-row: 2;
  border-color: transparent;
  background: var(--color-sea-blue-deep);
  color: var(--color-white);
}

.theme-card--social {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.theme-card--social:nth-of-type(4) {
  grid-column: 1;
  grid-row: 3;
}

.theme-card--social:nth-of-type(5) {
  grid-column: 2;
  grid-row: 3;
}

.theme-card__social-media {
  width: 100%;
  height: 18rem;
  margin: 0;
  border-radius: 0;
}

.theme-card__social-media img {
  object-position: 50% 42%;
}

.theme-card__badge {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: #d9dfce;
  color: var(--color-sea-blue-deep);
}

.themes-finder__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-12);
  align-items: end;
}

.themes-finder__copy,
.themes-finder__filters {
  min-width: 0;
}

.themes-finder__copy {
  max-width: 32.5rem;
}

.themes-finder__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
}

.themes-finder__filters button {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(18, 59, 82, 0.35);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-sea-blue);
  font-size: var(--text-sm);
  font-weight: 700;
}

.themes-finder__filters button:hover,
.themes-finder__filters button[aria-pressed="true"] {
  border-color: var(--color-sea-blue);
  background: var(--color-sea-blue);
  color: var(--color-white);
}

.themes-finder__status {
  margin-top: var(--space-6);
  color: var(--color-sea-blue);
  font-size: var(--text-sm);
  font-weight: 700;
}

.themes-finder__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: var(--space-4);
  border-top: var(--border-stone);
}

.themes-finder__list article {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) minmax(7rem, 2fr);
  gap: var(--space-4);
  align-items: center;
  min-width: 0;
  padding-block: var(--space-4);
  border-bottom: var(--border-stone);
}

.themes-finder__list article > * {
  min-width: 0;
  margin: 0;
}

.themes-finder__list h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}

.themes-finder__list p {
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.themes-finder__list a {
  justify-self: end;
  white-space: nowrap;
}

.themes-paths__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-16);
  align-items: start;
}

.themes-paths__intro,
.themes-paths__items {
  min-width: 0;
}

.themes-paths__intro {
  max-width: 31.25rem;
}

.themes-paths__eyebrow {
  color: var(--color-olive);
}

.themes-paths__items {
  display: flex;
  flex-direction: column;
}

.themes-path {
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, 5fr);
  gap: var(--space-4);
  min-width: 0;
  padding-block: var(--space-6);
  border-top: var(--border-stone);
}

.themes-path:last-child {
  border-bottom: var(--border-stone);
}

.themes-path > * {
  min-width: 0;
  margin: 0;
}

.themes-path__number {
  color: var(--color-olive);
}

.themes-path div {
  min-width: 0;
}

.themes-path h3 {
  margin-bottom: var(--space-3);
}

.themes-frame {
  padding-block: clamp(4rem, 8vw, 8rem);
}

.themes-frame__panel {
  width: min(100%, 72rem);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem);
  border-radius: var(--radius-xl);
}

.themes-frame__copy {
  width: min(100%, 42.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.themes-frame__copy > * {
  min-width: 0;
  margin: 0;
}

.themes-frame__copy .eyebrow {
  color: var(--color-terracotta-soft);
}

.themes-frame__copy h2 {
  color: var(--color-white);
}

.themes-frame__label {
  color: #d9dfce;
}

.themes-frame .text-link {
  color: var(--color-white);
  text-decoration-color: var(--color-brass);
}

.themes-compose__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 4.5rem);
  align-items: start;
}

.themes-compose__intro,
.themes-compose__steps {
  min-width: 0;
}

.themes-compose__intro {
  max-width: 33.75rem;
}

.themes-compose__eyebrow {
  color: var(--color-terracotta);
}

.themes-compose__steps {
  display: flex;
  flex-direction: column;
}

.themes-compose__steps article {
  display: grid;
  grid-template-columns: minmax(2.5rem, 1fr) minmax(0, 6fr);
  gap: var(--space-4);
  min-width: 0;
  padding-block: var(--space-6);
  border-top: var(--border-stone);
}

.themes-compose__steps article:last-child {
  border-bottom: var(--border-stone);
}

.themes-compose__steps article > * {
  min-width: 0;
  margin: 0;
}

.themes-compose__number {
  color: var(--color-terracotta);
}

.themes-compose__steps h3 {
  margin-bottom: var(--space-3);
}

.themes-compose__steps .button {
  margin-top: var(--space-4);
}

.themes-closing {
  padding-block: clamp(6rem, 11vw, 9.5rem);
}

.themes-closing__content {
  width: min(100%, 51.7rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.themes-closing__content > * {
  min-width: 0;
  margin: 0;
}

.themes-closing__content h2 {
  max-width: 39rem;
}

.themes-closing__intro {
  max-width: 38.75rem;
  font-family: var(--font-serif);
  font-size: var(--text-intro);
  line-height: var(--leading-intro);
}

.themes-closing__reassurance {
  width: min(100%, 28.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-brass);
  border-bottom: 1px solid var(--color-brass);
  text-align: left;
}

.themes-closing__reassurance p {
  margin: 0;
}

.themes-closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

.themes-closing__actions > * {
  min-width: 0;
}

@media (max-width: 67.5rem) {
  .themes-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    background: var(--color-marble-warm);
  }

  .themes-hero__content,
  .themes-hero__media {
    grid-area: auto;
  }

  .themes-hero__content {
    width: 100%;
    padding: var(--space-24) var(--gutter);
    color: var(--color-ink);
  }

  .themes-hero__content h1,
  .themes-hero__eyebrow,
  .themes-hero .text-link {
    color: var(--color-sea-blue-deep);
  }

  .themes-hero__media::after {
    display: none;
  }

  .themes-hero__media img {
    min-height: 100%;
    height: 100%;
  }

  .themes-thread__grid {
    gap: var(--space-8);
  }

  .themes-first__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-card--riviera,
  .theme-card--white,
  .theme-card--paris,
  .theme-card--provence,
  .theme-card--black {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .theme-card--riviera {
    grid-column: 1 / span 2;
  }

  .themes-second__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-second__intro {
    width: 100%;
  }

  .themes-paths__grid {
    gap: var(--space-8);
  }
}

@media (max-width: 60rem) {
  .themes-thread__grid,
  .themes-finder__head,
  .themes-paths__grid,
  .themes-compose__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-thread__manifest,
  .themes-thread__intro,
  .themes-paths__intro,
  .themes-compose__intro {
    max-width: none;
  }

  .themes-thread__markers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .themes-finder__filters {
    justify-content: flex-start;
  }

  .themes-finder__list article {
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr);
  }

  .themes-finder__list a {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 47.9375rem) {
  .themes-hero {
    display: flex;
    flex-direction: column;
  }

  .themes-hero__content {
    order: 1;
    gap: var(--space-4);
    padding: var(--space-16) var(--gutter);
  }

  .themes-hero__content h1 {
    max-width: 22rem;
  }

  .themes-hero__intro,
  .themes-hero__support {
    max-width: none;
  }

  .themes-hero__media {
    order: 2;
    width: 100%;
    height: 59vw;
    min-height: 15rem;
    max-height: 23rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .themes-hero__media img {
    height: 100%;
    min-height: 0;
    object-position: 57% center;
  }

  .themes-hero__actions {
    align-items: stretch;
  }

  .themes-hero__actions .button,
  .themes-hero__actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .themes-thread__markers {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-chapter-head {
    width: 100%;
  }

  .themes-first__grid,
  .themes-second__mosaic {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-card--riviera,
  .theme-card--glamour,
  .theme-card--cinema,
  .theme-card--jazz,
  .theme-card--social:nth-of-type(4),
  .theme-card--social:nth-of-type(5) {
    grid-column: 1;
    grid-row: auto;
  }

  .theme-card__body {
    padding: var(--space-6);
  }

  .theme-card__feature-media {
    height: 15rem;
  }

  .theme-card__social-media {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .themes-second__intro,
  .themes-frame__panel {
    padding: var(--space-6);
  }

  .themes-finder__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: thin;
  }

  .themes-finder__filters button {
    flex: 0 0 auto;
  }

  .themes-finder__list article {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    padding-block: var(--space-6);
  }

  .themes-finder__list a {
    grid-column: auto;
    justify-self: start;
  }

  .themes-path {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .themes-compose__steps article {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .themes-compose__steps .button {
    width: 100%;
  }

  .themes-closing__content {
    width: 100%;
  }
}

@media (max-width: 30rem) {
  .themes-frame__panel {
    border-radius: var(--radius-lg);
  }

  .themes-closing__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .themes-closing__actions .button,
  .themes-closing__actions .text-link {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-card:hover {
    transform: none;
  }
}
