:root {
  --site-container: 72rem;
  --site-gutter: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img,
svg {
  display: block;
}

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

.wrap {
  width: min(calc(100% - var(--site-gutter) - var(--site-gutter)), var(--site-container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  border-radius: var(--st-r-sm);
  background: var(--st-ink);
  color: var(--st-surface);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--st-hair);
}

.nav-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex: none;
}

.brand-lockup img {
  width: 7.55rem;
  height: auto;
}

.brand-lockup span {
  width: 1px;
  height: 1.65rem;
  background: var(--st-hair);
}

.brand-lockup strong {
  color: var(--st-ink-2);
  font-family: var(--st-font-sans);
  font-size: .9rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-links a {
  color: var(--st-ink-2);
  font-size: .9rem;
  font-weight: 500;
  transition: color .16s ease;
}

.nav-links a:hover {
  color: var(--st-ink);
}

.hero {
  min-height: 40rem;
  padding-block: clamp(5.5rem, 11vw, 9rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-copy {
  max-width: 52rem;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 1rem 0 0;
  color: var(--st-ink);
  font-size: clamp(3.25rem, 7.4vw, 5.85rem);
  line-height: .98;
  letter-spacing: -.025em;
}

.hero-lede {
  max-width: 39rem;
  margin: 1.55rem 0 0;
  color: var(--st-ink-2);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.st-btn {
  min-height: 2.75rem;
  font-size: .9rem;
  font-weight: 600;
}

.st-btn svg,
.card-action svg,
.topic-list svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  background: var(--st-canvas-2);
}

.section-heading {
  max-width: 42rem;
}

.section-heading h2 {
  margin: .65rem 0 0;
  color: var(--st-ink);
  font-size: clamp(2.2rem, 5vw, 3.45rem);
  line-height: 1.04;
}

.section-heading > p:last-child {
  margin: 1.1rem 0 0;
  color: var(--st-ink-2);
  font-size: 1.06rem;
  line-height: 1.62;
}

.product-grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.doc-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doc-card-header {
  min-height: 18rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.product-meta {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--st-ink-3);
  font-family: var(--st-font-mono);
  font-size: .66rem;
}

.product-meta span:first-child {
  color: var(--st-brand-strong);
  font-weight: 500;
}

.doc-card-header h3 {
  margin: 3.1rem 0 0;
  color: var(--st-ink);
  font-size: clamp(2.15rem, 4vw, 3rem);
}

.doc-card-header > p:last-child {
  max-width: 31rem;
  margin: 1rem 0 0;
  color: var(--st-ink-2);
  font-size: 1rem;
  line-height: 1.58;
}

.primary-doc-card .doc-card-header {
  min-height: 17rem;
}

.product-intro {
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: minmax(12rem, .65fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 7rem);
}

.primary-doc-card .product-intro h3 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 5.75rem);
  line-height: .9;
}

.primary-doc-card .product-intro p {
  max-width: 39rem;
  margin: 0;
  color: var(--st-ink-2);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--st-hair);
  background: var(--st-hair);
}

.module-grid a {
  min-height: 13rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.5rem .75rem;
  background: var(--st-surface);
  transition: background .16s ease;
}

.module-grid a:hover {
  background: var(--st-canvas);
}

.module-number {
  grid-column: 1;
  color: var(--st-ink-3);
  font-family: var(--st-font-mono);
  font-size: .65rem;
}

.module-grid a > span:nth-child(2) {
  grid-column: 1;
  align-self: end;
}

.module-grid strong {
  display: block;
  color: var(--st-ink);
  font-family: var(--st-font-display);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.15;
}

.module-grid small {
  display: block;
  margin-top: .55rem;
  color: var(--st-ink-3);
  font-size: .82rem;
  line-height: 1.42;
}

.module-grid svg {
  grid-column: 2;
  grid-row: 1;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--st-ink-3);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-list {
  border-top: 1px solid var(--st-hair);
}

.topic-list a {
  min-height: 5.15rem;
  padding: 1rem clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--st-hair);
  transition: background .16s ease, color .16s ease;
}

.topic-list a:hover {
  background: var(--st-canvas);
}

.topic-number,
.resource-number {
  color: var(--st-ink-3);
  font-family: var(--st-font-mono);
  font-size: .65rem;
}

