:root {
  --home-paper: #f6f5f1;
  --home-ink: #1c1c1c;
  --home-body: #3d3d39;
  --home-muted: #66655f;
  --home-line: #d6d3cb;
  --home-accent: #405b53;
}

html:has(.homepage-shell) {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

.homepage-shell {
  min-height: 100vh;
  color: var(--home-ink);
  background: var(--home-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.homepage-app-shell {
  background: var(--home-paper);
}

.homepage-shell * {
  box-sizing: border-box;
}

.homepage-shell a {
  color: inherit;
}

.homepage-shell a:focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 4px;
}

.home-header,
.home-content,
.home-footer {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
}

.home-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--home-line);
}

.home-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.home-wordmark span {
  color: var(--home-accent);
}

.home-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.8rem);
}

.home-header nav a,
.home-footer a {
  color: var(--home-body);
  font-size: 0.82rem;
  text-decoration: none;
}

.home-header nav a:hover,
.home-footer a:hover {
  color: var(--home-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-hero {
  min-height: min(740px, calc(100svh - 86px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(5rem, 11vh, 9rem);
  border-bottom: 1px solid var(--home-line);
}

.home-hero-copy {
  max-width: 850px;
}

.home-kicker {
  display: block;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-hero h1,
.home-principle h2,
.home-author h2,
.home-simulation-heading h2,
.simulation-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.home-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(4rem, 10.2vw, 8.8rem);
  line-height: 0.88;
}

.home-hero-subtitle {
  max-width: 760px;
  margin: 2.3rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.28;
}

.home-hero-intro {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--home-body);
  font-size: clamp(1rem, 1.16vw, 1.12rem);
  line-height: 1.8;
}

.home-primary-link {
  min-height: 50px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 0.88rem 1.1rem;
  border: 1px solid var(--home-ink);
  background: var(--home-ink);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.home-primary-link span {
  font-size: 1.05rem;
}

.home-primary-link:hover {
  border-color: var(--home-accent);
  background: var(--home-accent);
}

.home-hero-aside {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  border-left: 1px solid var(--home-line);
  padding-left: 1.4rem;
  color: var(--home-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.35;
}

.home-aside-rule {
  width: 38px;
  height: 2px;
  background: var(--home-accent);
}

.home-aside-index {
  margin-top: 2.3rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.home-principle,
.home-author,
.home-simulations {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-bottom: 1px solid var(--home-line);
  scroll-margin-top: 1.5rem;
}

.home-section-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-top: 0.35rem;
  color: var(--home-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-section-label span:first-child {
  color: var(--home-accent);
}

.home-principle-copy,
.home-simulation-content {
  max-width: 820px;
}

.home-principle h2,
.home-author h2,
.home-simulation-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.home-principle-copy p,
.home-author-copy p,
.simulation-card-body p {
  max-width: 740px;
  color: var(--home-body);
  font-size: 1rem;
  line-height: 1.8;
}

.home-principle-copy p:first-of-type {
  margin-top: 1.8rem;
}

.home-principle-copy blockquote {
  margin: 2.8rem 0 0;
  padding-left: 1.35rem;
  border-left: 2px solid var(--home-accent);
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.home-author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.home-author-photo {
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #eeede7;
}

.home-author-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.18);
}

.home-author-copy h2 {
  margin-top: 0.9rem;
}

.home-author-biography {
  margin-top: 1.25rem;
}

.home-author-biography p {
  margin: 0 0 1rem;
}

.home-author-biography p:last-child {
  margin-bottom: 0;
}

.home-simulation-heading {
  margin-bottom: 2.3rem;
}

.home-simulation-heading h2 {
  margin-top: 0.75rem;
}

.simulation-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  border-top: 1px solid var(--home-ink);
  border-bottom: 1px solid var(--home-line);
}

.simulation-card-index {
  padding: 1.5rem 1rem 1.5rem 0;
  color: var(--home-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simulation-card-index span {
  padding-inline: 0.4rem;
  color: var(--home-accent);
}

.simulation-card-body {
  padding: 1.5rem 0 2.5rem clamp(1.2rem, 4vw, 3rem);
  border-left: 1px solid var(--home-line);
}

.simulation-card h3 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.simulation-card-body p {
  margin: 1rem 0 0;
}

.simulation-link {
  margin-top: 1.7rem;
}

.home-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--home-muted);
  font-size: 0.76rem;
}

@media (max-width: 760px) {
  .home-header,
  .home-content,
  .home-footer {
    width: min(100% - 2rem, 1180px);
  }

  .home-header {
    min-height: 72px;
  }

  .home-header nav {
    gap: 0.85rem;
  }

  .home-header nav a {
    font-size: 0.72rem;
  }

  .home-hero {
    min-height: auto;
    display: block;
    padding-block: 5rem 4rem;
  }

  .home-hero h1 {
    font-size: clamp(3.75rem, 15vw, 6rem);
  }

  .home-hero-subtitle {
    margin-top: 1.8rem;
  }

  .home-hero-aside {
    display: none;
  }

  .home-principle,
  .home-author,
  .home-simulations {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 3.8rem;
  }

  .home-section-label {
    padding: 0;
  }

  .home-author-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1.25rem;
  }

  .home-author-photo {
    aspect-ratio: 4 / 5;
  }

  .home-author-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .simulation-card {
    grid-template-columns: 1fr;
  }

  .simulation-card-index {
    padding-bottom: 0.3rem;
  }

  .simulation-card-body {
    padding: 0.8rem 0 2rem;
    border-left: 0;
  }

  .home-footer {
    min-height: 104px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-block: 1.5rem;
  }

  .home-footer > * + *::before {
    content: "·";
    padding-inline: 0.65rem;
    color: var(--home-muted);
  }
}

@media (max-width: 440px) {
  .home-header nav {
    gap: 0.65rem;
  }

  .home-header nav a {
    font-size: 0.65rem;
  }

  .home-author-layout {
    grid-template-columns: 1fr;
  }

  .home-author-photo {
    width: 100%;
  }
}

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

  .home-primary-link {
    transition: none;
  }
}
