@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Stylesheet for /cheat-sheet/ only. Don't link it from other pages. */

/* ---------- Tokens ---------- */
:root {
  --ink: #062526;
  --sky: #a7d2dd;
  --coral: #f47068;
  --cream: #fff4f0;
  --white: #fff;

  --fs-display: min(74.67px, 15.3vw);
  --fs-display-tight: min(74.67px, 12.71vw);
  --fs-quote: clamp(25.6px, 2.22vw, 32px);
  --fs-eyebrow: clamp(19.2px, 1.67vw, 24px);
  --fs-body: clamp(17px, 1.48vw, 21.33px);
  --fs-small: clamp(14.9px, 1.3vw, 18.67px);
  --fs-tagline: min(32px, 3.44vw);

  --radius-photo: clamp(24px, 2.8vw, 40px);
  --wrap: 1232px;
  /* Photo + text rows start at x=37 and end at x=1313 on the 1440px design. */
  --row: 1276px;
}

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

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-body);
  /* Canva's "regular" Montserrat renders like Google's 500. */
  font-weight: 500;
  line-height: 1.36;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  padding: 0;
  list-style: none;
}

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

/* The <picture> wrapper from the responsiveImage shortcode must not affect layout. */
picture {
  display: contents;
}

picture > source {
  display: none;
}

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

b {
  font-weight: 700;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.bullets {
  padding-left: 1.7em;
  list-style: disc;
}

.bullets--roomy {
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn--cta {
  min-height: 72px;
  width: min(537px, 100%);
  padding: 0 24px;
  background: var(--coral);
  color: var(--cream);
  font-size: var(--fs-eyebrow);
}

.btn--light-border {
  border-color: var(--cream);
}

.btn--dark-border {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  display: flow-root;
  background: var(--ink);
  color: var(--white);
  padding-bottom: 10px;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 555fr) minmax(0, 651fr);
  column-gap: clamp(32px, 4.9vw, 70px);
  align-items: start;
  width: min(var(--row), 100% - 32px);
  margin: 94px 0 0 max(16px, 50% - 683px);
}

.hero__photo {
  margin-top: 85px;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 555 / 642;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.hero__text {
  padding-bottom: 31px;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.375;
  letter-spacing: .036em;
  text-transform: uppercase;
  color: var(--coral);
  text-align: center;
}

.hero__title {
  margin-top: 54px;
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.125;
  text-transform: uppercase;
  text-align: center;
}

.hero__subtitle {
  font-size: var(--fs-quote);
  line-height: 1.375;
  color: var(--sky);
  text-align: center;
}

.hero__lead {
  margin: 49px 0 29px;
}

.hero__text .btn {
  margin: 93px 0 0 99px;
}

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 55px 0 35px;
  text-align: center;
}

/* A small opening line, then the rest of the quote in larger type. */
.testimonial p {
  font-size: var(--fs-quote);
  line-height: 1.375;
}

.testimonial .testimonial__lead {
  margin-bottom: 7px;
  font-size: var(--fs-eyebrow);
}

/* Canva shows the middle of a landscape photo inside the circle. */
.testimonial img {
  width: clamp(148px, 12.85vw, 185px);
  aspect-ratio: 1;
  margin: 25px auto 35px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial cite {
  font-style: italic;
}

/* ---------- Crypto in Canada is complicated ---------- */
.complicated {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0 71px;
}

.complicated__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  column-gap: 32px;
}

.complicated__body > :not(.complicated__coins) {
  grid-column: 1;
}

.complicated__title {
  max-width: 774px;
  font-size: var(--fs-display-tight);
  font-weight: 900;
  line-height: 1.02;
}

.complicated__subtitle {
  margin-top: 24px;
  font-size: var(--fs-quote);
  font-weight: 600;
  line-height: 1.375;
}

.complicated__intro {
  margin: 29px 0;
}

.complicated__body .btn {
  justify-self: start;
  margin: 48px 0 0 14px;
}

.complicated__coins {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: 318px;
  margin: 179px 26px 0 0;
}

/* ---------- About ---------- */
.about {
  padding: 64px 0 70px;
}

.about__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

.about__tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
  font-size: var(--fs-tagline);
  font-weight: 700;
  line-height: 1.375;
  white-space: nowrap;
}