.topic-list strong {
  display: block;
  color: var(--st-ink);
  font-size: .95rem;
  font-weight: 600;
}

.topic-list small {
  display: block;
  margin-top: .12rem;
  color: var(--st-ink-3);
  font-size: .84rem;
  line-height: 1.35;
}

.topic-list svg {
  color: var(--st-ink-3);
}

.card-action {
  min-height: 4.75rem;
  margin-top: auto;
  padding: 1rem clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--st-brand-strong);
  font-size: .92rem;
  font-weight: 600;
}

.card-action:hover {
  color: var(--st-ink);
}

.desktop-card {
  display: grid;
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto;
}

.desktop-card .doc-card-header {
  min-height: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  border-right: 1px solid var(--st-hair);
}

.desktop-card .topic-list {
  grid-column: 2;
  grid-row: 1;
  border-top: 0;
}

.desktop-card .card-action {
  grid-column: 2;
  grid-row: 2;
}

.resource-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(16rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 9vw, 7.5rem);
  align-items: start;
}

.resource-heading {
  position: sticky;
  top: 7.5rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
}

.resource-grid section {
  min-height: 17rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--st-hair);
}

.resource-grid h3 {
  margin: 2rem 0 0;
  color: var(--st-ink);
  font-family: var(--st-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -.01em;
}

.resource-grid p {
  margin: .55rem 0 1rem;
  color: var(--st-ink-2);
  font-size: .92rem;
  line-height: 1.5;
}

.resource-grid a {
  width: fit-content;
  margin-top: .4rem;
  display: block;
  color: var(--st-brand-strong);
  font-size: .88rem;
  font-weight: 600;
}

.resource-grid a:hover {
  color: var(--st-ink);
}

.support-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.support-card {
  padding: clamp(2rem, 6vw, 4.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.support-card > div {
  max-width: 43rem;
}

.support-card h2 {
  margin: .7rem 0 0;
  color: var(--st-ink);
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.05;
}

.support-card p:last-child {
  margin: 1rem 0 0;
  color: var(--st-ink-2);
  font-size: 1.02rem;
}

.support-card .st-btn {
  flex: none;
}

.site-footer {
  border-top: 1px solid var(--st-hair);
  background: var(--st-surface);
}

.footer-grid {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(8rem, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
}

.footer-brand img {
  width: 8rem;
  height: auto;
}

.footer-brand p {
  max-width: 19rem;
  margin: 1.15rem 0 0;
  color: var(--st-ink-3);
  font-size: .88rem;
  line-height: 1.55;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  color: var(--st-ink);
  font-family: var(--st-font-sans);
  font-size: .78rem;
  font-weight: 600;
}

.footer-grid > div:not(.footer-brand) a {
  width: fit-content;
  margin-top: .55rem;
  display: block;
  color: var(--st-ink-3);
  font-size: .85rem;
}

.footer-grid > div:not(.footer-brand) a:hover {
  color: var(--st-ink);
}

.footer-bottom {
  min-height: 4.5rem;
  border-top: 1px solid var(--st-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--st-ink-3);
  font-family: var(--st-font-mono);
  font-size: .64rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .resource-layout {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-card {
    grid-template-columns: 1fr;
  }

  .desktop-card .doc-card-header,
  .desktop-card .topic-list,
  .desktop-card .card-action {
    grid-column: 1;
    grid-row: auto;
  }

  .desktop-card .doc-card-header {
    min-height: 16rem;
    border-right: 0;
  }

  .desktop-card .topic-list {
    border-top: 1px solid var(--st-hair);
  }

  .resource-heading {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding-block: .85rem;
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .brand-lockup img {
    width: 6.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: .75rem;
  }

  .hero {
    padding-top: 4rem;
    gap: 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.75rem);
  }

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

  .product-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .support-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    padding-block: 1.25rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 460px) {
  .nav-links a {
    font-size: .8rem;
  }

  .hero-actions .st-btn {
    width: 100%;
  }

  .doc-card-header {
    min-height: 16rem;
  }

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

  .module-grid a {
    min-height: 10.5rem;
  }

  .topic-list a {
    grid-template-columns: 1.7rem minmax(0, 1fr);
  }

  .topic-list svg {
    display: none;
  }
}
