:root {
  color-scheme: light;
  --ink: #2f2119;
  --ink-soft: #6f5c4f;
  --paper: #f5efe4;
  --paper-light: #fffaf1;
  --line: rgba(69, 48, 34, 0.22);
  --amber: #d36d2f;
  --honey: #e6ad39;
  --sage: #6f8065;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Avenir Next', Avenir, 'Gill Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(230, 173, 57, 0.15), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 42%), var(--paper);
  font-family: var(--sans);
}

a {
  color: inherit;
}

.paper-grain {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.masthead {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.edition {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

main {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 415px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 58px clamp(0px, 3vw, 42px) 64px 0;
}

.hero::after {
  content: '';
  position: absolute;
  right: 23%;
  bottom: 0;
  width: 1px;
  height: 62%;
  background: linear-gradient(transparent, var(--line));
  transform: rotate(18deg);
  transform-origin: bottom;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.eyebrow,
.tool-kicker {
  margin: 0 0 19px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7.2vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.8;
}

.hero-intro {
  max-width: 570px;
  margin: 38px 0 0 clamp(0px, 8vw, 120px);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.58;
}

.hero-seal {
  position: relative;
  z-index: 1;
  flex: 0 0 135px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  margin-left: 35px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  transform: rotate(7deg);
}

.hero-seal::before,
.hero-seal::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(47, 33, 25, 0.28);
  border-radius: inherit;
}

.hero-seal::after {
  inset: -9px;
  border-style: solid;
  border-color: rgba(47, 33, 25, 0.1);
}

.hero-seal span {
  font-family: var(--serif);
  font-size: 2.9rem;
  line-height: 0.9;
}

.hero-seal p {
  margin: 7px 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-card {
  --accent: var(--amber);
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  padding: 31px clamp(25px, 3.2vw, 48px) 38px;
  overflow: hidden;
  text-decoration: none;
  transition:
    background-color 280ms ease,
    color 280ms ease;
}

.tool-card + .tool-card {
  border-left: 1px solid var(--line);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--ink);
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card--clp {
  --accent: var(--sage);
}

.tool-card--quiz {
  --accent: #b78b22;
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-number {
  align-self: flex-end;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
}

.tool-illustration {
  height: 198px;
  display: grid;
  place-items: center;
  margin: 2px -10px 12px;
  color: var(--accent);
}

.tool-illustration svg {
  width: min(190px, 72%);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card .tool-kicker {
  margin-bottom: 13px;
  color: var(--accent);
}

.tool-card strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.tool-description {
  max-width: 340px;
  margin-top: 23px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tool-action span {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.tool-card:hover,
.tool-card:focus-visible {
  color: var(--paper-light);
}

.tool-card:hover::before,
.tool-card:focus-visible::before {
  height: 100%;
}

.tool-card:hover .tool-number,
.tool-card:hover .tool-description,
.tool-card:focus-visible .tool-number,
.tool-card:focus-visible .tool-description {
  color: rgba(255, 250, 241, 0.66);
}

.tool-card:hover .tool-illustration svg,
.tool-card:focus-visible .tool-illustration svg {
  transform: translateY(-6px) rotate(-2deg) scale(1.04);
}

.tool-card:hover .tool-action,
.tool-card:focus-visible .tool-action {
  border-color: rgba(255, 250, 241, 0.26);
}

.tool-card:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: -3px;
}

footer {
  width: min(1280px, calc(100% - 56px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer strong {
  color: var(--ink);
}

@media (max-width: 950px) {
  .hero {
    min-height: 375px;
  }

  .hero-seal {
    flex-basis: 112px;
  }

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

  .tool-card {
    min-height: 380px;
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) 1fr;
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 40px;
  }

  .tool-card + .tool-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tool-number {
    grid-column: 2;
    grid-row: 1;
  }

  .tool-illustration {
    grid-column: 1;
    grid-row: 1 / 6;
    height: auto;
    margin: 0;
  }

  .tool-kicker,
  .tool-card strong,
  .tool-description,
  .tool-action {
    grid-column: 2;
  }

  .tool-kicker {
    grid-row: 2;
  }

  .tool-card strong {
    grid-row: 3;
  }

  .tool-description {
    grid-row: 4;
  }

  .tool-action {
    grid-row: 5;
  }
}

@media (max-width: 650px) {
  .masthead,
  main,
  footer {
    width: min(100% - 32px, 1280px);
  }

  .masthead {
    padding-top: 19px;
  }

  .edition {
    display: none;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 55px 0 47px;
  }

  .hero::after,
  .hero-seal {
    display: none;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
    line-height: 0.86;
  }

  .hero-intro {
    margin: 30px 0 0;
    font-size: 1.04rem;
  }

  .tool-card {
    min-height: 520px;
    display: flex;
    padding: 25px 23px 30px;
  }

  .tool-illustration {
    height: 170px;
    margin: 0;
  }

  .tool-card strong {
    font-size: 2.3rem;
  }

  .tool-description {
    margin-top: 18px;
  }

  .tool-action {
    margin-top: auto;
  }

  footer {
    display: grid;
    padding-bottom: 30px;
    line-height: 1.55;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
