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

/* Stylesheet for /resources/reduce-crypto-taxes-canada/ only. Don't link it from other pages. */

/* ---------- Tokens ---------- */
:root {
  --ink: #062526;
  --sky: #a7d2dd;
  --coral: #f47068;
  --coral-eyebrow: #f67d73;
  --teal: #0f606b;
  --cream: #fff4f0;
  --white: #fff;

  --fs-title: min(53.3px, 10.3vw);
  --fs-hero-title: min(50.65px, 10.5vw);
  --fs-article-title: clamp(28px, 2.96vw, 42.68px);
  --fs-subtitle: clamp(20px, 1.85vw, 26.67px);
  --fs-eyebrow: clamp(16px, 1.67vw, 24px);
  --fs-body: clamp(16px, 1.48vw, 21.34px);
  --fs-button: clamp(17px, 1.72vw, 24.8px);

  --radius-photo: clamp(28px, 2.8vw, 40px);
  --text-left: max(16px, 50% - 613px);
}

/* ---------- 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 {
  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-thickness: initial;
    text-decoration-style: initial;
    text-decoration-color: inherit;
  }
  
  a.btn {
  text-decoration: none;
}


b {
  font-weight: 700;
}

section {
  overflow: hidden;
}

/* Canva's hard line breaks only fit the full desktop width. */
@media (max-width: 1280px) {
  section p br,
  .hero__title br,
  .video__title br {
    display: none;
  }
}

/* The worksheet and strategy-call titles keep Canva's breaks on phones, but not in between. */
@media (min-width: 801px) and (max-width: 1280px) {
  .promo__title br {
    display: none;
  }
}

/* Google's Montserrat 500 is ~0.5% wider than Canva's regular, so the article lines, which Canva broke
   by hand to fill 1170px, need a hair of negative tracking to keep those breaks at 1440px. */
.article {
  letter-spacing: -.004em;
}

@media (max-width: 1399px) {
  .article br {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 0 clamp(24px, 3vw, 40px);
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.btn--teal {
  background: var(--teal);
}

.btn--coral {
  background: var(--coral);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 87px;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 441fr) minmax(0, 723fr);
  column-gap: clamp(32px, 3.2vw, 46px);
  align-items: center;
  width: min(1230px, 100% - 32px);
  margin-inline: auto;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 441 / 385;
  object-fit: cover;
  object-position: 27% 50%;
  border-radius: var(--radius-photo);
}

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

.hero__title {
  margin-top: 36px;
  font-size: var(--fs-hero-title);
  font-weight: 900;
  line-height: .93;
  text-transform: uppercase;
  color: var(--cream);
}

.hero__subtitle {
  margin-top: 22px;
  font-size: var(--fs-subtitle);
  font-weight: 700;
  line-height: 1.39;
}

.hero__lead {
  margin-top: 25px;
}

.hero__lead + .hero__lead {
  margin-top: 29px;
}

@media (max-width: 800px) {
  .hero {
    padding: 24px 0 56px;
  }

  .hero__body {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    row-gap: 24px;
  }

  .hero__title {
    margin-top: 20px;
  }
}

/* ---------- Promo sections (cheat sheet, worksheet, strategy call) ---------- */
.promo__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 496px);
  column-gap: 32px;
  align-items: center;
  width: min(1296px, 100% - 32px);
  margin-inline: auto;
}

.promo__heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.promo__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.375;
  text-transform: uppercase;
  color: var(--coral-eyebrow);
}

.promo__title {
  font-size: var(--fs-title);
  font-weight: 900;
  line-height: 1.09;
  color: #082b32;
}

.promo__lead {
  font-size: var(--fs-subtitle);
  line-height: 1.39;
  color: #082b32;
}

.promo__text .btn {
  margin-left: 21px;
}

.promo__visual {
  position: relative;
}

.promo__visual img {
  position: absolute;
  height: auto;
}

/* Cheat sheet: icons, then a mint blob with a phone and a coin stack. */
.promo--cheat-sheet {
  padding: 0;
}

.promo--cheat-sheet .promo__icon {
  width: 126px;
}

.promo--cheat-sheet .promo__title {
  margin-top: 12px;
}

.promo--cheat-sheet .promo__lead {
  margin-top: 18px;
}

.promo--cheat-sheet .btn {
  margin-top: 28px;
  min-width: min(392px, 100%);
}

