:root {
  color-scheme: light;
  --bg: #fafbf8;
  --paper: #fff;
  --ink: #18332f;
  --muted: #54655f;
  --brand: #075e56;
  --brand-dark: #03463f;
  --tint: #eaf3ed;
  --line: #dce5de;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  line-height: 1.65;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand);
  text-underline-offset: 5px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid #b06523;
  outline-offset: 6px;
  border-radius: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.45rem);
  font-weight: 730;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 680;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.45rem;
  font-weight: 680;
  margin-bottom: 14px;
}
p {
  margin-bottom: 18px;
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  margin-bottom: 12px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead {
  max-width: 620px;
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--muted);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--paper);
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(250, 251, 248, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.045em;
  line-height: 1.25;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.015em;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-block: 10px;
}
.nav-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.nav-links .language-switch {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 60px;
  padding-block: 76px 84px;
}
.hero h1 span {
  color: var(--brand);
}
.hero-eyebrow {
  margin-bottom: 24px;
}
.hero-copy .lead {
  max-width: 480px;
}
.actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 23px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
}
.button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.button.secondary {
  color: var(--brand);
  background: transparent;
  border-color: #9fb9ad;
}
.button.secondary:hover {
  background: var(--tint);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  padding-block: 8px;
}
.text-link::after {
  content: "↗";
  font-size: 1.08em;
}
.text-link:hover {
  text-decoration: underline;
}
.hero-note {
  color: var(--muted);
  margin: 22px 0 0;
  font-size: 0.8rem;
}
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 78px 24px 56px;
  background: #e5eee5;
  border: 1px solid #d7e4d6;
  border-radius: 28px;
  position: relative;
}
.showcase-label {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 0.72rem;
  color: #415d4d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}
.showcase-phone {
  position: relative;
  display: block;
  width: 100%;
  border: 5px solid #fff;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 28px -10px #23463d40;
}
.showcase-phone img {
  border-radius: 8px;
}
.meter-phone {
  transform: translate(5px, -8px) rotate(-5deg);
  z-index: 1;
}
.reading-phone {
  transform: translate(-5px, 12px) rotate(5deg);
}
.showcase-status {
  position: absolute;
  bottom: 7px;
  left: 5%;
  width: 90%;
  padding: 5px 6px;
  font-size: 0.61rem;
  text-align: center;
  background: #76263b;
  color: #fff;
  border-radius: 5px;
}
.showcase-caption {
  position: absolute;
  bottom: 17px;
  width: 100%;
  margin: 0;
  text-align: center;
  color: #415d4d;
  font-size: 0.75rem;
}
.catalog-section {
  padding-block: 28px 78px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-end;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.section-label {
  font-size: 0.77rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
.catalog-group + .catalog-group {
  margin-top: 34px;
}
.app-card + .app-card {
  margin-top: 20px;
}
.app-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 34px 38px 0;
}
.app-card.reading {
  background: #fffcf6;
  border-color: #e6dfd1;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 19px;
}
.app-icon {
  border-radius: 20%;
  flex-shrink: 0;
}
.card-heading .eyebrow {
  font-size: 0.66rem;
  margin-bottom: 6px;
}
.reading .eyebrow {
  color: #7a263a;
}
.card-heading h3 {
  font-size: 1.65rem;
  margin: 0;
}
.card-heading .status {
  margin-left: auto;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid #cee4d4;
  border-radius: 6px;
  background: #ecf6ed;
  color: #245f3a;
  font-size: 0.69rem;
  font-weight: 650;
  white-space: nowrap;
}
.status.available::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.status.review {
  color: #795529;
  background: #fcf3e3;
  border-color: #eaddc2;
}
.app-summary {
  max-width: 740px;
  margin: 24px 0 17px;
  color: var(--muted);
}
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #52675c;
  font-size: 0.77rem;
}
.benefits li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--brand);
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.review-caption {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 16px 0 20px;
}
.resource-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 15px;
}
.resource-links a {
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
  padding-block: 3px;
}
.resource-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.coming-soon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 29px 0 0;
}
.coming-soon .eyebrow {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.coming-soon h3 {
  font-size: 1.13rem;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.coming-soon p:last-child {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.coming-label {
  font-size: 0.72rem;
  border: 1px dashed #b3c3b9;
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  color: var(--muted);
}
.about-section {
  padding-block: 70px;
  background: var(--tint);
  border-block: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
}
.about-grid p:not(.eyebrow) {
  color: var(--muted);
}
.about-grid .about-lead {
  color: var(--ink) !important;
  font-size: 1.17rem;
  line-height: 1.7;
}
.help-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding-block: 70px;
}
.help-section h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.help-section p:last-child {
  font-size: 0.91rem;
  margin-bottom: 0;
  color: var(--muted);
}
.help-section .actions {
  margin: 0;
  flex-shrink: 0;
  gap: 18px;
}
.site-footer {
  background: #153e35;
  color: #e8f1eb;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-block: 43px;
}
.footer-brand {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  font-weight: 680;
  letter-spacing: -0.03em;
}
.footer-inner p {
  font-size: 0.85rem;
  color: #c8dbce;
  margin: 6px 0 15px;
}
.footer-inner small {
  font-size: 0.7rem;
  color: #bdd0c3;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  align-content: center;
}
.footer-links a {
  color: #e2ede5;
  font-size: 0.78rem;
  text-decoration: none;
  padding-block: 3px;
}
.footer-links a:hover {
  text-decoration: underline;
}
.detail-page {
  padding-block: 36px 76px;
}
.back-link {
  display: inline-block;
  margin-bottom: 38px;
  font-size: 0.86rem;
  text-decoration: none;
}
.detail-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 90px;
  align-items: center;
}
.detail-status {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 25px 0 20px;
}
.detail-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.65rem);
}
.detail-tagline {
  font-size: 1.45rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 15px;
}
.reading .detail-tagline {
  color: #7a263a;
}
.detail-cover {
  display: flex;
  justify-content: center;
  padding: 24px;
  border-radius: 22px;
  background: var(--tint);
}
.reading .detail-cover {
  background: #f2eadb;
}
.detail-cover img {
  width: 265px;
  border-radius: 10px;
  box-shadow: 0 10px 30px #18332f18;
}
.detail-hero .benefits {
  margin-top: 25px;
}
.release-note {
  background: #fcf3e3;
  border-left: 3px solid #b88a3b;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #6c502c;
  margin-bottom: 0;
}
.detail-section {
  margin-top: 80px;
}
.detail-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 32px;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.feature-number {
  font-size: 0.75rem;
  color: var(--muted);
}
.feature h3 {
  font-size: 1.18rem;
  margin-block: 18px 12px;
}
.feature p {
  font-size: 0.93rem;
  color: var(--muted);
  margin: 0;
}
.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 27px;
}
.screenshots figure {
  margin: 0;
  min-width: 0;
}
.screenshots img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.screenshots figcaption {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 13px;
}
.privacy-panel {
  background: var(--tint);
  padding: 38px;
  border-radius: 18px;
  margin-top: 70px;
}
.privacy-panel h2 {
  font-size: 2rem;
}
.privacy-panel p:not(.eyebrow) {
  max-width: 800px;
  color: var(--muted);
}
.resource-section p {
  color: var(--muted);
}
.text-page {
  max-width: 850px;
  padding-block: 64px 85px;
}
.text-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}
.text-page a {
  overflow-wrap: anywhere;
}
.text-section {
  margin-top: 43px;
}
.text-section h2 {
  font-size: 1.45rem;
}
.text-section p {
  color: var(--muted);
}
.policy-list,
.support-list {
  list-style: none;
  padding: 0;
  margin: 36px 0;
}
.policy-list > li,
.support-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 23px;
  border-bottom: 1px solid var(--line);
}
.policy-list h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.policy-list p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
.simple-list {
  padding-left: 20px;
  color: var(--muted);
}
.simple-list li {
  padding-bottom: 10px;
}

