.p-intro-area {
  --bg-color: var(--color-pale-ivory);
  background-color: var(--bg-color);
}
.p-intro-area:where(body[data-theme-color=green], body[data-theme-color=green] *) {
  --bg-color: var(--color-smoke);
}
.p-intro-area:where(body[data-theme-color=blue], body[data-theme-color=blue] *) {
  --bg-color: var(--color-fog-white);
}

.p-menu-section {
  --title-color: var(--color-coral);
  padding-block: var(--section-gap-sm) var(--section-gap-md);
}
.p-menu-section:where(body[data-theme-color=green], body[data-theme-color=green] *) {
  --title-color: var(--color-turquoise-green);
}
.p-menu-section:where(body[data-theme-color=blue], body[data-theme-color=blue] *) {
  --title-color: var(--color-pale-cerulean);
}
.p-menu-section__inner {
  container-type: inline-size;
}
.p-menu-section__header {
  --bg-color: var(--color-dark-brown);
  --text-color-main: var(--title-color);
}
@media (min-width: 1025px) {
  .p-menu-section__header {
    font-size: 10.5rem;
  }
}
@media (min-width: 526px) and (max-width: 1024px) {
  .p-menu-section__header {
    font-size: 8rem;
  }
}
.p-menu-section__list {
  --column-count: 4;
  --column-gap: 1.5rem;
  --row-gap: 1.5rem;
  margin-top: var(--section-gap-sm);
}
@media (max-width: 1024px) {
  .p-menu-section__list {
    --column-count: 2;
  }
}

.p-menu {
  --color-1: var(--color-pale-taupe);
  --color-2: var(--color-coral);
  --color-3: var(--color-lemon);
  --color-4: var(--color-camel);
  --color-5: var(--color-sage-green);
}
.p-menu:where(body[data-theme-color=green], body[data-theme-color=green] *) {
  --color-1: var(--color-mauve);
  --color-2: var(--color-pastel-green);
  --color-3: var(--color-muted-gold);
  --color-4: var(--color-dusty-beige);
  --color-5: var(--color-muted-purple);
}
.p-menu:where(body[data-theme-color=blue], body[data-theme-color=blue] *) {
  --color-1: var(--color-misty-blue);
  --color-2: var(--color-soft-azure);
  --color-3: var(--color-amber);
  --color-4: var(--color-ochre);
  --color-5: var(--color-avocado);
}
.p-menu:nth-child(15n+1), .p-menu:nth-child(15n+10), .p-menu:nth-child(15n+12) {
  --bg-color: var(--color-1);
}
.p-menu:nth-child(15n+2), .p-menu:nth-child(15n+9), .p-menu:nth-child(15n+15) {
  --bg-color: var(--color-2);
}
.p-menu:nth-child(15n+3), .p-menu:nth-child(15n+6), .p-menu:nth-child(15n+14) {
  --bg-color: var(--color-3);
}
.p-menu:nth-child(15n+4), .p-menu:nth-child(15n+7), .p-menu:nth-child(15n+13) {
  --bg-color: var(--color-4);
}
.p-menu:nth-child(15n+5), .p-menu:nth-child(15n+8), .p-menu:nth-child(15n+11) {
  --bg-color: var(--color-5);
}
.p-menu__link {
  container-type: inline-size;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--color-text-heading);
  background-color: var(--bg-color);
  border-radius: var(--radius-md);
}
@media (hover: hover) {
  .p-menu__link {
    transition: opacity 0.15s;
  }
  .p-menu__link:hover {
    opacity: 0.85;
  }
}
@media (max-width: 525px) {
  .p-menu__link {
    padding-inline: 0.75rem;
  }
}
.p-menu__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4rem;
  aspect-ratio: 1/1;
  background-color: var(--color-off-white);
  border-radius: 50%;
}
@media (max-width: 525px) {
  .p-menu__icon {
    width: 3.25rem;
  }
}
.p-menu__icon > img {
  display: block;
  width: 90%;
}
.p-menu__name {
  flex-grow: 1;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.1;
  text-align: center;
}
@media (max-width: 525px) {
  .p-menu__name {
    font-size: 1.35rem;
  }
}
.p-menu__arrow {
  font-size: 2.1rem;
}
@media (max-width: 525px) {
  .p-menu__arrow {
    display: none;
    font-size: 1.75rem;
  }
}

