/* Styles of the pages Brands serves in the site's frame (AGENTS.md, "Publikacja przez Brands"):
   the blog "The Quest Log" (brands/*.liquid) and the policies (.brands-page, rendered by Brands
   into _layout.html). Plain CSS, loaded after dist/styles.css only on those pages, so editing it
   needs no Tailwind build. Every class starts with qq- (the header, footer and buttons such as
   .primary-button come from dist/styles.css). */

:root {
  --qq-canvas: #fbfbfa;
  --qq-oat: #f4f5f0;
  --qq-paper: #fffdf7;
  --qq-ink: #18211b;
  --qq-muted: #5a675e;
  --qq-line: #d8dfd8;
  --qq-forest: #1e3a2b;
  --qq-forest-strong: #142a1f;
  --qq-moss: #e3eee7;
  --qq-trail: #9db5a5;
  --qq-amber: #92400e;
  --qq-amber-soft: #fef3c7;
  --qq-amber-line: #f3d9a4;
  --qq-serif: Newsreader, Georgia, "Times New Roman", serif;
  --qq-shadow: 0 20px 50px -30px rgb(24 33 27 / 0.4);
  /* Contour lines of a trail map, drawn once and repeated. */
  --qq-contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='280' viewBox='0 0 560 280'%3E%3Cg fill='none' stroke='%231e3a2b' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M-10 40c60-30 120 20 190 0s110-40 190-10 130 30 200 0'/%3E%3Cpath d='M-10 80c70-28 130 22 200 4s120-44 200-12 110 26 180 2'/%3E%3Cpath d='M-10 124c80-24 140 26 210 8s120-46 190-16 110 30 180 6'/%3E%3Cpath d='M-10 170c70-20 120 30 200 10s130-50 200-18 110 28 180 4'/%3E%3Cpath d='M-10 214c80-26 130 24 210 6s120-40 190-12 110 30 180 8'/%3E%3Cpath d='M-10 258c70-22 140 26 200 8s120-42 200-14 110 28 180 6'/%3E%3Cellipse cx='420' cy='140' rx='46' ry='22'/%3E%3Cellipse cx='420' cy='140' rx='24' ry='10'/%3E%3C/g%3E%3C/svg%3E");
}

/* ----- Layout helpers ----- */

.qq-wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.qq-wrap--read {
  max-width: 46rem;
}

@media (min-width: 40rem) {
  .qq-wrap {
    padding: 0 2rem;
  }
}

.qq-section {
  padding-top: 3rem;
}

.qq-log > .qq-section:last-child,
.qq-blog-main > .qq-section:last-child {
  padding-bottom: 4rem;
}

.qq-section__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--qq-forest);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qq-section__label::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--qq-trail);
}

.qq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: var(--qq-forest);
  font-size: 0.9375rem;
  font-weight: 700;
}

.qq-kicker img {
  width: 1.75rem;
  height: 1.75rem;
}

.qq-stamp {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  border: 1px solid var(--qq-amber-line);
  border-radius: 0.375rem;
  background: var(--qq-amber-soft);
  padding: 0.25rem 0.625rem;
  color: var(--qq-amber);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qq-stamp__note {
  border-left: 1px solid var(--qq-amber-line);
  padding-left: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.qq-meta {
  margin: 0;
  color: var(--qq-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.qq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* The title link covers its whole card. */
.qq-stretched {
  color: inherit;
  text-decoration: none;
}

.qq-stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.qq-stretched:focus-visible {
  outline: none;
}

.qq-stretched:focus-visible::after {
  outline: 3px solid var(--qq-amber);
  outline-offset: 3px;
}

.qq-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.qq-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  vertical-align: -0.25em;
}

/* ----- Blog home: the hero ----- */

.qq-hero {
  border-bottom: 1px solid var(--qq-line);
  background: var(--qq-contours) center / 560px 280px repeat, var(--qq-oat);
  padding: 3rem 0 2.75rem;
}

.qq-hero__title {
  margin: 0.875rem 0 0;
  color: var(--qq-ink);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.qq-hero__intro {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--qq-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.qq-hero__intro p {
  margin: 0 0 0.75rem;
}

.qq-hero__intro a {
  color: var(--qq-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qq-hero__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--qq-forest);
  font-size: 0.875rem;
  font-weight: 700;
}

.qq-hero__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.qq-hero__legend li::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border: 2px solid var(--qq-forest);
  border-radius: 50%;
  background: var(--qq-moss);
}

@media (min-width: 48rem) {
  .qq-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
  }

  /* A large, faint compass from the logo on the right of the title. */
  .qq-hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: max(2rem, calc(50% - 34rem));
    width: 17rem;
    height: 17rem;
    background: url("brand/logo.svg") center / contain no-repeat;
    opacity: 0.1;
    transform: translateY(-50%) rotate(-12deg);
    pointer-events: none;
  }

  .qq-hero > .qq-wrap {
    position: relative;
    z-index: 1;
  }
}

/* ----- Blog home: the latest entry ----- */

.qq-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--qq-line);
  border-radius: 0.875rem;
  background: white;
  box-shadow: var(--qq-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qq-feature:hover {
  border-color: var(--qq-forest);
}

.qq-feature:hover .qq-arrow,
.qq-waypoint__card:hover .qq-arrow {
  transform: translateX(4px);
}

.qq-feature__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--qq-moss);
}

