/* Content page sections. */

.at-page-hero__label {
  width: auto;
  max-height: 22px;
  margin-inline: auto;
}

.at-page-hero__label--lg {
  max-height: 110px;
}

.at-page-hero--patronbook {
  background-color: var(--at-color-bg);
}

.at-kicker {
  color: var(--at-color-accent);
  font-size: var(--at-text-xl);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.at-centered-note {
  margin-top: var(--at-space-7);
  color: var(--at-color-fg-muted);
  text-align: center;
}

/* ---------- Concept ---------- */

.at-page-hero--concept,
.at-concept,
.at-concept__closing {
  --at-concept-columns: minmax(0, 0.75fr) minmax(0, 1.7fr) minmax(0, 0.75fr);
  --at-concept-gap: clamp(var(--at-space-5), 4vw, var(--at-space-8));
  --at-concept-rule-space: var(--at-space-6);
  background-color: var(--at-color-bg-subtle);
}

.at-page-hero--concept .at-container,
.at-concept .at-container,
.at-concept__closing .at-container {
  max-width: 1520px;
}

.at-page-hero--concept .at-page-hero__title {
  color: var(--at-color-primary);
}

.at-concept__lead {
  max-width: 36em;
  margin: 0 auto var(--at-space-8);
  font-size: var(--at-text-3xl);
  font-weight: 700;
  line-height: var(--at-leading-tight);
  text-align: center;
}

.at-concept__layout {
  display: grid;
  grid-template-columns: var(--at-concept-columns);
  align-items: center;
  gap: var(--at-concept-gap);
}

.at-concept__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--at-space-5);
}

.at-concept__side--left {
  align-items: flex-end;
}

.at-concept__side--right {
  align-items: flex-start;
}

.at-concept__img {
  width: auto;
  height: auto;
}

.at-concept__img--65 {
  max-width: 65%;
}

.at-concept__img--60 {
  max-width: 60%;
}

.at-concept__img--55 {
  max-width: 55%;
}

.at-concept__img--50 {
  max-width: 50%;
}

.at-concept__img--35 {
  max-width: 35%;
}

.at-concept__img--20 {
  max-width: 20%;
}

.at-concept__img--spin {
  animation: at-concept-spin 60s linear infinite;
}

.at-concept__img--float-1 {
  animation: at-concept-float-1 10s ease-in-out infinite;
}

.at-concept__img--float-2 {
  animation: at-concept-float-2 5s ease-in-out infinite;
}

.at-concept__img--float-3 {
  animation: at-concept-float-3 7s ease-in-out infinite;
}

.at-concept__img--float-4 {
  animation: at-concept-float-4 12s ease-in-out infinite;
}

@keyframes at-concept-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes at-concept-float-1 {
  50% {
    transform: translate(20px, -30px);
  }
}

@keyframes at-concept-float-2 {
  50% {
    transform: translateY(-15px);
  }
}

@keyframes at-concept-float-3 {
  50% {
    transform: translateX(20px);
  }
}

@keyframes at-concept-float-4 {
  0%,
  100% {
    transform: translateY(20px);
  }

  50% {
    transform: translateY(0);
  }
}

.at-concept__copy {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-5);
}

.at-concept__copy p,
.at-concept__closing .at-container > p {
  line-height: var(--at-leading-relaxed);
}

.at-concept__motto {
  margin-top: var(--at-space-4);
  padding-bottom: var(--at-concept-rule-space);
  border-bottom: 1px solid var(--at-color-line);
  color: var(--at-color-accent);
  font-size: var(--at-text-4xl);
  font-weight: 400;
  line-height: var(--at-leading-tight);
  white-space: nowrap;
}

.at-concept {
  padding-bottom: 0;
}

.at-concept__closing {
  display: flex;
  flex-direction: column;
  padding-top: var(--at-concept-rule-space);
}

.at-concept__closing .at-container {
  display: grid;
  grid-template-columns: var(--at-concept-columns);
  column-gap: var(--at-concept-gap);
  row-gap: var(--at-space-5);
  text-align: left;
}

.at-concept__closing .at-container > * {
  grid-column: 2;
}

@media (max-width: 960px) {
  .at-page-hero--concept {
    padding-bottom: 0;
  }

  .at-concept {
    padding-top: var(--at-space-6);
  }

  .at-concept,
  .at-concept__closing {
    --at-concept-gap: var(--at-space-5);
  }

  .at-concept__motto {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .at-concept,
  .at-concept__closing {
    --at-concept-columns: 1fr;
  }

  .at-concept__side {
    display: none;
  }

  .at-concept__copy p:not(.at-concept__motto),
  .at-concept__closing .at-container > p {
    margin-inline: var(--at-space-4);
    font-weight: 400;
  }

  .at-concept__motto,
  .at-concept__closing .at-container > * {
    margin-inline: var(--at-space-4);
  }

  .at-concept__closing .at-container > * {
    grid-column: 1;
  }

  .at-concept__closing {
    padding-bottom: var(--at-space-10);
  }
}

/* ---------- Functions ---------- */

.at-functions-intro {
  text-align: center;
}

.at-functions-intro__title {
  font-size: var(--at-text-4xl);
  font-weight: 700;
}

.at-functions-intro__lead {
  margin-top: var(--at-space-5);
  color: var(--at-color-fg);
  font-size: var(--at-text-body);
  line-height: var(--at-leading-relaxed);
}

.at-functions .at-kicker + .at-icon-grid {
  margin-top: var(--at-space-6);
}

.at-functions .at-icon-grid + .at-kicker {
  margin-top: var(--at-space-10);
}

.at-functions .at-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--at-space-8) var(--at-space-6);
}