.promo__visual--cheat-sheet {
  aspect-ratio: 496 / 486;
}

.promo__visual--cheat-sheet .promo__blob {
  left: 18.1%;
  top: 6.8%;
  width: 81.9%;
}

.promo__visual--cheat-sheet .promo__main {
  left: 0;
  top: .6%;
  width: 73.8%;
}

.promo__visual--cheat-sheet .promo__extra {
  left: 51.2%;
  top: 44%;
  width: 29.2%;
}

/* Worksheet: a pencil on a sky circle, a coral blob with a folder. */
.promo--worksheet {
  padding: 0;
  min-height: 592px;
}

.promo--worksheet .promo__body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
}

.promo--worksheet .promo__heading,
.promo--strategy-call .promo__heading {
  position: relative;
  min-height: 94px;
}

.promo--worksheet .promo__icon--circle,
.promo--strategy-call .promo__icon--circle {
  position: relative;
  width: 84px;
}

.promo--worksheet .promo__icon--pencil {
  position: absolute;
  left: 17px;
  top: 14px;
  width: 59px;
}

.promo--worksheet .promo__title {
  margin-top: 4px;
}

.promo--worksheet .promo__lead {
  margin-top: 14px;
  max-width: 613px;
}

.promo--worksheet .btn {
  margin-top: 40px;
  min-width: min(440px, 100%);
}

.promo__visual--worksheet {
  aspect-ratio: 785 / 698;
  margin-right: min(0px, calc(640px - 785px));
  margin-block: -67px -39px;
}

.promo__visual--worksheet .promo__blob {
  left: 30%;
  top: 14%;
  width: 53.5%;
}

.promo__visual--worksheet .promo__main {
  left: 0;
  top: 0;
  width: 100%;
}

/* Strategy call: chat icon on a sky circle, a laptop with a mug. */
.promo--strategy-call {
  padding: 0;
  min-height: 562px;
}

.promo--strategy-call .promo__icon--circle {
  width: 98px;
}

.promo--strategy-call .promo__icon--chat {
  position: absolute;
  left: 4px;
  top: 14px;
  width: 89px;
}

.promo--strategy-call .promo__heading {
  min-height: 108px;
}

.promo--strategy-call .promo__eyebrow {
  margin-left: 4px;
}

.promo--strategy-call .promo__title {
  margin-top: -6px;
}

.promo--strategy-call .promo__lead {
  margin-top: 12px;
  max-width: 613px;
}

.promo--strategy-call .btn {
  margin-top: 28px;
  min-width: min(345px, 100%);
}

.promo__visual--strategy-call {
  aspect-ratio: 560 / 510;
}

.promo__visual--strategy-call .promo__blob {
  left: 0;
  top: 0;
  width: 78%;
}

.promo__visual--strategy-call .promo__main {
  left: 0;
  top: 10%;
  width: 89%;
}

.promo__visual--strategy-call .promo__extra {
  left: 44%;
  top: 33%;
  width: 55.7%;
}

@media (max-width: 800px) {
  .promo__body {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    row-gap: 24px;
  }

  .promo__heading {
    gap: 10px;
  }

  .promo__text .btn {
    margin-left: 8px;
    max-width: 100%;
  }

  .promo--cheat-sheet,
  .promo--worksheet,
  .promo--strategy-call {
    min-height: 0;
    padding: 26px 0 28px;
  }

  .promo--cheat-sheet .promo__icon {
    width: 101px;
  }

  .promo--worksheet .promo__body {
    grid-template-columns: minmax(0, 560px);
  }

  .promo--worksheet .promo__icon--circle {
    width: 68px;
  }

  .promo--worksheet .promo__title {
    max-width: 7.4em;
  }

  .promo--strategy-call .promo__title {
    font-size: min(53.3px, 7.6vw);
  }

  .promo__text .btn {
    min-width: 0;
    width: min(350px, 100%);
    min-height: 66px;
  }

  .promo--worksheet .promo__icon--pencil {
    left: 13px;
    top: 11px;
    width: 47px;
  }

  .promo--strategy-call .promo__heading {
    min-height: 80px;
  }

  .promo--strategy-call .promo__icon--circle {
    width: 53px;
  }

  .promo--strategy-call .promo__icon--chat {
    left: 7px;
    top: 10px;
    width: 48px;
  }

  .promo--strategy-call .promo__eyebrow {
    font-size: 14px;
  }

  .promo--worksheet .promo__heading {
    min-height: 75px;
  }

  .promo__visual--cheat-sheet {
    aspect-ratio: 357 / 366;
  }

  .promo__visual--cheat-sheet .promo__blob {
    left: 4.5%;
    top: 6.6%;
    width: 91%;
  }

  .promo__visual--cheat-sheet .promo__main {
    left: -15.7%;
    top: 0;
    width: 81.8%;
  }

  .promo__visual--cheat-sheet .promo__extra {
    left: 41.5%;
    top: 46.2%;
    width: 32.5%;
  }

  /* Canva's folder picture is 549px wide and runs off both edges of the phone. */
  .promo__visual--worksheet {
    margin: -60px 0 0 calc((100% - 549px) / 2);
    aspect-ratio: 549 / 488;
    width: 549px;
    max-width: none;
  }

  .promo__visual--worksheet .promo__blob {
    left: 30%;
    top: 21%;
    width: 53.5%;
  }

  .promo__visual--strategy-call {
    aspect-ratio: 360 / 300;
  }
}