.qq-feature__media picture,
.qq-feature__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qq-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.5rem;
}

.qq-feature__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.qq-feature__excerpt {
  margin: 0;
  color: var(--qq-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.qq-feature__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  background: var(--qq-forest);
  padding: 0.75rem 1.25rem;
  color: white;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .qq-feature {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .qq-feature__media {
    aspect-ratio: auto;
    min-height: 22rem;
  }

  .qq-feature__body {
    justify-content: center;
    padding: 2.5rem;
  }
}

/* The picture of an entry without an image: a contour map with the compass. */
.qq-map-tile {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 12rem;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.65) 0 18%, transparent 19%),
    var(--qq-contours) center / 420px 210px repeat,
    var(--qq-moss);
}

.qq-map-tile__compass {
  width: 4.5rem;
  height: 4.5rem;
}

.qq-map-tile__no {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: var(--qq-forest);
  font-family: var(--qq-serif);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.8;
}

/* ----- The trail of entries ----- */

.qq-trail {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qq-waypoint {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-bottom: 1.25rem;
}

/* The dashed trail line through the dots. */
.qq-waypoint::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(0.75rem - 1px);
  border-left: 2px dashed var(--qq-trail);
}

.qq-waypoint__date {
  display: none;
}

.qq-waypoint__dot {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 1.125rem;
  height: 1.125rem;
  margin: 1.5rem 0 0 0.1875rem;
  border: 3px solid var(--qq-forest);
  border-radius: 50%;
  background: var(--qq-canvas);
}

.qq-waypoint:first-child .qq-waypoint__dot {
  background: var(--qq-amber-soft);
  border-color: var(--qq-amber);
}

