@font-face {
  font-family: 'Gambarino';
  src: url('/media/fonts/gambarino-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/media/fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cc-ink: #12171b;
  --cc-paper: #f5f6f7;
  --cc-soft: #e5ebee;
  --cc-blue: #bbdaf2;
  --cc-subtle: #52616a;
  --cc-gap: clamp(24px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--cc-paper);
  color: var(--cc-ink);
  font-family: 'General Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

::selection {
  background: var(--cc-blue);
  color: var(--cc-ink);
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3 {
  font-family: Gambarino, Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 5.8vw, 90px);
}

h2 {
  font-size: clamp(32px, 3.3vw, 49px);
}

h3 {
  font-size: 29px;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

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

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #346aa1;
  outline-offset: 5px;
}

.cc-skip {
  position: fixed;
  left: 18px;
  top: -100px;
  padding: 12px 18px;
  z-index: 100;
  background: var(--cc-blue);
}

.cc-skip:focus {
  top: 14px;
}

.cc-header {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 98px;
  align-items: center;
  background: var(--cc-paper);
}

.cc-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  line-height: 1.1;
  padding: 20px var(--cc-gap);
}

.cc-wordmark img {
  width: 38px;
  height: 38px;
}

.cc-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px var(--cc-gap);
  font-size: 14px;
}

.cc-header nav a {
  text-decoration: none;
  padding-block: 8px;
}

.cc-header nav a:hover,
.cc-header nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.cc-split-stage {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: start;
}

.cc-pinned-stage {
  height: calc(100svh - 20px);
  position: sticky;
  top: 10px;
  background: var(--cc-ink);
  color: var(--cc-paper);
  display: flex;
  flex-direction: column;
}

.cc-reveal {
  position: relative;
  flex: 1;
  min-height: 380px;
  overflow: hidden;
}

.cc-reveal img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.cc-reveal > img {
  position: absolute;
  inset: 0;
  object-position: 60% center;
}

.cc-reveal-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}

.cc-reveal-before img {
  object-position: 40% center;
}

.cc-game-tag {
  position: absolute;
  bottom: 20px;
  padding: 8px 13px;
  background: var(--cc-ink);
  color: var(--cc-paper);
  font-size: 14px;
}

.cc-game-v {
  left: 20px;
}

.cc-game-vi {
  right: 20px;
}

.cc-reveal-handle {
  position: absolute;
  left: var(--reveal);
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: var(--cc-blue);
}

.cc-reveal-control {
  padding: 24px 30px;
}

.cc-reveal-control label {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}

.cc-reveal-control input {
  width: 100%;
  height: 28px;
  accent-color: var(--cc-blue);
  cursor: ew-resize;
}

.cc-reveal-control p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
  color: #cbd2d6;
}

.cc-scrolling-copy {
  padding: 0 var(--cc-gap) 70px;
}

.cc-opening {
  padding-block: clamp(40px, 7vw, 110px) 70px;
}

.cc-opening h1 {
  font-size: clamp(54px, 5.9vw, 90px);
}

.cc-opening > p {
  max-width: 580px;
  margin-top: 28px;
  font-size: 20px;
}

.cc-action {
  display: inline-block;
  padding: 15px 22px;
  background: var(--cc-ink);
  color: var(--cc-paper);
  text-decoration: none;
  font-size: 15px;
  margin-top: 30px;
  transition: transform 200ms;
}

.cc-action:hover {
  transform: translateY(-3px);
}

.cc-opening > .cc-free {
  margin-top: 20px;
  font-size: 14px;
  max-width: 350px;
}

.cc-topic-index > p {
  margin-block: 20px 30px;
  color: var(--cc-subtle);
}

.cc-topic-index > a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding: 24px;
  background: var(--cc-soft);
  margin-bottom: 7px;
  text-decoration: none;
  transition: background-color 200ms, transform 200ms;
}

.cc-topic-index > a:hover {
  background: var(--cc-blue);
  transform: translateX(4px);
}

