/* ==========================================================================
   Bartlett Schenk
   A static rebuild of the original Squarespace site (Clarkson template plus
   the agency's custom CSS). Measurements follow the original at 1440px.

   Fonts: the original used RM Neue (body, headings) and F37 Bolton (pills).
   Both are commercial, so Hanken Grotesk stands in. If the licensed files are
   available, add @font-face rules for them and point --font-sans and
   --font-pill at the new families; the weights below map Light to 300,
   Regular to 400, SemiBold to 600 and Bold to 700.
   ========================================================================== */

:root {
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-pill: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --orange: #ff4f00;
  --orange-button: #ff5100;
  --ink: #000;
  --heading: #171717;
  --pale: #f7f7f7;
  --rule: #e2e2e2;
  --pill-border: #ededed;
  --muted: #a5a5a5;
  --bio: #7d7d7d;
  --band-bespoke: #313131;
  --band-academy: #383838;
  --cta-bar: #7f8283;
  --footer: #272726;
  --footer-text: #f4f4f4;
  --footer-tagline: #a1a1a1;

  --pad-x: 75px;
  --pad-y: 100px;
  --gutter: 34px;
}

@media (max-width: 1024px) {
  :root { --pad-x: 64px; }
}
@media (max-width: 960px) {
  :root { --pad-x: 48px; }
}
@media (max-width: 768px) {
  :root { --pad-x: 36px; --pad-y: 80px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; --pad-y: 60px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--ink);
}

h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--heading);
}

h3 {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 300;
  color: var(--ink);
}

p + p {
  margin-top: 1em;
}

em {
  color: var(--orange);
  font-style: normal;
}

strong {
  font-weight: 600;
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--rule);
}

input,
button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

.section {
  padding: var(--pad-y) var(--pad-x);
}

.section--pale {
  background: var(--pale);
}

.section--black {
  background: #000;
  color: #fff;
}

.section--black h2,
.section--black p {
  color: #fff;
}

.wrap {
  max-width: 1500px;
  margin: 0 auto;
}

.wrap--1200 {
  max-width: 1200px;
  margin: 0 auto;
}

/* Two equal columns, as the 12-column Squarespace grid lays out a pair of 6s */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--gutter);
}

.col-8 {
  max-width: 849px;
}

.center {
  text-align: center;
}

@media (max-width: 640px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* ---------- Header ---------- */

.header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 20px var(--pad-x) 20px calc(var(--pad-x) - 10px);
  background: #fff;
  border-bottom: 1px solid #fff;
}

.header__brand {
  display: block;
  padding: 10px;
}

.header__brand img {
  width: 110px;
  height: auto;
}

.header__nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav a {
  display: block;
  margin: 0 17.55px;
  padding: 9.27px 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.header__nav li:last-child a {
  margin-right: 0;
}

.header__nav a:hover {
  opacity: 0.6;
}

.header__nav a[aria-current="page"] {
  color: var(--orange);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: #000;
  cursor: pointer;
}

.menu-button svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
}

@media (max-width: 640px) {
  .header {
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .header__brand img {
    width: 92px;
  }

  .header__nav {
    display: none;
  }

  .menu-button {
    display: block;
  }
}

/* Mobile overlay menu (the Clarkson "Mobile-overlay") */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 18px var(--pad-x) 40px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: -10px;
}

.overlay nav {
  margin: auto 0;
}

.overlay ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.overlay li + li {
  margin-top: 14px;
}

.overlay nav a {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading);
}