.qq-waypoint__card {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 1rem;
  border: 1px solid var(--qq-line);
  border-radius: 0.75rem;
  background: white;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qq-waypoint__card:hover {
  border-color: var(--qq-forest);
  box-shadow: var(--qq-shadow);
}

.qq-waypoint__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qq-waypoint__no {
  margin: 0;
  color: var(--qq-amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qq-waypoint__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.qq-waypoint__excerpt {
  margin: 0;
  color: var(--qq-muted);
  line-height: 1.7;
}

.qq-waypoint__media {
  order: -1;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: 0.5rem;
  background: var(--qq-moss);
}

.qq-waypoint__media picture,
.qq-waypoint__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .qq-waypoint {
    grid-template-columns: 5rem 1.5rem minmax(0, 1fr);
    column-gap: 1rem;
    padding-bottom: 1.5rem;
  }

  .qq-waypoint::before {
    left: calc(5rem + 1rem + 0.75rem - 1px);
  }

  .qq-waypoint__date {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    align-items: flex-end;
    margin: 1.125rem 0 0;
    color: var(--qq-forest);
    line-height: 1;
    text-align: right;
  }

  .qq-waypoint__month {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .qq-waypoint__day {
    margin-top: 0.25rem;
    font-family: var(--qq-serif);
    font-size: 2.25rem;
  }

  .qq-waypoint__year {
    margin-top: 0.25rem;
    color: var(--qq-muted);
    font-size: 0.75rem;
    font-weight: 600;
  }

  .qq-waypoint__dot {
    grid-column: 2;
  }

  .qq-waypoint__card {
    grid-column: 3;
    padding: 1.5rem;
  }

  .qq-waypoint__card--image {
    grid-template-columns: minmax(0, 1fr) 13rem;
    align-items: start;
  }

  .qq-waypoint__media {
    order: 0;
    aspect-ratio: 4 / 3;
  }

  .qq-trail .qq-waypoint__text .qq-meta {
    font-size: 0.875rem;
  }
}

.qq-trailhead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--qq-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.qq-trailhead__dot {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--qq-forest);
  box-shadow: inset 0 0 0 5px var(--qq-moss);
}

@media (min-width: 48rem) {
  .qq-trailhead {
    padding-left: 6rem;
  }
}

/* ----- Before the first entry: a blank page of the journal ----- */

.qq-blank {
  display: grid;
  gap: 1.5rem;
}

.qq-blank__page {
  position: relative;
  border: 2px dashed var(--qq-trail);
  border-radius: 0.875rem;
  background:
    linear-gradient(90deg, transparent 2.25rem, rgb(146 64 14 / 0.18) 2.25rem 2.3rem, transparent 2.3rem),
    var(--qq-paper);
  padding: 2rem 1.5rem 2rem 3.25rem;
}

.qq-blank__title {
  margin: 1rem 0 0;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.qq-blank__text {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--qq-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.qq-blank__lines {
  display: grid;
  gap: 1.25rem;
  max-width: 30rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.qq-blank__lines li {
  height: 0;
  border-top: 1px solid var(--qq-line);
}

.qq-blank__lines li:nth-child(2) {
  width: 80%;
}

.qq-blank__lines li:nth-child(3) {
  width: 55%;
}

@media (min-width: 56rem) {
  .qq-blank {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }

  .qq-blank__page {
    padding: 3rem 3rem 3rem 4.5rem;
  }

  .qq-blank__page {
    background:
      linear-gradient(90deg, transparent 3.25rem, rgb(146 64 14 / 0.18) 3.25rem 3.3rem, transparent 3.3rem),
      var(--qq-paper);
  }
}

/* ----- Quests to start while the log is short ----- */

.qq-ahead {
  border: 1px solid var(--qq-line);
  border-radius: 0.875rem;
  background: var(--qq-oat);
  padding: 1.5rem;
}

.qq-ahead__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.qq-ahead__text {
  max-width: 36rem;
  margin: 0.5rem 0 0;
  color: var(--qq-muted);
  line-height: 1.7;
}

.qq-ahead__list {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.qq-ahead__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.5rem;
  border: 1px solid var(--qq-line);
  border-radius: 0.625rem;
  background: white;
  padding: 0.75rem 1rem;
  color: var(--qq-ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.qq-ahead__link:hover {
  border-color: var(--qq-forest);
}

.qq-ahead__link strong {
  display: block;
  color: var(--qq-forest);
}

.qq-ahead__hint {
  display: block;
  color: var(--qq-muted);
  font-size: 0.875rem;
}

.qq-ahead__step {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--qq-moss);
  color: var(--qq-forest);
  font-family: var(--qq-serif);
  font-size: 1.125rem;
  font-weight: 600;
}

.qq-ahead__signup {
  margin: 1.25rem 0 0;
  font-weight: 700;
}

.qq-ahead__signup a {
  color: var(--qq-forest);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (min-width: 48rem) {
  .qq-ahead:not(.qq-ahead--compact) {
    padding: 2rem;
  }

  .qq-ahead:not(.qq-ahead--compact) .qq-ahead__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ----- An article ----- */

.qq-entry__head {
  border-bottom: 1px solid var(--qq-line);
  background: var(--qq-contours) center / 560px 280px repeat, var(--qq-oat);
  padding: 2rem 0 2.5rem;
}

.qq-back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
  color: var(--qq-forest);
  font-weight: 700;
  text-decoration: none;
}

.qq-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.qq-back + .qq-stamp {
  display: flex;
  width: fit-content;
}

.qq-entry__title {
  margin: 1rem 0 0.875rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.qq-entry__figure {
  max-width: 56rem;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}

.qq-entry__figure picture,
.qq-entry__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.875rem;
}

.qq-entry__figure figcaption {
  margin-top: 0.625rem;
  color: var(--qq-muted);
  font-size: 0.8125rem;
}

.qq-entry__figure figcaption a {
  color: inherit;
  text-decoration: underline;
}

.qq-entry__body {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

@media (min-width: 48rem) {
  .qq-entry__head {
    padding: 3rem 0 3.5rem;
  }

  .qq-entry__figure {
    margin-top: 2.5rem;
    padding: 0 2rem;
  }
}

/* The meta description, as the smaller version of a quest task. */
.qq-shortcut {
  margin: 0 0 2.25rem;
  border: 1px solid var(--qq-amber-line);
  border-left: 4px solid var(--qq-amber);
  border-radius: 0.5rem;
  background: var(--qq-amber-soft);
  padding: 1rem 1.25rem;
  color: var(--qq-ink);
  line-height: 1.7;
}

.qq-shortcut p {
  margin: 0;
}

.qq-shortcut .qq-shortcut__label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
  color: var(--qq-amber);
  font-weight: 800;
}

/* The article's text (HTML from Brands). Tailwind's reset removes the defaults; set them back. */
.qq-prose {
  color: var(--qq-ink);
  font-size: 1.125rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.qq-prose > * + * {
  margin-top: 1.25rem;
}

.qq-prose h2 {
  margin-top: 2.75rem;
  font-size: 2rem;
  line-height: 1.2;
}

.qq-prose h3 {
  margin-top: 2.25rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.qq-prose h4 {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 800;
}

.qq-prose a {
  color: var(--qq-forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--qq-trail);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.qq-prose a:hover {
  text-decoration-color: var(--qq-forest);
}

.qq-prose strong {
  font-weight: 700;
}

.qq-prose ul,
.qq-prose ol {
  padding-left: 1.75rem;
}

.qq-prose ul {
  list-style: none;
}

.qq-prose ul > li {
  position: relative;
}

/* List items as small waypoints. */
.qq-prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: -1.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--qq-forest);
  border-radius: 50%;
}

.qq-prose ol {
  list-style: decimal;
}

.qq-prose ol > li::marker {
  color: var(--qq-amber);
  font-weight: 800;
}

.qq-prose li + li {
  margin-top: 0.5rem;
}

.qq-prose blockquote {
  margin-left: 0;
  margin-right: 0;
  border-left: 4px solid var(--qq-forest);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--qq-moss);
  padding: 1rem 1.25rem;
  font-family: var(--qq-serif);
  font-size: 1.375rem;
  line-height: 1.5;
}

.qq-prose blockquote p {
  margin: 0;
}

.qq-prose img,
.qq-prose picture {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.qq-prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 2px dashed var(--qq-trail);
}

.qq-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 1rem;
}

.qq-prose th,
.qq-prose td {
  border: 1px solid var(--qq-line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.qq-prose th {
  background: var(--qq-oat);
}

.qq-prose code {
  border-radius: 0.25rem;
  background: var(--qq-oat);
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}

.qq-disclaimer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--qq-line);
  padding-top: 1.25rem;
  color: var(--qq-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.qq-disclaimer p {
  margin: 0;
}

.qq-disclaimer a {
  color: var(--qq-forest);
  text-decoration: underline;
}

/* Previous and next entries. */
.qq-pager {
  display: grid;
  gap: 0.75rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.qq-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border: 1px solid var(--qq-line);
  border-radius: 0.75rem;
  background: white;
  padding: 1rem 1.25rem;
  color: var(--qq-ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.qq-pager__link:hover {
  border-color: var(--qq-forest);
}

.qq-pager__label {
  color: var(--qq-amber);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qq-pager__title {
  font-family: var(--qq-serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

@media (min-width: 40rem) {
  .qq-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qq-pager__link--next {
    grid-column: 2;
    text-align: right;
  }
}

/* The invitation to build a quest (on .cta-band from dist/styles.css). */
.qq-cta {
  padding: 3.5rem 0;
  text-align: center;
}

.qq-cta h2 {
  margin: 0;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.qq-cta p {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.qq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ----- The newsletter sign-up Brands adds below every blog page ----- */

.qq-newsletter {
  border-top: 1px solid var(--qq-line);
  background: var(--qq-oat);
  padding: 2.5rem 1.25rem;
}

.qq-newsletter > section {
  max-width: 46rem;
  margin: 0 auto;
  scroll-margin-top: 1rem;
}

/* ----- The policies Brands renders into _layout.html ----- */

.qq-page .brands-page {
  margin-top: 3rem;
  margin-bottom: 4rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.qq-page .brands-page h1 {
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.qq-page .brands-page h2 {
  font-size: 1.625rem;
}

.qq-page .brands-page h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.25rem;
}

.qq-page .brands-page ul {
  list-style: disc;
}

.qq-page .brands-page ol {
  list-style: decimal;
}

.qq-page .brands-page a {
  color: var(--qq-forest);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .qq-arrow,
  .qq-feature,
  .qq-waypoint__card {
    transition: none;
  }
}