.at-icon-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: var(--at-space-4);
}

.at-icon-item__icon {
  width: 70px;
  height: auto;
}

.at-icon-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-2);
}

.at-icon-item__title {
  font-size: var(--at-text-md);
  font-weight: 600;
}

.at-icon-item__text {
  color: var(--at-color-fg);
  font-size: var(--at-text-sm);
  line-height: var(--at-leading-normal);
}

.at-icon-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-2) var(--at-space-5);
  margin-top: var(--at-space-1);
  font-size: var(--at-text-sm);
}

@media (max-width: 960px) {
  .at-functions .at-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--at-space-6) var(--at-space-5);
  }
}

@media (max-width: 600px) {
  .at-functions .at-icon-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- PatronBook artist ---------- */

.at-page-hero--patronbook .at-page-hero__lead {
  max-width: 56em;
  color: var(--at-color-fg);
}

.at-page-hero--patronbook .at-page-hero__title {
  margin-inline: auto;
}

.at-page-hero--pb-artist .at-page-hero__eyebrow {
  margin-top: var(--at-space-6);
}

.at-page-hero--pb-artist .at-page-hero__title {
  white-space: nowrap;
}

.at-page-hero__break {
  display: none;
}

.at-pb-features {
  background-color: var(--at-color-bg-sand);
}

.at-pb-features__title {
  font-size: var(--at-text-4xl);
  font-weight: 600;
  text-align: center;
}

.at-pb-features__list {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-6);
  margin-top: var(--at-space-8);
}

.at-pb-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(var(--at-space-5), 4vw, var(--at-space-8));
  padding: clamp(var(--at-space-6), 4vw, var(--at-space-8));
  border-radius: var(--at-radius-xl);
  background-color: var(--at-color-bg);
  overflow-x: clip;
}

.at-pb-feature--reverse .at-pb-feature__media {
  order: -1;
}

.at-pb-feature__body {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-3);
  max-width: 28em;
}

.at-pb-feature__title {
  font-size: var(--at-text-3xl);
  font-weight: 600;
}

.at-pb-feature__text {
  color: var(--at-color-fg);
  font-size: var(--at-text-body);
}

.at-pb-feature__note {
  color: var(--at-color-fg-muted);
  font-size: var(--at-text-xs);
}

.at-pb-notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--at-space-2);
  margin-top: var(--at-space-8);
  color: var(--at-color-primary);
  font-size: var(--at-text-sm);
  line-height: var(--at-leading-normal);
  text-align: center;
}

.at-pb-features__link {
  display: flex;
  justify-content: center;
  margin-top: var(--at-space-8);
}

.at-pb-close {
  text-align: center;
}

.at-pb-close__note {
  color: var(--at-color-fg);
}

.at-pb-close__title {
  margin: var(--at-space-6) auto 0;
  font-size: var(--at-text-4xl);
  font-weight: 700;
  line-height: var(--at-leading-tight);
}

.at-pb-close__label {
  display: block;
  width: auto;
  max-height: 110px;
  margin: var(--at-space-6) auto 0;
}

.at-pb-close--user .at-container--narrow {
  max-width: 960px;
}

.at-pb-close--user .at-pb-close__label {
  max-height: 80px;
}

/* ---------- PatronBook user ---------- */

.at-page-hero--pb-user .at-page-hero__title {
  margin-top: 0;
}

.at-page-hero--pb-user .at-page-hero__eyebrow {
  margin-top: var(--at-space-6);
}

.at-pb-user__pen {
  max-width: 520px;
  margin: var(--at-space-8) auto 0;
}

.at-pb-user__pen img {
  width: 100%;
  height: auto;
}

.at-pb-user-intro {
  margin-top: var(--at-space-10);
  text-align: center;
}

.at-pb-user-intro .at-heading {
  margin-bottom: var(--at-space-5);
}

.at-pb-user-intro__text {
  line-height: var(--at-leading-relaxed);
}

.at-pb-user-points {
  display: flex;
  flex-direction: column;
  gap: var(--at-space-5);
  padding: 0;
}

.at-pb-user-point {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--at-space-6);
  padding: var(--at-space-6) var(--at-space-7);
  border-radius: var(--at-radius-xl);
  background-color: var(--at-color-bg);
  box-shadow: var(--at-shadow);
}