.overlay nav a[aria-current="page"] {
  color: var(--orange);
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Buttons, pills, links ---------- */

.button {
  display: inline-block;
  padding: 10px 30px;
  background: var(--orange-button);
  border: 1px solid var(--orange-button);
  border-radius: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  opacity: 0.8;
}

.button--outline {
  background: transparent;
  color: var(--orange-button);
}

.button--outline:hover {
  background: var(--orange-button);
  color: #fff;
  opacity: 1;
}

.button--dark {
  background: #272727;
  border-color: #272727;
}

.pills {
  max-width: 500px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-block;
  margin: 0 5px 12px 0;
}

.pill {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--pill-border);
  border-radius: 20px;
  color: var(--orange);
  font-family: var(--font-pill);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pill:hover {
  background: var(--orange);
  border-color: #fff;
  color: #fff;
}

.pill--solid {
  background: #f5f5f5;
  font-family: var(--font-sans);
  font-weight: 700;
}

.pill--solid:hover {
  border-color: var(--orange);
}

.text-link {
  color: var(--orange);
}

.text-link:hover {
  opacity: 0.7;
}

.chevron {
  width: 45px;
  margin-top: 17px;
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 701px;
  padding: 117px var(--pad-x) 140px;
  background: #555 center / cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}

.hero > * {
  position: relative;
}

.hero h1 {
  max-width: 849px;
  color: #fff;
}

.hero__links {
  position: absolute;
  right: 0;
  bottom: 38px;
  left: var(--pad-x);
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__links li {
  width: 24%;
}

.hero__links a {
  display: inline-block;
  border-top: 4px solid transparent;
  padding-top: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.05;
  transition: border-color 0.2s ease;
}

.hero__links a:hover {
  border-top-color: var(--orange);
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding-top: 200px;
    padding-bottom: 36px;
  }

  .hero__links {
    position: static;
    display: block;
    margin-top: 150px;
  }

  .hero__links li {
    width: 100%;
    margin-top: 10px;
  }

  .hero__links a {
    border-top: 0;
    border-left: 4px solid var(--orange);
    padding: 0 0 0 5px;
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  h1,
  .hero h1 {
    font-size: 32px;
  }

  .hero {
    padding-top: 210px;
  }

  .hero .chevron {
    display: none;
  }
}

.statement h2 {
  max-width: 700px;
}

.statement .button {
  margin-top: 34px;
}

.clients {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 30px var(--pad-x);
  background: var(--pale);
}

.clients h2 {
  flex: 1 1 auto;
  color: #858585;
  font-size: 24px;
  font-weight: 300;
  text-transform: uppercase;
}

.clients ul {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  gap: 34px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients img {
  max-height: 52px;
  margin: 0 auto;
  width: auto;
}

@media (max-width: 960px) {
  .clients {
    display: block;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .clients ul {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .clients ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }
}

.bespoke {
  background: var(--band-bespoke);
}

.bespoke h2 {
  max-width: 628px;
  color: #fff;
}

.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px var(--gutter);
  padding: 110px var(--pad-x);
}

.solutions-box {
  border-left: 2px solid #d9d9d9;
  padding: 0 20px;
  scroll-margin-top: 40px;
}

.solutions-box h2 {
  max-width: 450px;
  font-size: 33px;
}

.solutions-box p {
  max-width: 500px;
  margin-top: 28px;
}

.solutions-box .how {
  margin: 16px 0 10px;
  color: #000;
  font-size: 19px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .areas {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .solutions-box h2 {
    font-size: 30px;
  }
}

.academy-teaser {
  background: var(--band-academy);
  padding: 73px var(--pad-x);
}

.academy-teaser .cols {
  align-items: center;
}

.academy-teaser img {
  width: 100%;
  max-width: 645px;
}

.academy-teaser__text {
  max-width: 516px;
  margin-left: 48px;
}

.academy-teaser h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 500;
}

.academy-teaser p {
  margin-top: 30px;
  color: #fff;
  line-height: 1.5;
}

.academy-teaser .pill {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .academy-teaser__text {
    margin-left: 0;
  }
}

.about-teaser .cols {
  align-items: center;
}

.portrait-grey img {
  width: 100%;
  max-width: 420px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.portrait-grey:hover img {
  filter: none;
}

.about-teaser p {
  margin-top: 25px;
}

/* ---------- Page intros ---------- */

.intro .cols h1 {
  padding-right: 34px;
}

.intro--rule {
  padding-bottom: 0;
}

.intro--rule hr {
  margin-top: 50px;
}

.kicker {
  margin: 0 0 24px 4px;
  font-size: 24px;
  font-weight: 300;
}

.service-intro h1 {
  max-width: 849px;
}

.banner {
  min-height: 70vh;
  background: #ddd center / cover no-repeat;
}

/* ---------- Insights cards ---------- */

.insights-head h2 {
  padding-bottom: 10px;
}

.insights-head hr {
  margin-bottom: 58px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 41px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards--index {
  gap: 41px;
}

.card {
  position: relative;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.card:hover .card__media img {
  opacity: 0.5;
}

.card__cat {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
}

.card__title {
  position: absolute;
  bottom: 30px;
  left: 20px;
  width: 200px;
  max-width: calc(100% - 40px);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.cards--index .card__title {
  font-size: 23px;
}

.card__more {
  display: inline-block;
  margin-top: 20px;
  color: #000;
  font-size: 16px;
  font-weight: 400;
}

.card__more:hover {
  color: var(--orange);
}

.card[hidden] {
  display: none;
}

@media (max-width: 1050px) {
  .card__title,
  .cards--index .card__title {
    width: auto;
    font-size: 19px;
  }
}

@media (max-width: 960px) {
  .cards,
  .cards--index {
    grid-template-columns: repeat(2, 1fr);
  }

  .card__title,
  .cards--index .card__title {
    max-width: 240px;
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .cards,
  .cards--index {
    grid-template-columns: 1fr;
  }

  .card__title,
  .cards--index .card__title {
    width: 280px;
    font-size: 23px;
    line-height: 1.1;
  }
}

/* ---------- Other services ---------- */

.service-list h2 {
  font-size: 23px;
}

.service-list p {
  max-width: 500px;
  margin: 18px auto 0;
  line-height: 1.5;
}

.service-list a:hover {
  color: var(--orange-button);
}

/* ---------- About ---------- */

.team {
  display: grid;
  grid-template-columns: 508px 1fr;
  gap: 34px 60px;
  align-items: start;
}

.team img {
  width: 100%;
}

.team h2 {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.team p {
  color: var(--bio);
  font-size: 16px;
}

.team h2 + p {
  margin-top: 18px;
}

.social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.social a {
  display: block;
  width: 19px;
  color: #000;
  transition: opacity 0.2s ease;
}

.social a:hover {
  opacity: 0.4;
}

.social svg {
  display: block;
  width: 19px;
  height: 19px;
}

@media (max-width: 900px) {
  .team {
    grid-template-columns: 1fr;
    max-width: 508px;
  }
}

.mission h2 {
  font-size: 25px;
}

.mission p {
  max-width: 628px;
  margin-top: 28px;
}

.mission a {
  color: var(--orange);
  text-decoration: underline;
}

/* ---------- Services index ---------- */

.how-we-help h2 {
  margin-bottom: 60px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.links-grid__col > div + div {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--rule);
}

.links-grid__col > div {
  max-width: 345px;
}

.links-grid h3 a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.links-grid h3 a::after {
  content: "";
  flex: 0 0 30px;
  height: 30px;
  margin-top: -5px;
  background: url("../assets/images/arrow-square.png") center / 30px 30px no-repeat;
}

.links-grid h3 a:hover {
  color: var(--orange);
}

.links-grid p {
  max-width: 300px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 640px) {
  .how-we-help h2 {
    margin-bottom: 30px;
    text-align: left;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .links-grid__col > div,
  .links-grid__col > div + div {
    max-width: none;
    margin: 0 0 17px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
  }
}

/* ---------- Service pages ---------- */

.what-we-do h2,
.problem h2 {
  font-size: 25px;
}

.what-we-do h2 + p,
.problem h2 + p {
  margin-top: 28px;
}

.problem .cols p {
  max-width: 500px;
}

/* ---------- Academy ---------- */

.academy-banner {
  padding: 0;
  background: #e9ebee;
}

.academy-banner img {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.academy-intro h2 {
  max-width: 738px;
}

.academy-intro p {
  max-width: 738px;
  margin-top: 25px;
}

.academy-intro .button {
  margin-top: 34px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.specs img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.specs h3 {
  margin-top: 50px;
  font-size: 22px;
  font-weight: 700;
}

.specs p {
  max-width: 300px;
  margin-top: 22px;
}

.workbooks {
  min-height: 810px;
  background: #d7d7d7 center / cover no-repeat;
}

.modules {
  max-width: 1200px;
  margin: 0 auto;
}

.modules__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px var(--gutter);
  padding: 0 0 42px;
  border-bottom: 1px solid var(--rule);
}

.modules__row + .modules__row {
  padding-top: 42px;
}

.modules h3 {
  font-weight: 600;
}

.modules p {
  max-width: 350px;
}

.modules .module__sub {
  margin-top: 24px;
  color: var(--orange);
}

.modules .module__sub + p {
  margin-top: 16px;
}

.register {
  margin-top: 100px;
}

.register h2 {
  margin-bottom: 34px;
}

@media (max-width: 800px) {
  .specs,
  .modules__row {
    grid-template-columns: 1fr;
  }

  .workbooks {
    min-height: 60vw;
  }
}

.instructor {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 34px 10%;
  align-items: center;
}

.instructor h2 {
  color: #000;
  font-size: 24px;
  font-weight: 700;
}

.instructor p {
  margin-top: 28px;
}

.instructor .button {
  margin-top: 34px;
}

@media (max-width: 800px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

/* ---------- Newsletter forms ---------- */

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup input[type="email"] {
  width: 247px;
  height: 38px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
  color: #000;
  font-size: 14px;
  font-weight: 300;
}

.signup input::placeholder {
  color: #a9a9a9;
}

.signup button {
  width: 130px;
  height: 38px;
  padding: 0 10px;
  background: var(--orange-button);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.signup button:hover {
  opacity: 0.85;
}

.signup--dark button {
  background: #272727;
}

.signup--center {
  justify-content: center;
}

.signup__note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .signup {
    flex-direction: column;
    align-items: center;
  }

  .signup input[type="email"] {
    width: 247px;
  }
}

/* ---------- Insights index ---------- */

.insights-index {
  padding-top: 60px;
}

.insights-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.search {
  position: relative;
  width: 297px;
}

.search input {
  width: 100%;
  height: 43px;
  padding: 12px 12px 12px 34px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  color: #000;
  font-size: 16px;
  font-weight: 300;
}

.search input::placeholder {
  color: #9a9a9a;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 16px;
  height: 16px;
  color: #777;
  transform: translateY(-50%);
}

.insights-index > .wrap > hr {
  margin: 17px 0 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags a {
  display: block;
  padding-right: 14px;
  font-size: 16px;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.tags a:hover {
  opacity: 0.5;
}

.tags a[aria-current="true"] {
  color: var(--orange);
}

.insights-index .cards {
  margin-top: 77px;
}

.no-results {
  margin-top: 60px;
}

@media (max-width: 640px) {
  .insights-bar {
    display: block;
  }

  .search {
    width: 100%;
    margin-top: 24px;
  }
}

/* ---------- Article ---------- */

.article {
  max-width: 700px;
  margin: 0 auto;
}

.article__cat {
  margin-bottom: 20px;
  color: #777;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
}

.article h1 {
  font-weight: 700;
}

.article__image {
  margin-top: 50px;
}

.article__body {
  margin-top: 50px;
}

.article__body h2 {
  margin: 1.6em 0 0.6em;
  font-size: 25px;
}

.article__body blockquote {
  margin: 1.6em 0;
  padding-left: 20px;
  border-left: 2px solid var(--orange);
  font-size: 22px;
  font-weight: 400;
}

.placeholder-note {
  margin-bottom: 2em;
  padding: 14px 18px;
  background: var(--pale);
  border-left: 2px solid var(--orange);
  font-size: 15px;
}

.article__tags {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}

.article__tags a {
  color: var(--orange);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1500px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.pagination a {
  display: block;
  padding: 40px var(--pad-x);
  transition: background-color 0.2s ease;
}

.pagination a:hover {
  background: var(--pale);
}

.pagination a + a,
.pagination .next {
  text-align: right;
}

.pagination span {
  display: block;
  color: #777;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagination strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .pagination {
    grid-template-columns: 1fr;
  }

  .pagination a + a {
    border-top: 1px solid var(--rule);
  }
}

/* ---------- Contact, privacy, 404 ---------- */

.contact-details p + p {
  margin-top: 20px;
}

.contact-details a {
  border-bottom: 1px solid currentColor;
}

.contact-details a:hover {
  color: var(--orange);
}

.contact-academy p {
  max-width: 400px;
}

.contact-academy .button {
  margin-top: 30px;
}

.prose {
  max-width: 700px;
}

.prose p {
  margin-top: 1em;
}

.prose h1 + p {
  margin-top: 34px;
}

.prose a {
  color: var(--orange);
}

.lost {
  padding-top: 140px;
  padding-bottom: 160px;
}

.lost p {
  margin-top: 25px;
}

.lost .button {
  margin-top: 34px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--footer);
  color: var(--footer-text);
}

.footer__cta {
  display: block;
  padding: 4px;
  background: var(--cta-bar);
  transition: opacity 0.1s ease;
}

.footer__cta:hover {
  opacity: 0.9;
}

.footer__cta span {
  display: block;
  margin-right: 50px;
  padding: 22px 30px 22px 10px;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.footer__middle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  padding: 30px 67px 35px;
}

.footer__brand img {
  width: 110px;
}

.footer__brand p {
  max-width: 350px;
  margin-top: 12px;
  color: var(--footer-tagline);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.footer .signup input[type="email"] {
  border-color: #fff;
}

.footer .signup__note {
  color: var(--footer-tagline);
}

.footer__bottom {
  margin: 0 17px;
  padding: 10px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__bottom a {
  color: var(--footer-text);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.footer__bottom a:hover {
  opacity: 0.7;
}

@media (max-width: 800px) {
  .footer__cta span {
    margin-right: 0;
    padding-right: 10px;
    text-align: center;
  }

  .footer__middle {
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 40px;
    text-align: center;
  }

  .footer__brand img {
    margin: 0 auto;
  }

  .footer__brand p {
    margin-right: auto;
    margin-left: auto;
  }

  .footer .signup {
    flex-direction: column;
    align-items: center;
  }

  .footer__bottom {
    padding: 14px 0;
    text-align: center;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