/* ---------- On this page ---------- */
.toc {
  background: var(--sky);
  padding: 55px 0 100px;
}

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

.toc__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: -4px;
}

.toc__icon {
  width: 104px;
  flex: none;
}

.toc__title {
  font-size: var(--fs-title);
  font-weight: 900;
  line-height: 1.09;
  color: #082b32;
}

.toc__list {
  margin: 10px 0 0 11px;
  font-size: var(--fs-subtitle);
  line-height: 1.39;
  color: #082b32;
}

@media (max-width: 800px) {
  .toc {
    padding: 45px 0 70px;
  }

  .toc__heading {
    flex-direction: column;
    gap: 8px;
    margin-left: 0;
  }

  .toc__icon {
    width: 83px;
  }

  .toc__title {
    text-align: center;
  }

  .toc__list {
    margin: 12px 0 0 3px;
  }
}

/* ---------- Article text on ink ---------- */
.article {
  background: var(--ink);
  color: var(--white);
  padding: 74px 0 38px;
}

.article__body {
  width: min(1170px, 100% - 32px);
  margin-left: var(--text-left);
}

.article__title {
  font-size: var(--fs-article-title);
  font-weight: 900;
  line-height: 1.01;
  color: var(--cream);
}

.article .article__subtitle {
  margin: 10px 0 35px;
  font-size: var(--fs-subtitle);
  font-weight: 700;
  line-height: 1.39;
}

/* One blank line (29px) between blocks; headings sit a little closer to what follows. */
.article p + p,
.article ul + p {
  margin-top: 29px;
}

.article p.article__stack {
  margin-top: 0;
}

.article .article__heading {
  margin: 29px 0 26px;
  font-size: var(--fs-subtitle);
  font-weight: 700;
  line-height: 1.39;
}

.article .article__heading:first-child {
  margin-top: 0;
}

.article .article__minor-heading {
  margin-top: 29px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.36;
}

.article .article__subtitle + .article__minor-heading {
  margin-top: 0;
}

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

.article .article__minor-heading + p,
.article .article__minor-heading + ul {
  margin-top: 0;
}

.article--bitcoin-well {
  padding-bottom: 66px;
}

.article--structure {
  padding-bottom: 42px;
}

.article--fit {
  padding: 45px 0 74px;
}

.article--family {
  padding-bottom: 60px;
}

.article--faq {
  padding-bottom: 138px;
}

@media (max-width: 800px) {
  .article {
    padding: 48px 0 32px;
  }

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

  .article--fit {
    padding: 28px 0 48px;
  }

  .article--faq {
    padding-bottom: 64px;
  }

  .article--family,
  .article--bitcoin-well {
    padding-bottom: 40px;
  }
}

/* ---------- Weekly newsletter (S5, S15) ---------- */
.newsletter {
  padding: 55px 0 45px;
}

.newsletter__body {
  display: grid;
  grid-template-columns: 1fr minmax(0, 537px);
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
}

.newsletter__heading {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-left: -6px;
}

.newsletter__heading img {
  width: 134px;
}

.newsletter__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: .027em;
  text-transform: uppercase;
  color: var(--coral);
}

