/* The Jar Of Knowledge
   Colours from the channel style guide:
   navy #0B1F3A, teal #14B8A6, amber #F59E0B, off-white #F8FAFC.
   Fraunces + Outfit are for the site. Video cards stay Inter or Montserrat. */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071422;
  --ink: #13283f;
  --muted: #3d5168;
  --paper: #f8fafc;
  --white: #ffffff;
  --teal: #14b8a6;
  --teal-deep: #0f766e;
  --teal-soft: #e6f7f5;
  --amber: #f59e0b;
  --amber-deep: #92400e;
  --line: rgba(11, 31, 58, 0.1);
  --line-light: rgba(248, 250, 252, 0.14);
  --shadow: 0 24px 60px rgba(7, 20, 34, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(20, 184, 166, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 36% at 100% 0%, rgba(245, 158, 11, 0.08), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--amber);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 40;
}

.skip:focus {
  transform: none;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(7, 20, 34, 0.16);
}

.header-inner {
  position: relative;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--paper);
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(248, 250, 252, 0.08);
  color: var(--paper);
}

.site-nav .nav-youtube {
  background: var(--amber);
  color: var(--navy);
  margin-left: 0.35rem;
}

.site-nav .nav-youtube:hover {
  background: #fbbf24;
  color: var(--navy);
}

.hero {
  background:
    radial-gradient(ellipse 42% 70% at 86% 42%, rgba(20, 184, 166, 0.22), transparent 62%),
    radial-gradient(ellipse 36% 50% at 72% 88%, rgba(245, 158, 11, 0.16), transparent 60%),
    var(--navy);
  color: var(--paper);
  border-bottom-left-radius: 3rem;
  border-bottom-right-radius: 3rem;
  padding: 3.5rem 0 4.5rem;
}

.hero-grid,
.split,
.band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.kicker,
.section-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  color: #fbbf24;
}

.section-kicker {
  color: var(--teal-deep);
}

h1,
h2,
.mnemonic strong,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 5.15rem);
  max-width: 10.5ch;
}

.lede,
.intro {
  font-size: 1.15rem;
  color: inherit;
}

.hero .lede {
  max-width: 38rem;
  color: rgba(248, 250, 252, 0.86);
  margin: 1.25rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-amber {
  background: var(--amber);
  color: var(--navy);
}

.btn-amber:hover {
  background: #fbbf24;
  color: var(--navy);
}

.btn-ghost {
  border-color: var(--line-light);
  color: var(--paper);
}

.btn-ghost:hover {
  background: rgba(248, 250, 252, 0.08);
  color: var(--paper);
}

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}

.btn-navy:hover {
  background: var(--navy-deep);
  color: var(--paper);
}

.jar-stage {
  justify-self: end;
  width: min(100%, 340px);
}

.jar {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
}

.drop {
  animation: fall 3.4s ease-in infinite;
  opacity: 0;
}

.drop-b {
  animation-delay: 1.05s;
}

.drop-c {
  animation-delay: 2s;
}

.liquid {
  transform-box: fill-box;
  transform-origin: center;
  animation: swell 4.8s ease-in-out infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  76% {
    opacity: 1;
  }
  100% {
    transform: translateY(176px);
    opacity: 0;
  }
}

@keyframes swell {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.jar-caption {
  margin: 0.8rem 0 0;
  text-align: center;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.95rem;
}

.jar-caption a {
  color: #99f6e4;
  white-space: nowrap;
}

.jar-caption a:hover {
  color: var(--paper);
}

.section {
  padding: 5rem 0;
}

.flush-top {
  padding-top: 0;
}

.section-follow {
  padding-top: 1.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  color: var(--navy);
  max-width: 16ch;
}

.intro {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.promise {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.04);
}

.promise span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: var(--serif);
  font-weight: 560;
}

.promise h3,
.role h3,
.step h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.promise p,
.role p,
.step p,
.lesson p {
  margin: 0;
  color: var(--muted);
}

.roles-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.role-list li {
  padding: 1.05rem 1.1rem 1.1rem 0;
  border-top: 1px solid var(--line);
}

.role-list strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.role-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.kitchen {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.08), transparent 28%),
    var(--white);
  border-block: 1px solid var(--line);
}

.mnemonic {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.mnemonic li {
  background: var(--paper);
  border-radius: 1.2rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
}

.mnemonic strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy);
}

.mnemonic span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.kitchen .btn {
  margin-top: 1.5rem;
}

.path {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.lesson {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.lesson:last-child {
  border-bottom: 1px solid var(--line);
}

.num {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--amber);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 560;
  background: #fff7e8;
}

.lesson h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.watch {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--amber-deep);
}

.note {
  margin: 1.5rem 0 0;
  max-width: 46rem;
  color: var(--muted);
}

.band {
  background: var(--navy);
  color: var(--paper);
  border-radius: 2.4rem;
  padding: 2.4rem;
}

.band h2,
.band .section-kicker {
  color: var(--paper);
}

.band .section-kicker {
  color: #fbbf24;
}

.band p {
  color: rgba(248, 250, 252, 0.84);
  margin: 0.8rem 0 0;
  max-width: 36rem;
}

.band .actions {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
}

.page-hero {
  padding: 3.2rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 14ch;
  color: var(--navy);
}

.page-hero .intro a {
  font-weight: 600;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.pull {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--amber);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--navy);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer a {
  font-weight: 600;
}

.empty {
  padding: 4rem 0 5rem;
}

.empty h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--navy);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .band-grid,
  .roles-layout,
  .promise-grid,
  .steps,
  .mnemonic,
  .role-list {
    grid-template-columns: 1fr;
  }

  .band-grid {
    gap: 1.4rem;
  }

  .jar-stage {
    justify-self: center;
    order: -1;
    width: min(100%, 240px);
  }

  .hero {
    padding-top: 2.2rem;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
  }

  h1 {
    max-width: none;
  }

  .band {
    padding: 1.6rem;
    border-radius: 1.6rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 1.25rem 1rem;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-light);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-youtube {
    margin-left: 0;
    text-align: center;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 1.6rem));
  }

  .section {
    padding: 3.5rem 0;
  }
}

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

  .drop,
  .liquid {
    animation: none;
  }

  .drop {
    opacity: 0.9;
    transform: translateY(150px);
  }
}
