:root {
  --black: #1A1A1A;
  --white: #FFFFFF;
  --sunbeam: #F8FF2C;
  --sunbeam-soft: #FEFFD9;
  --sand-100: #F3F0EE;
  --sand-200: #EDEBE8;
  --sand-300: #E5E3E1;
  --sand-500: #94918E;
  --sand-700: #47423D;
  --ocean-100: #E9F2FF;
  --ocean-300: #3A6783;
  --mist-100: #FFF0FE;
  --mist-300: #FF8077;
  --success: #166534;
  --warning: #78350F;
  --line: rgba(26, 26, 26, 0.14);
  --shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand-100);
  color: var(--black);
  font-family: "ABC Diatype", "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 238, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 750;
}

.top-nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  text-decoration: none;
}

.top-nav a.primary,
.button.primary {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.page-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(44px, 7vw, 84px) 0 30px;
}

.hero.copy-only {
  display: block;
  width: min(900px, calc(100vw - 40px));
  margin: 0 auto;
  padding-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--sand-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sunbeam);
  box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.16);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
}

.resource-page h1 {
  max-width: 14ch;
  font-size: clamp(42px, 7vw, 78px);
}

.lead {
  max-width: 66ch;
  margin: 22px 0 0;
  color: #435062;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-panel {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.08), rgba(26, 26, 26, 0.82)),
    var(--hero-image, linear-gradient(120deg, var(--sunbeam-soft), var(--ocean-100)));
  background-size: cover;
  background-position: center;
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-panel p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
}

.section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h2,
.split h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p {
  margin: 0;
  max-width: 52ch;
  color: #566171;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
}

.thumb {
  min-height: 130px;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.06), rgba(26, 26, 26, 0.32)),
    var(--thumb-image, var(--sand-200));
  background-size: cover;
  background-position: center;
}

.resource-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.resource-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.resource-card p {
  margin: 0;
  color: #566171;
  font-size: 14px;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--sand-700);
  font-size: 12px;
  font-weight: 800;
}

.chip.green {
  border-color: rgba(22, 101, 52, 0.26);
  background: #e9f8ef;
  color: var(--success);
}

.chip.yellow {
  border-color: rgba(120, 53, 15, 0.26);
  background: var(--sunbeam-soft);
  color: var(--warning);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(26, 26, 26, 0.04);
}

.panel.sunbeam {
  background: var(--sunbeam-soft);
}

.panel h3,
.panel h4 {
  margin: 0 0 10px;
  line-height: 1.1;
  letter-spacing: 0;
}

.panel p {
  margin: 0;
  color: #566171;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(26, 26, 26, 0.32);
  border-radius: 3px;
  background: var(--sunbeam);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--black);
  color: var(--sunbeam);
  font-size: 13px;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: #566171;
}

.loom-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--black);
  box-shadow: var(--shadow);
}

.loom-frame .inner {
  position: relative;
  padding-bottom: 75%;
  height: 0;
}

.loom-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--sand-700);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.footer {
  margin-top: 52px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--sand-700);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: auto;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100vw - 28px, 1180px);
  }

  .site-header {
    padding: 14px;
  }

  .top-nav a,
  .button {
    width: 100%;
  }

  .top-nav {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .steps li::before {
    width: 36px;
    height: 36px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}
