.homePage {
  --ink: #122b29;
  --text: #29433e;
  --muted: #48605a;
  --line: #d4e0d9;
  --accent: #175d4e;
  background: #f7faf7;
  color: var(--text);
  overflow-x: visible;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.homePage main {
  max-width: 1320px;
  padding-inline: clamp(20px, 5vw, 72px);
}

.homePage .nav {
  padding: 16px max(clamp(20px, 5vw, 72px), calc((100vw - 1176px) / 2));
  background: #f7faf7f5;
  gap: 18px;
}

.homePage .nav .brand {
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.homePage .nav nav {
  gap: clamp(10px, 1.7vw, 24px);
  font-size: 14px;
  font-weight: 650;
}

.homePage .nav nav a {
  color: var(--text);
}

.homePage .nav nav a:hover,
.homePage .homeLink:hover {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.homePage .nav .btn.alt {
  border: 1px solid #becfc5;
  border-radius: 8px;
  padding: 8px 13px;
  box-shadow: none;
  background: transparent;
  font-weight: 700;
}

.homePage :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skipLink {
  position: fixed;
  z-index: 11;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(calc(-100% - 16px));
  background: #fff;
}

.skipLink:focus {
  transform: none;
}

.homeHero {
  display: grid;
  gap: 32px;
  padding-block: clamp(32px, 4vw, 52px);
}

.heroCopy {
  max-width: 800px;
  justify-self: center;
  text-align: center;
}

.homePage .heroCopy h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.heroAttribution {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

.heroSummary .heroLead {
  max-width: none;
  margin: 0 auto 12px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.heroSummary .heroDetail {
  max-width: 68ch;
  margin-inline: auto;
}

.heroSummary .homeActions {
  justify-content: center;
  margin-top: 22px;
}

.homeEyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.homePage h1,
.homePage h2 {
  font-weight: 600;
  text-wrap: balance;
}

.homePage h1 {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.homePage h2 {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.heroLead {
  max-width: 29ch;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.17rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
}

.heroDetail,
.sectionIntro > p:not(.homeEyebrow) {
  max-width: 57ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.homeArtwork {
  width: 100%;
  max-width: 960px;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #f4f7f2;
  border: 1px solid var(--line);
}

.homeArtwork img {
  display: block;
  width: 100%;
  height: auto;
}

.homeArtwork figcaption {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.homeArtwork figcaption .homeLink {
  margin: 0;
  font-size: 0.85rem;
}

.homeActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.homeButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.91rem;
  font-weight: 725;
  text-decoration: none;
}

.homeButton:hover {
  background: #11493e;
}

.homeButton.secondary {
  border-color: #becfc5;
  background: transparent;
  color: var(--ink);
}

.homeButton.secondary:hover {
  background: #e8f0eb;
}

.homeSection {
  position: relative;
  padding-block: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.homePage [id] {
  scroll-margin-top: 130px;
}

.homeAnchor {
  position: absolute;
  top: 0;
}

.sectionIntro h2 + p:not(.homeEyebrow) {
  margin-top: 15px;
}

.memorySteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.memorySteps article {
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.memorySteps h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.memorySteps p,
.architectureList dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.homeSplit {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
}

.homeLink {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.apiExample {
  min-width: 0;
  border: 1px solid #203b35;
  border-radius: 14px;
  background: #112723;
  color: #eaf4ef;
}

.apiEndpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 15px clamp(13px, 2.4vw, 25px);
  border-bottom: 1px solid #476059;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.apiEndpoint span {
  color: #a5eed2;
  font-weight: 600;
}

.apiExample pre {
  margin: 0;
  padding: 20px clamp(13px, 2.4vw, 25px);
  border: 0;
  background: transparent;
  font-size: 0.89rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.apiExample code {
  color: #eaf4ef;
}

.architectureList {
  margin: 0;
}

.architectureList div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 2.5fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.architectureList div:first-child {
  border-top: 1px solid var(--line);
}

.architectureList dt {
  color: var(--ink);
  font-weight: 600;
}

.previewCallout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 54px);
  border-radius: 16px;
  background: #deeee5;
}

.previewCallout .homeButton {
  flex-shrink: 0;
}

.homePage .siteFooter a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .homePage .nav {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .homeSplit,
  .memorySteps {
    grid-template-columns: minmax(0, 1fr);
  }

  .homePage h1 {
    font-size: clamp(2.4rem, 9vw, 3.3rem);
  }

  .homePage .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 12px;
  }

  .homePage .nav nav {
    gap: 4px 14px;
  }

  .homePage .nav nav a:not(.btn) {
    padding-block: 5px;
  }

  .homeActions .homeButton {
    padding-inline: 11px;
    font-size: 0.85rem;
  }

  .homeArtwork {
    border-radius: 14px;
  }

  .previewCallout {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.homePage .nav nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.contentHero {
  padding-block: clamp(36px, 5vw, 60px);
  max-width: 980px;
}

.homePage.productPage h1 {
  max-width: 26ch;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.contentHero .heroDetail {
  max-width: 65ch;
  font-size: 1.0625rem;
}

.sectionIntro > p + p {
  margin-top: 14px;
}

.contentPanel {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.contentPanel p,
.contentPanel li {
  color: var(--muted);
  line-height: 1.65;
}

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

.detailList {
  margin: 26px 0 0;
}

.detailList > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2.2fr);
  gap: clamp(16px, 3vw, 42px);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.detailList > div:first-child {
  border-top: 1px solid var(--line);
}

.detailList dt {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.detailList dd {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.directionNote {
  padding: 22px 26px;
  margin-top: 24px;
  border-left: 3px solid var(--accent);
  background: #e9f1ec;
}

.directionNote p {
  max-width: 75ch;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.architectureFlow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.architectureFlow li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.architectureFlow p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.relatedPages {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  border-top: 1px solid var(--line);
  padding: 24px 0 42px;
}

.relatedPages .homeLink {
  margin: 0;
}

@media (max-width: 760px) {
  .detailList > div,
  .architectureFlow {
    grid-template-columns: minmax(0, 1fr);
  }

  .detailList > div {
    gap: 8px;
  }

  .homeSplit .architectureList div {
    grid-template-columns: minmax(110px, 1fr) minmax(0, 1.7fr);
  }
}

.homePage main > *,
.homePage section > * {
  min-width: 0;
}

.homePage h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.memoryLayerCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 28px 0 0;
  padding: 8px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.memoryLayerCards > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.memoryLayerCards > div:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.memoryLayerCards dt {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.memoryLayerCards dd {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.associationFigure {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.associationExample {
  padding: 28px;
  background: #edf3ef;
}

.exampleLabel {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 0.8rem;
}

.associationPath {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.conceptCard {
  padding: 18px 12px;
  min-width: 0;
  min-height: 152px;
  border: 1px solid #ccdbd1;
  border-radius: 8px;
  background: #fff;
}

.conceptCard > span {
  display: block;
  min-height: 32px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.conceptCard strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
}

.conceptCard p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.resultConcept {
  border-color: #3d7963;
  background: #e1eee6;
}

.associationConnector {
  color: var(--accent);
  font-size: 1.2rem;
  text-align: center;
}

.associationExplanation {
  padding: 28px;
  align-self: center;
}

.associationExplanation p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.associationFigure figcaption {
  grid-column: 1 / -1;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .associationFigure {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .homePage .heroCopy h1 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .heroAttribution {
    display: block;
    margin: 8px 0 0;
    font-size: 0.5em;
  }

  .memoryLayerCards {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 20px;
  }

  .associationExample,
  .associationExplanation {
    padding: 20px;
  }

  .associationPath {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .conceptCard {
    min-height: 0;
    padding: 14px 18px;
  }

  .conceptCard > span {
    min-height: 0;
    margin-bottom: 5px;
  }

  .associationFigure figcaption {
    padding-inline: 20px;
  }
}