.newsletter h2 {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: -3px 0 0 18px;
  font-size: clamp(30px, 4.26vw, 61.36px);
  font-weight: 900;
  line-height: 1.06;
  white-space: nowrap;
}

.newsletter--year-end h2 {
  font-size: var(--fs-title);
  line-height: 1.09;
}

.newsletter__lead {
  margin: 49px 0 0 5px;
  font-size: var(--fs-subtitle);
  line-height: 1.39;
}

/* The laptop mock-up: every part is placed in percent of the figure, text in container units. */
.newsletter__visual {
  position: relative;
  align-self: start;
  width: 100%;
  margin: 77px 0 0 -13px;
  aspect-ratio: 537 / 418;
  container-type: inline-size;
}

.newsletter__visual > *,
.newsletter__visual > picture > img {
  position: absolute;
}

.newsletter__visual img {
  height: auto;
}

.newsletter__blob {
  left: 11.7%;
  top: 0;
  width: 68.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #cce8e4;
}

.newsletter__laptop {
  left: 0;
  top: 21.05%;
  width: 80.45%;
}

.newsletter__screen-bar {
  left: 21.6%;
  top: 23.7%;
  width: 57%;
  height: 18.4%;
  background: #0b3b40;
}

.newsletter__screen-paper {
  left: 21.6%;
  top: 55.3%;
  width: 52.9%;
  height: 21%;
  border-radius: 6px;
  background: #f7f2ec;
  box-shadow: 0 0 8px rgb(0 0 0 / .08);
}

.newsletter__plant {
  left: 56.8%;
  top: 0;
  width: 43.2%;
}

.newsletter__mug {
  left: 74.3%;
  top: 60.5%;
  width: 25.5%;
}

.newsletter__leaf {
  left: 80.3%;
  top: 68.2%;
  width: 9.9%;
}

.newsletter__visual span {
  line-height: 1.15;
  rotate: -3deg;
  font-family: Arial, "Helvetica Neue", sans-serif;
  letter-spacing: -.02em;
}

.newsletter__date {
  left: 66.1%;
  top: 25.8%;
  font-size: 2.3cqw;
  color: #fff;
}

.newsletter__screen-title {
  left: 26.6%;
  top: 29.9%;
  font-size: 3.33cqw;
  color: #fff;
}

.newsletter__screen-heading {
  left: 34.6%;
  top: 42.3%;
  width: 31.7%;
  font-size: 3.99cqw;
  line-height: 1.1;
  color: #082b32;
}

.newsletter__screen-text {
  left: 24.2%;
  top: 58.1%;
  width: 46.4%;
  font-size: 2.29cqw;
  line-height: 1.3;
  color: #082b32;
}

@media (max-width: 800px) {
  .newsletter {
    padding: 40px 0 48px;
  }

  .newsletter__body {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
  }

  .newsletter__heading img {
    width: 90px;
  }

  .newsletter h2 {
    margin: 4px 0 0;
    font-size: 9vw;
    white-space: normal;
    line-height: 1;
  }

  .newsletter--year-end h2 {
    margin: 4px 0 0;
    font-size: min(53.3px, 10.4vw);
    white-space: normal;
    line-height: 1;
  }

  .newsletter__lead {
    margin: 20px 0 0;
  }

  .newsletter__visual {
    margin: 28px auto 0;
  }
}

/* The text printed on the laptop screen keeps its line breaks at every width. */
.newsletter__visual span br {
  display: inline;
}

/* ---------- Video cards ---------- */
.video {
  padding: 55px 0 78px;
}

.video__title {
  width: min(1210px, 100% - 32px);
  margin: 0 auto 44px;
  font-size: var(--fs-article-title);
  font-weight: 900;
  line-height: 1.01;
  text-align: center;
  color: var(--ink);
}

.video__card {
  width: min(1210px, 100% - 32px);
  margin-inline: auto;
  padding: 24px;
  border-radius: var(--radius-photo);
  background: var(--white);
}

.video__player {
  display: block;
  width: min(780px, 100%);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border: 0;
}

@media (max-width: 800px) {
  .video {
    padding: 40px 0 48px;
  }

  .video__title {
    width: min(560px, 100% - 32px);
    margin-bottom: 24px;
  }

  .video__card {
    width: min(560px, 100% - 32px);
    padding: 12px;
  }
}