.cc-topic-index > a span:first-child {
  font-family: Gambarino, Georgia, serif;
  font-size: 30px;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.cc-topic-index > a span:last-child {
  font-size: 13px;
}

.cc-scope {
  margin-top: 80px;
}

.cc-scope p {
  margin-top: 22px;
}

.cc-scope > a {
  display: inline-block;
  margin-top: 25px;
  font-size: 15px;
}

.cc-wide-section {
  background: var(--cc-ink);
  color: var(--cc-paper);
  padding: 70px var(--cc-gap);
}

.cc-wide-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
  margin-bottom: 40px;
}

.cc-wide-heading p {
  max-width: 520px;
}

.cc-picture-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cc-picture-pair img {
  aspect-ratio: 1.4;
  object-fit: cover;
}

.cc-picture-pair figcaption {
  font-size: 14px;
  margin-top: 12px;
}

.cc-action-light {
  background: var(--cc-blue);
  color: var(--cc-ink);
}

.cc-home-answers {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 35px 70px;
  padding: 80px var(--cc-gap);
}

.cc-home-answers > h2 {
  align-self: start;
}

.cc-home-answers p {
  margin-bottom: 25px;
}

.cc-home-answers strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.cc-home-answers > a {
  grid-column: 2;
  font-size: 15px;
}

.cc-title {
  margin: 0 auto;
  padding: 65px var(--cc-gap) 55px;
  max-width: 1440px;
}

.cc-title > a {
  display: inline-block;
  font-size: 14px;
  margin-bottom: 25px;
}

.cc-title h1 {
  max-width: 1000px;
}

.cc-title > p {
  max-width: 760px;
  font-size: 20px;
  margin-top: 25px;
}

.cc-catalogue,
.cc-comparison-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--cc-gap) 80px;
}

.cc-catalogue form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--cc-soft);
}

.cc-catalogue input {
  min-width: 0;
  padding: 15px;
  border: 0;
  background: var(--cc-paper);
  border-radius: 0;
}

.cc-catalogue button {
  border: 0;
  padding: 15px 22px;
  background: var(--cc-ink);
  color: var(--cc-paper);
}

.cc-search-count {
  margin-block: 20px 30px;
  font-size: 14px;
}

.cc-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.cc-topic-grid article a {
  text-decoration: none;
}

.cc-topic-grid img {
  aspect-ratio: 1.4;
  object-fit: cover;
}

.cc-topic-grid h2 {
  font-size: 34px;
  margin-top: 20px;
}

.cc-topic-grid p {
  margin-top: 15px;
  font-size: 15px;
}

.cc-no-results {
  background: var(--cc-soft);
  padding: 30px;
}

.cc-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 35px;
}

.cc-side-by-side > section {
  padding: 30px;
  background: var(--cc-soft);
}

.cc-side-by-side > section:last-child {
  background: var(--cc-blue);
}

.cc-side-by-side p {
  margin-top: 20px;
}

.cc-comparison-notes {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.cc-comparison-notes h2 {
  font-size: 33px;
}

.cc-comparison-notes p {
  margin-top: 22px;
}

.cc-source,
.cc-context-note {
  font-size: 14px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.cc-context-note {
  background: var(--cc-soft);
  padding: 22px;
  margin-top: 22px;
}

.cc-answer-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px 75px;
  padding: 0 var(--cc-gap) 70px;
  max-width: 1300px;
  margin: 0 auto;
}

.cc-answer-book h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cc-answer-book + .cc-source {
  padding: 0 var(--cc-gap) 70px;
}

.cc-letter,
.cc-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 0 var(--cc-gap) 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.cc-letter img {
  position: sticky;
  top: 30px;
  height: 650px;
  object-fit: cover;
}

.cc-letter h2,
.cc-contact h2 {
  font-size: 35px;
  margin-bottom: 22px;
}

.cc-letter p,
.cc-contact p {
  margin-bottom: 30px;
}

.cc-contact address {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 30px;
  font-style: normal;
  padding: 40px;
  background: var(--cc-blue);
  align-self: start;
}

.cc-contact address strong {
  font-family: Gambarino, Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
}

.cc-policy {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 var(--cc-gap) 80px;
}

.cc-policy section {
  margin-bottom: 40px;
}

.cc-policy h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.cc-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cc-ink);
  color: var(--cc-paper);
}

.cc-footer-picture {
  position: relative;
  min-height: 470px;
}

