:root {
  color-scheme: light;
  --ink: #171412;
  --muted: #5d5852;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #ded9d1;
  --magenta: #b708c4;
  --red: #d9362b;
  --teal: #007c78;
  --gold: #f0bc42;
  --charcoal: #241f1c;
  --shadow: 0 18px 42px rgba(36, 31, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(23, 20, 18, 0.1);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  object-fit: cover;
}

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

.site-nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(183, 8, 196, 0.08);
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: center;
  padding: 4rem 1.25rem 2.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy,
.section-heading,
.about-section,
.signup-section {
  min-width: 0;
}

.eyebrow,
.label {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  font-size: 4rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.35rem;
}

.hero-intro {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

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

.button-secondary {
  background: var(--gold);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--gold);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.signal-panel {
  position: relative;
  width: calc(100% - 1.5rem);
  margin: -2.2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.signal-panel span {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  background: var(--paper);
  border-radius: 6px;
  text-align: center;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.quick-links a {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--white);
  text-decoration: none;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  background: #fff4d5;
}

.quick-links span {
  color: var(--muted);
}

.quick-links strong {
  font-size: 1.35rem;
}

.section-band,
.split-section,
.about-section,
.signup-section,
.library-section {
  padding: 4.5rem 1.25rem;
}

.section-band {
  background: var(--white);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 2rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 44rem;
  color: var(--muted);
}

.product-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.practice-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.book-grid {
  max-width: 1180px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.practice-card {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.book-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.book-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-bottom: 2px solid var(--ink);
  background: var(--charcoal);
}

.book-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
}

.book-card-body .text-link {
  margin-top: auto;
}

.book-meta {
  margin: 0;
  font-weight: 800;
}

.writing-feature {
  max-width: 1180px;
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff4d5;
  box-shadow: 8px 8px 0 var(--teal);
}

.writing-feature p:not(.label) {
  color: var(--muted);
}

.feature-card {
  background: #fff4d5;
}

.product-card p:not(.label),
.practice-card p:not(.label),
.book-card p:not(.label),
.article-body p,
.about-copy p,
.video-list span {
  color: var(--muted);
}

.text-link {
  font-weight: 800;
  color: var(--magenta);
  text-underline-offset: 0.22em;
}

.split-section {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 2rem;
  align-items: start;
}

.medium-embed {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-image {
  min-height: 100%;
}

.article-image img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem;
}

.article-body h3 a {
  text-decoration: none;
}

.article-body h3 a:hover,
.article-body h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.video-band {
  background: var(--charcoal);
  color: var(--white);
}

.video-band .eyebrow {
  color: var(--gold);
}

.video-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1rem;
  align-items: start;
}

.video-frame {
  border: 2px solid var(--white);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-list {
  display: grid;
  gap: 0.75rem;
}

.video-list a {
  display: grid;
  gap: 0.3rem;
  min-height: 6.5rem;
  align-content: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
}

.video-list a:hover,
.video-list a:focus-visible {
  border-color: var(--gold);
}

.about-section {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 2rem;
}

.about-copy {
  font-size: 1.1rem;
}

.signup-section {
  background: var(--teal);
  color: var(--white);
}

.signup-section .section-heading {
  margin-bottom: 1.4rem;
}

.signup-section .eyebrow,
.signup-section .section-heading p {
  color: var(--white);
}

.embed-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.embed-fallback {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-footer a {
  color: var(--white);
  text-underline-offset: 0.2em;
}

.quiet-hero {
  min-height: calc(86vh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 2rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.quiet-copy h1 {
  max-width: 14ch;
}

.quiet-note {
  align-self: center;
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--teal);
  font-size: 1.08rem;
}

.quiet-note p:last-child {
  margin-bottom: 0;
}

.image-feature {
  max-width: 980px;
  margin: -2rem auto 4.5rem;
  padding: 0 1.25rem;
}

.image-feature img {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--teal);
}

.quiet-band {
  background: #f4efe7;
}

.quiet-about {
  border-top: 1px solid var(--line);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(0, 124, 120, 0.12);
}

@media (max-width: 980px) {
  h1 {
    max-width: 13ch;
    font-size: 3.1rem;
  }

  .hero,
  .quiet-hero,
  .split-section,
  .about-section,
  .video-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-self: start;
  }

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

  .practice-grid,
  .book-grid,
  .writing-feature {
    grid-template-columns: 1fr;
  }

  .writing-feature .button {
    justify-self: start;
  }

  .video-layout {
    gap: 1.3rem;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 0.15rem;
    font-size: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .site-nav a {
    padding: 0.5rem 0.4rem;
  }

  .hero,
  .quiet-hero,
  .section-band,
  .split-section,
  .about-section,
  .signup-section,
  .library-section,
  .image-feature {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .image-feature {
    margin-top: 0;
    margin-bottom: 3rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .quiet-hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .quick-links,
  .product-grid,
  .medium-embed {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    min-height: 6.5rem;
  }

  .product-card {
    min-height: 15rem;
  }

  .article-image img {
    min-height: 14rem;
  }
}

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

  .button {
    transition: none;
  }
}
