:root {
  --blue: #188fd3;
  --blue-dark: #0c4f8f;
  --green: #8dc63f;
  --green-dark: #4f8f2c;
  --orange: #f7941d;
  --ink: #17324d;
  --muted: #607188;
  --line: #dbe6ee;
  --paper: #ffffff;
  --soft: #f4f9fc;
  --deep: #08263f;
  --shadow: 0 20px 50px rgba(8, 38, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(24, 143, 211, 0.28);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-mark path,
.brand-mark circle {
  fill: none;
  stroke: white;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark circle {
  fill: white;
  stroke-width: 0;
}

.brand-text {
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: 0;
}

.brand-text span {
  color: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 94px) clamp(18px, 5vw, 64px) clamp(44px, 7vw, 76px);
  background:
    linear-gradient(130deg, rgba(24, 143, 211, 0.12), rgba(141, 198, 63, 0.14) 45%, rgba(247, 148, 29, 0.12)),
    var(--soft);
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue-dark);
  background: white;
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.screen-frame {
  overflow: hidden;
  border: 1px solid rgba(8, 38, 63, 0.16);
  border-radius: 8px;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.screen-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: #0d3659;
}

.screen-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--orange);
}

.screen-toolbar span:nth-child(2) {
  background: var(--green);
}

.screen-toolbar span:nth-child(3) {
  background: var(--blue);
}

pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
  color: #d9f4ff;
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.65;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.skill-grid span {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue-dark);
  font-weight: 900;
  text-align: center;
}

.section {
  padding: clamp(48px, 7vw, 82px) clamp(18px, 5vw, 64px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.section h2 {
  max-width: 880px;
  font-size: clamp(32px, 4vw, 54px);
}

.section-heading {
  display: grid;
  max-width: 820px;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading p,
.intro > p,
.contact-section p,
.resource-card p {
  color: var(--muted);
}

.class-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  color: white;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.class-list,
.library-list,
.blog-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.class-card,
.library-overview,
.library-card,
.blog-card,
.method-grid article,
.resource-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(8, 38, 63, 0.08);
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.class-card,
.library-overview,
.library-card,
.blog-card,
.method-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.class-card h3,
.library-overview h3,
.library-card h3,
.blog-card h3,
.resource-card h3,
.method-grid h3 {
  margin: 0;
  color: var(--deep);
  line-height: 1.2;
}

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

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eaf6fd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.eventbrite {
  color: #8a4d00;
  background: #fff2db;
}

.tag.outschool {
  color: #226611;
  background: #eef9e7;
}

.class-card p,
.library-overview p,
.library-card p,
.blog-card p,
.method-grid p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  margin-top: 8px;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration-color: rgba(12, 79, 143, 0.28);
  text-underline-offset: 4px;
}

.resources-section,
.library-section,
.blog-section {
  background: var(--soft);
}

.library-section {
  background: #ffffff;
}

.library-overview {
  color: white;
  background:
    linear-gradient(135deg, rgba(12, 79, 143, 0.98), rgba(24, 143, 211, 0.88)),
    var(--blue-dark);
  border-color: rgba(255, 255, 255, 0.16);
}

.library-overview h3,
.library-overview p {
  color: white;
}

.library-overview .tag {
  color: var(--blue-dark);
  background: white;
}

.library-card {
  position: relative;
}

.library-card .button {
  width: fit-content;
  margin-top: 6px;
}

.availability {
  color: var(--green-dark);
  font-weight: 900;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.resource-card {
  padding: 24px;
}

.resource-card.featured {
  background: linear-gradient(135deg, white, #f8fcff);
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.resource-links a {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: white;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.tool-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.methods {
  background:
    linear-gradient(90deg, rgba(8, 38, 63, 0.94), rgba(12, 79, 143, 0.9)),
    var(--deep);
  color: white;
}

.methods .eyebrow,
.methods h2,
.methods h3 {
  color: white;
}

.methods .method-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.methods p {
  color: rgba(255, 255, 255, 0.78);
}

.blog-card time {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
  border-top: 1px solid var(--line);
}

.contact-copy {
  max-width: 560px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full,
.contact-form .button,
.form-note {
  grid-column: 1 / -1;
}

label {
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cddce8;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(24, 143, 211, 0.18);
  border-color: var(--blue);
}

.contact-form .button {
  width: fit-content;
  cursor: pointer;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--deep);
}

.site-footer p {
  max-width: 640px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.post-page {
  background: var(--paper);
}

.post-hero {
  padding: clamp(46px, 7vw, 84px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(130deg, rgba(24, 143, 211, 0.12), rgba(141, 198, 63, 0.14), rgba(247, 148, 29, 0.1)),
    var(--soft);
}

.post-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.post-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--blue-dark);
  font-weight: 900;
}

.post-meta span,
.back-link {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: white;
}

.back-link {
  margin-bottom: 22px;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 64px);
}

.post-content {
  max-width: 780px;
}

.post-content p,
.post-content li {
  color: var(--muted);
  font-size: 18px;
}

.post-content h2 {
  margin: 34px 0 8px;
  color: var(--deep);
  font-size: clamp(26px, 3vw, 34px);
}

.post-content a,
.post-sidebar a {
  color: var(--blue-dark);
  font-weight: 900;
  text-underline-offset: 4px;
}

.post-callout,
.video-callout,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.post-callout {
  margin-top: 36px;
  padding: 24px;
}

.video-callout {
  display: grid;
  gap: 16px;
  margin: 30px 0;
  padding: 22px;
}

.video-callout h2 {
  margin-top: 10px;
}

.video-callout p {
  margin: 0;
}

.video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--deep);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.sidebar-card h2 {
  margin: 0;
  color: var(--deep);
  font-size: 22px;
}

.sidebar-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.resource-page {
  background: var(--paper);
}

.resource-hero {
  padding: clamp(46px, 7vw, 84px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(130deg, rgba(24, 143, 211, 0.12), rgba(141, 198, 63, 0.14), rgba(247, 148, 29, 0.1)),
    var(--soft);
}

.resource-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.resource-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 64px);
}

.resource-main {
  max-width: 820px;
}

.resource-main p,
.resource-main li {
  color: var(--muted);
  font-size: 18px;
}

.resource-block {
  margin-top: 34px;
}

.resource-block h2,
.resource-sidebar h2 {
  margin: 0 0 14px;
  color: var(--deep);
}

.resource-link-list,
.resource-sidebar {
  display: grid;
  gap: 12px;
}

.resource-link-list a,
.resource-sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.resource-link-list a {
  display: grid;
  gap: 4px;
  padding: 16px;
  text-decoration: none;
}

.resource-link-list strong {
  color: var(--blue-dark);
}

.resource-link-list span {
  color: var(--muted);
}

.resource-sidebar {
  align-content: start;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(8, 38, 63, 0.08);
}

.resource-sidebar a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
}

.resource-sidebar a.active,
.resource-sidebar a:hover {
  color: white;
  background: var(--blue-dark);
}

@media (max-width: 920px) {
  .hero,
  .intro,
  .resource-layout,
  .class-list,
  .library-list,
  .blog-grid,
  .method-grid,
  .contact-section,
  .post-layout,
  .resource-page-layout {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .site-nav {
    gap: 10px;
    font-size: 14px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .button,
  .hero-actions,
  .contact-form .button,
  .video-callout .button {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

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