/* Skillset brand tokens (from "Skillset Brand Colors.pdf") */
:root {
  --ink: #231f20;
  --ink-2: #47403f;
  --muted: #6d6567;
  --line: #ece4dd;
  --paper: #ffffff;
  --cream: #fff9f3;

  --sienna: #e3664a;
  --sienna-200: #f2bca7;
  --sienna-100: #f7d7c8;
  --poppy: #f6c115;
  --poppy-200: #f9d892;
  --poppy-100: #fce3b7;
  --teal: #30bcb1;
  --teal-200: #b6e0db;
  --teal-100: #d2ece8;
  --blue: #0b67b2;
  --blue-200: #a7bde2;
  --blue-100: #ccdbf1;
  --blue-700: #09538f;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgb(35 31 32 / 0.06), 0 10px 28px rgb(35 31 32 / 0.07);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-700);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: -9999px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-700);
  color: #fff;
}

.btn-ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-sm {
  min-height: 42px;
  padding: 0.55em 1.15em;
  font-size: 0.9375rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-block;
}

.brand img {
  width: auto;
  height: 44px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.site-nav a:not(.btn) {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.9875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  border-bottom-color: var(--sienna);
}

.nav-toggle {
  display: none;
}

@media (max-width: 800px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .js .site-nav:not(.is-open) {
    display: none;
  }

  .js .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav a:not(.btn)[aria-current="page"] {
    color: var(--blue);
    font-weight: 800;
  }

  .js .site-nav .btn {
    margin-top: 18px;
  }
}

/* Sections */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-cream {
  background: var(--cream);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top-left-radius: 100%;
  background: var(--sienna);
}

.lead {
  max-width: 60ch;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
}

.mark {
  padding-inline: 0.06em;
  background: linear-gradient(transparent 58%, var(--poppy-200) 58%, var(--poppy-200) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose {
  max-width: 66ch;
}

.prose p {
  font-size: 1.125rem;
}

/* Brand patterns, redrawn in CSS from the pattern files */
.pattern {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, var(--dot) 2.2px, transparent 2.7px),
    radial-gradient(circle, var(--dot) 2.2px, transparent 2.7px);
  background-position: 0 0, 6px 6px;
  background-size: 12px 12px;
}

.pattern-teal {
  --bg: var(--teal-200);
  --dot: var(--teal-100);
}

.pattern-sienna {
  --bg: var(--sienna-200);
  --dot: var(--sienna-100);
}

.pattern-poppy {
  --bg: var(--poppy-200);
  --dot: var(--poppy-100);
}

.pattern-grid {
  background-color: var(--blue-100);
  background-image:
    linear-gradient(var(--blue-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-200) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Butterfly wings: the four quarter-circles from the logo */
.wing {
  flex: none;
  width: 44px;
  height: 44px;
}

.wing-poppy {
  border-top-right-radius: 100%;
  background: var(--poppy);
}

.wing-teal {
  border-top-left-radius: 100%;
  background: var(--teal);
}

.wing-blue {
  border-bottom-right-radius: 100%;
  background: var(--blue);
}

.wing-sienna {
  border-bottom-left-radius: 100%;
  background: var(--sienna);
}

/* Home hero */
.hero {
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px);
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lead {
  margin-bottom: 0;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1.05;
}

.hero-art .blob {
  position: absolute;
  inset: 4% 0 0 6%;
  border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
}

.hero-art img {
  position: absolute;
  top: 50%;
  left: 52%;
  width: auto;
  height: 90%;
  transform: translate(-50%, -50%);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: center;
    max-width: 280px;
  }
}

/* Interior page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px);
  background: var(--cream);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lead {
  max-width: 52ch;
  margin-bottom: 0;
}

.page-hero-art {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  width: clamp(140px, 18vw, 220px);
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .page-hero-art {
    display: none;
  }
}

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.split > :last-child p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* "Sound familiar?" notebook card */
.notebook {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
}

.notebook h3 {
  margin-bottom: 4px;
}

.notebook > p {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 0.9375rem;
}

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

.bubbles li {
  justify-self: start;
  max-width: 90%;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.bubbles li:nth-child(even) {
  justify-self: end;
  border-radius: 18px 18px 4px 18px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 28px 24px 30px;
  border-radius: var(--radius);
}

.card .wing {
  margin-bottom: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

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

.tint-poppy {
  background: var(--poppy-100);
}

.tint-teal {
  background: var(--teal-100);
}

.tint-blue {
  background: var(--blue-100);
}

.tint-sienna {
  background: var(--sienna-100);
}

/* Numbered features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.feature p {
  margin: 0;
}

/* Curriculum skill rows */
.skill-list {
  display: grid;
  gap: 20px;
}

.skill {
  display: grid;
  grid-template-columns: auto 1.1fr 1fr;
  align-items: start;
  gap: 20px 40px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius);
}

.skill h3 {
  margin-bottom: 8px;
  font-size: 1.375rem;
}

.skill p {
  margin: 0;
}

.skill-practice h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-practice ul {
  margin: 0;
  padding-left: 1.2em;
}

.skill-practice li + li {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .skill {
    grid-template-columns: auto 1fr;
  }

  .skill-practice {
    grid-column: 1 / -1;
  }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.steps li {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  font-size: 1rem;
}

/* Fact list */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}

@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

.facts div {
  padding: 24px;
  border-top: 4px solid var(--fact-color, var(--ink));
  border-radius: 4px 4px var(--radius) var(--radius);
  background: var(--cream);
}

.facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Butterfly story */
.story-art {
  justify-self: center;
  width: min(100%, 240px);
}

/* Call-to-action band */
.cta-band {
  padding-block: clamp(48px, 7vw, 96px);
}

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
}

.cta-card img {
  width: clamp(72px, 9vw, 112px);
}

.cta-card h2 {
  margin-bottom: 0.3em;
}

.cta-card p {
  max-width: 52ch;
  margin: 0;
  color: var(--ink);
}

@media (max-width: 860px) {
  .cta-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.field .optional {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #d6ccc4;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23231f20' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  appearance: none;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgb(11 103 178 / 0.2);
}

/* Spam trap: hidden from people, visible to bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--sienna-100);
  color: #7a2a17;
  font-weight: 600;
}

.form-status[hidden] {
  display: none;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.aside-card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
}

.aside-card h2 {
  font-size: 1.5rem;
}

.aside-card ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.aside-card li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  color: var(--ink);
  counter-increment: next;
}

.aside-card li::before {
  content: counter(next);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

/* Thank-you and 404 */
.message-page {
  padding-block: clamp(72px, 12vw, 140px);
  text-align: center;
}

.message-page img {
  width: 110px;
  margin: 0 auto 28px;
}

.message-page .lead {
  margin-inline: auto;
}

.message-page .actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding-block: 48px 28px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand img {
  height: 38px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}