@media (min-width: 1100px) {
  .app-card {
    position: relative;
    padding-right: 315px;
  }
  .app-card .card-heading .status {
    position: absolute;
    top: 37px;
    right: 38px;
  }
  .app-card .card-actions {
    position: absolute;
    right: 38px;
    top: 98px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
  }
  .app-card .resource-links {
    margin-right: -277px;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .help-section {
    align-items: flex-start;
  }
  .help-section .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  :root {
    scroll-padding-top: 140px;
  }
  .wrap {
    width: min(620px, calc(100% - 40px));
  }
  .nav {
    width: calc(100% - 40px);
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 16px 10px;
  }
  .brand {
    font-size: 1.3rem;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 45px 55px;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 8.5vw, 4.15rem);
  }
  .hero .lead {
    max-width: 570px;
  }
  .app-showcase {
    max-width: 480px;
    width: 100%;
    justify-self: center;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .app-card {
    padding: 24px 25px 0;
  }
  .card-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .card-heading .status {
    margin-left: 0;
  }
  .card-heading .eyebrow {
    font-size: 0.6rem;
  }
  .card-heading h3 {
    font-size: 1.4rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-section {
    padding-block: 48px;
  }
  .help-section {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 48px;
    gap: 25px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .detail-cover {
    max-width: 400px;
    width: 100%;
    justify-self: center;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-section {
    margin-top: 50px;
  }
  .screenshots {
    gap: 13px;
  }
  .screenshots figcaption {
    font-size: 0.7rem;
  }
  .privacy-panel {
    padding: 25px;
  }
  .text-page {
    padding-block: 42px 60px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.75rem;
  }
  .hero {
    padding-top: 37px;
  }
  .hero .lead {
    font-size: 1rem;
  }
  .hero .actions {
    gap: 17px;
  }
  .hero .button {
    padding-inline: 17px;
  }
  .hero .text-link {
    font-size: 0.84rem;
  }
  .app-showcase {
    padding: 66px 18px 54px;
  }
  .showcase-label {
    top: 20px;
    left: 22px;
    font-size: 0.68rem;
  }
  .showcase-caption {
    font-size: 0.67rem;
  }
  .showcase-status {
    font-size: 0.49rem;
    padding: 4px;
  }
  .app-card {
    padding: 22px 20px 0;
  }
  .card-heading .app-icon {
    width: 47px;
    height: 47px;
  }
  .card-heading h3 {
    font-size: 1.3rem;
  }
  .card-heading {
    gap: 13px;
  }
  .card-heading .status {
    margin-top: 2px;
  }
  .app-summary {
    font-size: 0.93rem;
    margin-top: 18px;
  }
  .benefits {
    gap: 7px 15px;
    font-size: 0.73rem;
  }
  .card-actions {
    gap: 10px 20px;
    margin-block: 22px;
  }
  .coming-soon {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .coming-label {
    display: none;
  }
  .screenshots {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 300px;
    margin-inline: auto;
  }
  .screenshots figcaption {
    font-size: 0.8rem;
  }
  .policy-list > li,
  .support-list > li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .footer-links {
    gap: 9px 18px;
  }
  .footer-links a {
    font-size: 0.74rem;
  }
}

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

/* Product and learning catalogue */
.section-space {
  padding-block: 64px 76px;
}
.new-hero {
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
}
.hero-proof {
  padding: 30px 34px;
  border: 1px solid #cbded3;
  border-radius: 24px;
  background: #edf3ec;
}
.proof-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.proof-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid #cfdfd2;
}
.proof-row strong {
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #1d4d40;
}
.proof-row span {
  font-size: 0.95rem;
  color: #435e50;
}
.hero-proof > p {
  font-size: 0.82rem;
  margin: 22px 0 0;
  color: var(--muted);
}
.project-grid,
.learning-grid,
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-card,
.learning-card,
.tutorial-card {
  background: var(--paper);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.project-card {
  display: flex;
  flex-direction: column;
  border-top: 3px solid #437763;
}
.project-card.react,
.learning-card.react,
.tutorial-card.react {
  border-top: 3px solid #655d8d;
}
.project-card.java,
.learning-card.java,
.tutorial-card.java {
  border-top: 3px solid #ab793b;
}
.project-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 19px;
}
.project-heading .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.project-heading h3 {
  margin: 0;
  font-size: 1.22rem;
  overflow-wrap: anywhere;
}
.project-card h3 a,
.tutorial-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.project-card h3 a:hover,
.tutorial-card h3 a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.project-card p:not(.eyebrow),
.learning-card p:not(.eyebrow),
.tutorial-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}
.project-initial {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--brand);
  background: var(--tint);
  font-weight: 700;
  font-size: 1.3rem;
}
.project-tail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
}
.project-tail .text-link {
  font-size: 0.78rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 7px;
  padding: 0;
  margin: 18px 0;
}
.tags li {
  padding: 4px 8px;
  font-size: 0.68rem;
  color: #465b52;
  background: #f0f3ee;
  border: 1px solid #e0e7de;
  border-radius: 5px;
}
.learning-card {
  display: flex;
  flex-direction: column;
  border-top: 3px solid #437763;
}
.learning-card .button {
  margin-top: auto;
}
.learning-card .text-link {
  margin-top: 10px;
}
.status.development,
.status.testing,
.status.preview {
  background: #fbf2e2;
  border-color: #e4d5b4;
  color: #735526;
}
.status.source,
.status.release {
  background: #eef0f9;
  border-color: #d4d9e9;
  color: #4b557e;
}
.testing-note {
  margin-top: 32px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.testing-note h3 {
  display: inline-block;
  margin-right: 15px;
}
.testing-note p {
  max-width: 720px;
  font-size: 0.93rem;
  color: var(--muted);
}
.filter-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-block: 26px;
}
.filter-links a {
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid #cedbd1;
  color: var(--brand);
  font-size: 0.8rem;
  text-decoration: none;
  background: var(--paper);
}
.filter-links a:hover {
  background: var(--tint);
}
.group-label {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 35px 0 18px;
  color: var(--muted);
}
.project-screen {
  border-radius: 15px;
  border: 1px solid var(--line);
  margin-top: 40px;
  max-height: 620px;
  width: auto;
}
.reading-copy {
  max-width: 80ch;
}
.flow {
  margin: 32px 0;
  background: #eef4ee;
  border: 1px solid #d2e0d2;
  border-radius: 14px;
  padding: 22px;
}
.flow figcaption {
  font-weight: 650;
  font-size: 0.78rem;
  margin-bottom: 18px;
  color: var(--brand);
}
.flow ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow li {
  position: relative;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #cadbcf;
  border-radius: 8px;
  font-size: 0.81rem;
}
.flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -21px;
  color: #527963;
}
.source-list {
  padding-left: 22px;
}
.source-list li {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.tutorial-card .eyebrow {
  font-size: 0.65rem;
}
.tutorial-card h3 {
  font-size: 1.18rem;
}
.tutorial-card .tags {
  margin-bottom: 0;
}
.tutorial-page {
  padding-block: 38px 80px;
}
.article-header {
  max-width: 880px;
  margin-bottom: 42px;
}
.article-header h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.5rem);
}
.article-header .lead {
  max-width: 760px;
}
.prerequisites {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 24px;
}
.reading-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 116px;
  border-top: 2px solid #cbdccf;
  padding-top: 18px;
}
.toc h2 {
  font-size: 0.89rem;
  letter-spacing: 0;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin-bottom: 13px;
  line-height: 1.4;
}
.toc a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}
.toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.article-copy {
  min-width: 0;
  max-width: 82ch;
}
.article-copy p {
  line-height: 1.85;
  font-size: 1rem;
  color: #394e44;
  overflow-wrap: anywhere;
}
.article-copy section {
  margin-top: 44px;
}
.article-copy h2 {
  font-size: 1.55rem;
  margin-bottom: 22px;
  line-height: 1.35;
}
.step-number {
  color: #789684;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
}
.code-block {
  margin: 26px 0 20px;
  max-width: 100%;
  border: 1px solid #cbd9d0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f5f0;
}
.code-block figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #cbd9d0;
  background: #e8efe6;
  font-size: 0.76rem;
  color: #3e5d4b;
  flex-wrap: wrap;
}
.code-block figcaption span {
  overflow-wrap: anywhere;
}
pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  max-width: 100%;
  line-height: 1.7;
  tab-size: 2;
  font-size: 0.82rem;
  color: #203c30;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