.about__tagline img {
  height: 1.8em;
  width: auto;
  /* The tall emoji must not make the line taller than the text. */
  margin: -.22em 0 -.22em .4em;
}

.about__body {
  display: grid;
  grid-template-columns: minmax(0, 638fr) minmax(0, 576fr);
  column-gap: clamp(32px, 4.3vw, 62px);
  align-items: start;
  width: min(var(--row), 100% - 32px);
  margin: 70px 0 0 max(16px, 50% - 683px);
}

.about__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 638 / 662;
  border-radius: var(--radius-photo);
}

/* Canva zooms the photo in, keeps its bottom edge and centres Charlene slightly right of middle. */
.about__photo img {
  position: absolute;
  bottom: 0;
  left: 53%;
  height: 118.8%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.photo-caption {
  position: absolute;
  left: 0;
  right: 43px;
  bottom: 39px;
  padding: 14px 17px;
  border-radius: 10px;
  background: rgb(6 37 38 / .85);
  font-size: var(--fs-small);
  line-height: 1.07;
  letter-spacing: .036em;
  color: var(--cream);
}

.about__text {
  padding-top: 10px;
}

.about__text p + p {
  margin-top: 29px;
}

.about__text .btn {
  margin-top: 61px;
}

/* ---------- Below the full desktop width ---------- */
@media (max-width: 1280px) {

  /* Canva's hard line breaks only fit the full 1440px design; below it text wraps naturally. */
  p br,
  li br,
  h2 br {
    display: none;
  }

  .hero__text .btn {
    margin-left: 0;
    justify-self: center;
  }

  .hero__text {
    display: grid;
  }

  .complicated__coins {
    width: 100%;
    margin-right: 0;
  }

  .complicated__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 318px);
    column-gap: 24px;
  }
}

/* ---------- Tablet: buttons and bullets need a little more room ---------- */
@media (max-width: 1024px) {
  .complicated__coins {
    margin-top: 120px;
  }
}

/* ---------- Phone layout (Canva's 390px design) ---------- */
@media (max-width: 800px) {

  /* Canva's phone design is 390px wide; on larger phones and small tablets keep it from ballooning. */
  :root {
    --wrap: 560px;
  }

  .hero__body,
  .about__body {
    max-width: var(--wrap);
  }

  /* The eyebrow moves above the photo, so the text column dissolves into the hero. */
  .hero__body {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 26px max(16px, 50% - 280px) 0;
  }

  .hero__text {
    display: contents;
  }

  .eyebrow {
    order: -1;
    padding-inline: 11px 4px;
  }

  .hero__photo {
    margin-top: 12px;
  }

  .hero__title {
    margin-top: 18px;
  }

  .hero__lead {
    margin: 11px 0 24px;
  }

  .hero__text .btn,
  .complicated__body .btn,
  .about__text .btn {
    width: 100%;
    min-height: 58px;
    margin-left: 0;
  }

  .hero__text .btn {
    margin-top: 22px;
    margin-bottom: 6px;
  }

  .hero {
    padding-bottom: 10px;
  }

  .testimonial {
    padding: 44px 0 26px;
  }

  .testimonial .testimonial__lead {
    margin-bottom: 6px;
  }

  .testimonial img {
    margin: 14px auto 15px;
  }

  .complicated {
    padding: 57px 0 56px;
  }

  .complicated__body {
    display: flex;
    flex-direction: column;
  }

  .complicated__subtitle {
    margin-top: 18px;
  }

  .complicated__intro {
    margin: 12px 0 23px;
  }

  .complicated__body .btn {
    margin-top: 14px;
  }

  .complicated__coins {
    width: 254px;
    margin: 16px 0 0;
  }

  .about {
    padding: 52px 0 54px;
  }

  .about__tagline {
    margin-top: 5px;
  }

  .about__body {
    display: block;
    width: auto;
    margin: 18px max(16px, 50% - 280px) 0;
  }

  .about__photo {
    aspect-ratio: 359 / 547;
  }

  .photo-caption {
    left: 15px;
    right: 16px;
    bottom: 32px;
    padding: 8px 20px 8px 22px;
  }

  .about__text {
    padding-top: 12px;
  }

  .about__text p + p {
    margin-top: 23px;
  }

  .about__text .btn {
    margin-top: 17px;
  }
}

/* ---------- Very narrow phones ---------- */
@media (max-width: 360px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}