.p-subject-section {
  padding-block: var(--section-gap-md);
  overflow: hidden;
}
.p-subject-section__subjects {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--section-gap-md);
}

.p-subject {
  --visual-width: 45%;
  --column-gap: 5rem;
  --intersect-width: 3rem;
  --key-color-1: var(--color-rust-red);
  --key-color-2: var(--color-matcha);
  --label-color: var(--color-sky-blue);
  container-type: inline-size;
  position: relative;
  z-index: 0;
}
.p-subject:where(body[data-theme-color=green], body[data-theme-color=green] *) {
  --key-color-1: var(--color-green);
  --key-color-2: var(--color-muted-indigo);
  --label-color: var(--color-dodger-blue);
}
.p-subject:where(body[data-theme-color=blue], body[data-theme-color=blue] *) {
  --key-color-1: var(--color-ultramarine);
  --key-color-2: var(--color-cocoa);
  --label-color: var(--color-cherry);
}
.p-subject:nth-child(odd) {
  --key-color: var(--key-color-1);
}
.p-subject:nth-child(even) {
  --key-color: var(--key-color-2);
}
.p-subject__main {
  display: grid;
}
@media (min-width: 1025px) {
  .p-subject__main {
    grid-template-rows: auto 1fr;
    column-gap: var(--column-gap);
  }
}
@media (max-width: 1024px) {
  .p-subject__main {
    grid-template-areas: "header" "visual" "body";
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1025px) {
  .p-subject__main:is(.p-subject:nth-child(odd) > *) {
    grid-template-areas: "header visual" "body visual";
    grid-template-columns: 1fr var(--visual-width);
  }
}
@media (min-width: 1025px) {
  .p-subject__main:is(.p-subject:nth-child(even) > *) {
    grid-template-areas: "visual header" "visual body";
    grid-template-columns: var(--visual-width) 1fr;
  }
}
.p-subject__header {
  position: relative;
  display: flex;
  grid-area: header;
  align-items: center;
  min-height: 3em;
  padding-block: 0.25em;
  font-size: 3.8rem;
}
@media (max-width: 1024px) {
  .p-subject__header {
    font-size: 3.2rem;
  }
}
@media (max-width: 525px) {
  .p-subject__header {
    font-size: 2.65rem;
  }
}
.p-subject__header::before {
  position: absolute;
  inset-block: 0;
  z-index: -1;
  content: "";
  background-color: var(--key-color);
}
@media (max-width: 1024px) {
  .p-subject__header:is(.p-subject:nth-child(odd) *) {
    padding-right: var(--container-padding);
  }
}
.p-subject__header:is(.p-subject:nth-child(odd) *)::before {
  right: calc(var(--column-gap) * 0.35 * -1);
  left: calc(50cqw - 50 * var(--vw));
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
@media (max-width: 1024px) {
  .p-subject__header:is(.p-subject:nth-child(odd) *)::before {
    right: 0;
  }
}
@media (min-width: 526px) and (max-width: 1024px) {
  .p-subject__header:is(.p-subject:nth-child(even) *) {
    padding-left: calc(var(--container-padding) * 0.5);
  }
}
@media (max-width: 525px) {
  .p-subject__header:is(.p-subject:nth-child(even) *) {
    padding-left: var(--container-padding);
  }
}
.p-subject__header:is(.p-subject:nth-child(even) *)::before {
  right: calc(50cqw - 50 * var(--vw));
  left: calc(var(--column-gap) * 0.35 * -1);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
@media (max-width: 1024px) {
  .p-subject__header:is(.p-subject:nth-child(even) *)::before {
    left: 0;
  }
}
.p-subject__header__main {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2.5rem;
  align-items: center;
}
@media (max-width: 525px) {
  .p-subject__header__main {
    column-gap: 1.25rem;
  }
}
.p-subject__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.1em;
  aspect-ratio: 1/1;
  margin-right: 0.5em;
  background-color: var(--color-off-white);
  border-radius: 50%;
}
@media (max-width: 525px) {
  .p-subject__icon {
    width: 1.9em;
  }
}
.p-subject__icon > img {
  display: block;
  width: 75%;
}
.p-subject__name {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-contrast);
}
.p-subject__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}
@media (max-width: 525px) {
  .p-subject__labels {
    font-size: 1.25rem;
  }
}
.p-subject__labels__item {
  padding: 0.35em 0.75em 0.41em;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-text-contrast);
  background-color: var(--label-color);
  border-radius: var(--radius-md);
}
.p-subject__body {
  grid-area: body;
  padding-top: 3rem;
}
.p-subject__overview {
  --row-gap: 0.5em;
  --prefix-color: var(--key-color);
  margin-bottom: 2rem;
  font-size: 2.3rem;
  line-height: 1.35;
  color: var(--color-text-heading);
}
@media (max-width: 1024px) {
  .p-subject__overview {
    font-size: 1.9rem;
  }
}
.p-subject__notes {
  --prefix-color: var(--key-color);
  margin-top: 2rem;
}
.p-subject__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: flex-end;
  margin-top: 3.5rem;
}
@media (max-width: 1024px) {
  .p-subject__buttons {
    justify-content: center;
  }
}
@media (max-width: 525px) {
  .p-subject__buttons {
    column-gap: 1rem;
  }
}
.p-subject__button {
  min-width: 16rem;
}
.p-subject__visual {
  --bar-width: 3rem;
  grid-area: visual;
  height: fit-content;
  margin-top: 2rem;
}
@media (max-width: 1024px) {
  .p-subject__visual {
    --bar-width: var(--container-padding);
  }
}
.p-subject__visual:is(.p-subject:nth-child(odd) *) {
  margin-right: calc(50cqw - 50 * var(--vw));
}
@media (max-width: 1024px) {
  .p-subject__visual:is(.p-subject:nth-child(odd) *) {
    padding-left: var(--container-padding);
  }
}
.p-subject__visual:is(.p-subject:nth-child(even) *) {
  margin-left: calc(50cqw - 50 * var(--vw));
}
@media (max-width: 1024px) {
  .p-subject__visual:is(.p-subject:nth-child(even) *) {
    padding-right: var(--container-padding);
  }
}
.p-subject__visual__image {
  position: relative;
  aspect-ratio: 1/0.65;
  overflow: hidden;
}
.p-subject__visual__image::before {
  position: absolute;
  top: 0;
  width: var(--bar-width);
  height: 100%;
  content: "";
  background-color: var(--key-color);
}
@media (max-width: 1024px) {
  .p-subject__visual__image::before {
    display: none;
  }
}
.p-subject__visual__image:is(.p-subject:nth-child(odd) *) {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.p-subject__visual__image:is(.p-subject:nth-child(odd) *)::before {
  right: 0;
}
.p-subject__visual__image:is(.p-subject:nth-child(even) *) {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.p-subject__visual__image:is(.p-subject:nth-child(even) *)::before {
  left: 0;
}
.p-subject__visual__image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-subject__visual__footer {
  container-type: inline-size;
}
.p-subject__visual__footer:is(.p-subject:nth-child(odd) *) {
  padding-right: var(--bar-width);
  translate: calc(var(--column-gap) / -2);
}
@media (max-width: 525px) {
  .p-subject__visual__footer:is(.p-subject:nth-child(odd) *) {
    padding-left: calc(var(--container-padding) * 0.5);
  }
}
.p-subject__visual__footer:is(.p-subject:nth-child(even) *) {
  padding-left: var(--bar-width);
  text-align: right;
  translate: calc(var(--column-gap) / 2);
}
@media (max-width: 525px) {
  .p-subject__visual__footer:is(.p-subject:nth-child(even) *) {
    padding-right: calc(var(--container-padding) * 0.5);
  }
}
.p-subject__visual__text {
  --max-cqw: 98cqw;
  --letter-spacing: 0.1;
  --total-letter-spacing: calc(var(--letter-spacing) * var(--normal-text-count));
  position: relative;
  margin-top: calc(var(--row-count) * -0.65em);
  font-family: var(--font-english);
  font-size: min(var(--max-cqw) / (var(--real-text-count) + var(--total-letter-spacing)), 8rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: calc(var(--letter-spacing) * 1em);
  white-space: nowrap;
  -webkit-text-stroke: 0.03em var(--key-color);
  -webkit-text-fill-color: transparent;
  paint-order: stroke fill;
}
.p-subject__columns {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--section-gap-xs);
  margin-top: var(--section-gap-sm);
}

.p-column {
  --row-gap: 3rem;
  --bg-color: var(--color-ivory);
  display: flex;
  column-gap: 3rem;
  padding: 4.5rem 3.75rem;
  background-color: var(--bg-color);
  border-radius: var(--radius-md);
}
.p-column:where(body[data-theme-color=green], body[data-theme-color=green] *) {
  --bg-color: var(--color-isabelline);
}
.p-column:where(body[data-theme-color=blue], body[data-theme-color=blue] *) {
  --bg-color: var(--color-pale-bud);
}
@media (max-width: 1024px) {
  .p-column {
    display: grid;
    grid-template-columns: 1fr;
    padding-inline: var(--container-padding);
  }
}
@media (max-width: 525px) {
  .p-column {
    --row-gap: 2.5rem;
    padding-block: 2.75rem;
  }
}
.p-column__header {
  margin-bottom: var(--row-gap);
}
.p-column__heading {
  display: inline;
  padding: 0.25em 0.65em 0.32em;
  font-size: 2.5rem;
  line-height: 1.7;
  color: var(--color-text-contrast);
  background-color: var(--key-color);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  border-radius: var(--radius-md);
}
@media (max-width: 525px) {
  .p-column__heading {
    font-size: 2.1rem;
  }
}
.p-column__main {
  flex: 1;
  max-width: 70rem;
  margin-inline: auto;
}
@media (min-width: 1025px) {
  .p-column__visual {
    order: 2;
    width: 32%;
  }
}
@media (max-width: 1024px) {
  .p-column__visual {
    order: -1;
    margin-bottom: var(--row-gap);
  }
}
.p-column__image {
  width: 100%;
  border-radius: var(--radius-md);
}

.p-collab {
  --bg-color: var(--color-lemon);
  --heading-bg-color: var(--color-teal-blue);
  padding-block: var(--section-gap-md);
  background-color: var(--bg-color);
}
.p-collab:where(body[data-theme-color=green], body[data-theme-color=green] *) {
  --bg-color: var(--color-pear);
  --heading-bg-color: var(--color-dark-brown);
}
.p-collab:where(body[data-theme-color=blue], body[data-theme-color=blue] *) {
  --bg-color: var(--color-soft-cyan);
  --heading-bg-color: var(--color-midnight-blue);
}
.p-collab__header {
  text-align: center;
}
.p-collab__heading {
  display: inline;
  padding: 0.25em 0.85em 0.32em;
  font-size: 2.5rem;
  line-height: 1.7;
  color: var(--color-text-contrast);
  background-color: var(--heading-bg-color);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  border-radius: var(--radius-md);
}
@media (max-width: 525px) {
  .p-collab__heading {
    font-size: 2.1rem;
  }
}
.p-collab__intro {
  margin-top: 3.5rem;
  text-align: center;
}
.p-collab__list {
  margin-top: 5rem;
}
@media (max-width: 1024px) {
  .p-collab__list {
    --column-count: 2;
    --column-gap: 2rem;
    --row-gap: 2rem;
  }
}
@media (max-width: 525px) {
  .p-collab__list {
    --column-count: 1;
    --row-gap: 1.75rem;
  }
}