.cc-footer-picture img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.cc-footer-picture p {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: var(--cc-ink);
  padding: 20px;
  font-family: Gambarino, Georgia, serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.cc-footer-content {
  padding: 50px var(--cc-gap);
}

.cc-footer-name {
  font-size: 24px;
  margin-bottom: 20px;
}

.cc-footer-content > p:not(.cc-footer-name),
.cc-footer address {
  font-size: 15px;
}

.cc-footer address {
  font-style: normal;
  margin-block: 25px 15px;
}

.cc-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  font-size: 14px;
  margin-block: 28px;
}

.cc-footer small {
  display: block;
  font-size: 13px;
  color: #cbd2d6;
}

@media (max-width: 1000px) {
  .cc-header {
    grid-template-columns: 1fr;
  }

  .cc-header nav {
    padding-top: 0;
    justify-content: start;
    gap: 25px;
  }

  .cc-split-stage {
    grid-template-columns: 42% 58%;
  }

  .cc-opening h1 {
    font-size: 57px;
  }

  .cc-opening > p {
    font-size: 18px;
  }

  .cc-topic-index > a {
    padding: 20px;
  }

  .cc-topic-index > a span:first-child {
    font-size: 28px;
  }

  .cc-topic-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --cc-gap: 22px;
  }

  .cc-header {
    min-height: 0;
  }

  .cc-wordmark {
    padding-block: 20px;
  }

  .cc-header nav {
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
  }

  .cc-split-stage {
    display: flex;
    flex-direction: column;
  }

  .cc-pinned-stage {
    width: 100%;
    position: static;
    height: auto;
    order: 2;
  }

  .cc-reveal {
    min-height: 340px;
  }

  .cc-reveal-control {
    padding: 20px 22px;
  }

  .cc-scrolling-copy {
    display: contents;
  }

  .cc-opening {
    order: 1;
    padding: 25px var(--cc-gap) 38px;
  }

  .cc-opening h1 {
    font-size: clamp(49px, 11.5vw, 70px);
  }

  .cc-opening > p {
    font-size: 18px;
    margin-top: 22px;
  }

  .cc-topic-index {
    order: 3;
    padding: 50px var(--cc-gap) 0;
    width: 100%;
  }

  .cc-scope {
    order: 4;
    margin-top: 45px;
    padding: 0 var(--cc-gap) 50px;
  }

  .cc-wide-section {
    padding-block: 45px;
  }

  .cc-wide-heading,
  .cc-home-answers,
  .cc-side-by-side,
  .cc-comparison-notes,
  .cc-answer-book,
  .cc-letter,
  .cc-contact,
  .cc-footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cc-picture-pair {
    gap: 10px;
  }

  .cc-picture-pair img {
    aspect-ratio: .9;
  }

  .cc-picture-pair figcaption {
    font-size: 13px;
  }

  .cc-home-answers {
    padding-block: 50px;
  }

  .cc-home-answers > a {
    grid-column: 1;
  }

  .cc-title {
    padding-top: 30px;
    padding-bottom: 35px;
  }

  .cc-title h1 {
    font-size: 48px;
  }

  .cc-title p {
    font-size: 18px;
  }

  .cc-catalogue form {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
  }

  .cc-catalogue label {
    grid-column: 1 / -1;
  }

  .cc-catalogue input {
    width: 100%;
    font-size: 16px;
  }

  .cc-catalogue button {
    padding-inline: 16px;
    font-size: 14px;
  }

  .cc-topic-grid {
    grid-template-columns: 1fr;
  }

  .cc-letter img {
    height: 300px;
    position: static;
  }

  .cc-contact address {
    padding: 28px;
  }

  .cc-footer-picture {
    min-height: 300px;
  }

  .cc-footer-content {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .cc-policy {
    padding-inline: var(--cc-gap);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Operator and contact identity. */
.site-identity {
  max-width: 1120px;
  margin: 40px auto;
  padding: 0 24px;
}
.site-identity h2 {
  margin-bottom: 16px;
}
.site-identity p {
  margin-bottom: 12px;
}
.site-identity a,
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
.site-operator {
  margin: 20px 0;
  font-size: 16px;
}