pre:focus-visible {
  outline: 3px solid #b06523;
  outline-offset: -3px;
}
pre.command {
  background: #f0f2ef;
  border-left: 3px solid #9eb8a8;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}
.code-label {
  font-size: 0.74rem !important;
  font-weight: 650;
  margin-bottom: 8px;
}
.expected,
.pitfall {
  padding: 20px 24px;
  border-radius: 10px;
  margin: 24px 0;
}
.expected {
  background: #edf5eb;
  border-left: 3px solid #7f9e70;
}
.expected strong {
  font-size: 0.77rem;
  color: #3b5b33;
}
.expected p {
  font-size: 0.9rem;
  margin-top: 9px;
  margin-bottom: 0;
}
.pitfall {
  background: #fcf3e6;
  border-left: 3px solid #b68742;
  margin-top: 40px;
}
.pitfall h2 {
  font-size: 1rem;
}
.pitfall p {
  font-size: 0.94rem;
  margin: 0;
}
.solution {
  padding: 20px 24px;
  border: 1px solid #cbdccf;
  border-radius: 10px;
  background: #f5f8f2;
  margin-top: 22px;
}
.solution summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--brand);
  font-size: 0.92rem;
}
.solution[open] summary {
  margin-bottom: 22px;
}
.lesson-navigation {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.lesson-navigation a {
  font-size: 0.85rem;
  max-width: 48%;
  overflow-wrap: anywhere;
}
@media (max-width: 1050px) {
  .project-grid,
  .tutorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reading-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 820px) {
  .new-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-proof {
    max-width: 520px;
    width: 100%;
  }
  .project-grid,
  .learning-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
  .section-space {
    padding-block: 42px 52px;
  }
  .reading-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .toc {
    position: static;
  }
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .toc li {
    margin-bottom: 8px;
  }
  .article-header {
    margin-bottom: 30px;
  }
  .article-copy h2 {
    font-size: 1.35rem;
  }
  .article-copy p {
    font-size: 0.95rem;
  }
  .nav-links {
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .nav-links {
    gap: 7px;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 0.71rem;
  }
  .nav-links .language-switch {
    padding: 5px 8px;
  }
  .hero-proof {
    padding: 24px;
  }
  .project-card,
  .learning-card,
  .tutorial-card {
    padding: 23px;
  }
  .flow ol {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .flow li:not(:last-child)::after {
    content: "↓";
    left: 12px;
    bottom: -24px;
    right: auto;
  }
  pre {
    padding: 15px;
    font-size: 0.77rem;
  }
  .expected,
  .pitfall,
  .solution {
    padding: 18px;
  }
  .article-header h1 {
    overflow-wrap: anywhere;
  }
}

/* Long bilingual headings remain inside the narrowest reading width. */
h1 {
  overflow-wrap: anywhere;
}
.example-files {
  padding: 18px 22px;
  background: #f1f5ef;
  border-radius: 10px;
  margin-block: 24px;
}
.example-files strong {
  font-size: 0.83rem;
  color: var(--brand);
}
.example-files ul {
  margin-bottom: 0;
  font-size: 0.85rem;
}
.example-files li {
  margin-top: 6px;
  overflow-wrap: anywhere;
}