.at-pb-user-point__head {
  display: flex;
  align-items: center;
  gap: var(--at-space-4);
}

.at-pb-user-point__icon {
  display: flex;
  flex-shrink: 0;
  width: 3em;
  height: 3em;
  color: var(--at-color-accent);
}

.at-pb-user-point__icon svg {
  width: 100%;
  height: 100%;
}

.at-pb-user-point__title {
  font-size: var(--at-text-xl);
  font-weight: 600;
}

.at-pb-user-point__text {
  color: var(--at-color-fg);
  font-size: var(--at-text-body);
}

.at-pb-close__break {
  display: none;
}

@media (max-width: 960px) {
  .at-pb-feature {
    gap: var(--at-space-5);
    padding: var(--at-space-6);
  }
}

@media (max-width: 600px) {
  .at-page-hero--pb-artist {
    text-align: left;
  }

  .at-page-hero--pb-artist .at-page-hero__title {
    white-space: normal;
    margin-inline: 0;
  }

  .at-page-hero--pb-artist .at-page-hero__break {
    display: block;
  }

  .at-page-hero--pb-artist .at-page-hero__lead {
    margin-inline: 0;
    text-align: left;
  }

  .at-pb-notes {
    align-items: flex-start;
    text-align: left;
  }

  .at-pb-close__break {
    display: block;
  }

  .at-pb-feature,
  .at-pb-feature--reverse .at-pb-feature__media {
    order: 0;
  }

  .at-pb-feature {
    grid-template-columns: 1fr;
  }

  .at-pb-feature__body {
    max-width: none;
  }

  .at-pb-user-point {
    grid-template-columns: 1fr;
  }

  .at-pb-user-intro__text {
    text-align: left;
  }
}

/* ---------- Steps (campaign) ---------- */

.at-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--at-space-6);
  margin-top: var(--at-space-8);
}

.at-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--at-space-4);
  padding: var(--at-space-6);
  border: 1px solid var(--at-color-line);
  border-radius: var(--at-radius-lg);
  background-color: var(--at-color-bg);
  text-align: center;
}

.at-steps__number {
  color: var(--at-color-accent);
  font-size: var(--at-text-xs);
  font-weight: 700;
  letter-spacing: var(--at-tracking-wider);
}

.at-steps__icon {
  width: auto;
  max-height: 72px;
}

.at-steps__text {
  color: var(--at-color-fg-muted);
  font-size: var(--at-text-body);
}

@media (max-width: 768px) {
  .at-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Release notes ---------- */

.at-releases {
  display: grid;
  gap: var(--at-space-6);
}

.at-releases__item {
  padding: var(--at-space-6);
  border: 1px solid var(--at-color-line);
  border-radius: var(--at-radius-lg);
  background-color: var(--at-color-bg);
}

.at-releases__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--at-space-2) var(--at-space-4);
}

.at-releases__version {
  padding: var(--at-space-1) var(--at-space-3);
  border-radius: var(--at-radius-sm);
  background-color: var(--at-color-primary);
  color: var(--at-color-fg-inverse);
  font-size: var(--at-text-xs);
  font-weight: 700;
}

.at-releases__date {
  color: var(--at-color-fg-faint);
  font-size: var(--at-text-xs);
}

.at-releases__title {
  margin-top: var(--at-space-4);
  font-size: var(--at-text-lg);
}

.at-releases__changes {
  display: grid;
  gap: var(--at-space-3);
  margin-top: var(--at-space-4);
}

.at-releases__change {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr);
  gap: var(--at-space-3);
  align-items: start;
}

.at-releases__tag {
  padding: 2px 0;
  border-radius: var(--at-radius-sm);
  font-size: var(--at-text-xs);
  font-weight: 700;
  text-align: center;
}

.at-releases__tag--new {
  background-color: var(--at-color-accent);
  color: var(--at-color-fg-inverse);
}

.at-releases__tag--fix {
  background-color: var(--at-color-bg-muted);
  color: var(--at-color-fg-muted);
}

.at-releases__text {
  color: var(--at-color-fg);
  font-size: var(--at-text-body);
}

/* ---------- Legal pages ---------- */

.at-legal {
  font-size: var(--at-text-base);
}

.at-legal h2:first-of-type {
  margin-top: var(--at-space-8);
}

/* ---------- 404 ---------- */

.at-notfound {
  padding-block: clamp(64px, 10vw, 140px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.94)),
    url("../img/notfound/hero.webp") center / cover no-repeat;
}

.at-notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--at-space-4);
  text-align: center;
}

.at-notfound__code {
  color: var(--at-color-primary);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  line-height: 1;
}

.at-notfound__title {
  font-size: var(--at-text-2xl);
}

.at-notfound__text {
  color: var(--at-color-fg-muted);
}

.at-notfound__text a {
  color: var(--at-color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.at-notfound__inner .at-button-group {
  margin-top: var(--at-space-4);
}
