/* Home composition. Colours follow the site's shared light/dark tokens. */
.angnar-home { border-bottom: 1px solid var(--color-border); }
.home-hero,
.home-hero-footnote,
.angnar-home + #quarto-content > main {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 28px;
  padding-block: 48px 32px;
}
.home-hero-copy { min-width: 0; }
.home-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .015em;
}
.home-author::before { content: ""; width: 26px; height: 2px; flex-shrink: 0; background: var(--color-primary); }
.angnar-home .home-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.home-title-lead { display: block; font-size: clamp(2.75rem, 4.2vw, 3.3rem); }
.home-title-accent { color: var(--color-primary); }
.home-title-fields { display: block; margin-top: 14px; font-size: clamp(1.75rem, 2.7vw, 2.05rem); line-height: 1.17; letter-spacing: -.025em; }
.home-summary { max-width: 51ch; margin: 22px 0 26px; color: var(--color-text-muted); font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.home-projects-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 26px;
  min-height: 48px; padding: 12px 18px; border-radius: 3px; font-size: .9rem; font-weight: 500;
}
.home-contact-link { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; color: var(--color-text); font-size: .9rem; text-decoration: none; }
.home-contact-link:hover { color: var(--color-primary); }
.home-tree {
  --tree-base: var(--color-tree-base, #1E4D3B);
  --tree-active: var(--color-tree-active, #8C1D22);
  width: 100%; max-width: 460px; margin: 0; justify-self: center;
}
.home-tree-art { display: block; width: 100%; height: auto; }
.tree-resting-ink { fill: var(--tree-base); opacity: .27; }
.tree-data-signals { pointer-events: none; }
.tree-signal-core {
  r: 14px; fill: var(--tree-active); stroke: var(--color-bg);
  stroke-width: 1.5; vector-effect: non-scaling-stroke;
}
.tree-signal-ring {
  fill: none; stroke: var(--tree-active); stroke-width: 1.3;
  vector-effect: non-scaling-stroke; opacity: .65;
}
.home-tree-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 5px; }
.home-tree-caption {
  margin: 0; color: var(--color-text-subtle); font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.home-tree-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 12px; background: none; border: none;
  border-radius: 50%; color: var(--color-text-subtle); cursor: pointer;
}
.home-tree-toggle[hidden] { display: none; }
.home-tree-toggle:hover { background: var(--color-secondary-bg); color: var(--color-secondary); }
.home-tree-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.home-tree-toggle .tree-play-icon { display: none; }
.home-tree[data-motion="paused"] .tree-play-icon { display: block; }
.home-tree[data-motion="paused"] .tree-pause-icon { display: none; }
.home-hero-footnote {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding-block: 18px; border-top: 1px solid var(--color-border);
  color: var(--color-text-subtle); font-size: .8125rem;
}
.home-hero-footnote p { margin: 0; }
.home-footnote-mark { margin-right: 8px; color: var(--color-secondary); }
.home-hero-footnote > a { display: inline-flex; align-items: center; gap: 24px; flex-shrink: 0; color: var(--color-text); text-decoration: none; }
.home-hero-footnote > a:hover { color: var(--color-primary); }
/* Align the projects with the hero, rather than a narrow article column. */
.angnar-home + #quarto-content > main { grid-column: 1 / -1; padding-top: 24px; }
.angnar-home + #quarto-content h2 { font-size: 1.8rem; }
.angnar-home + #quarto-content .home-project-grid { margin-top: 1.75rem; }
.angnar-home + #quarto-content .home-project-hero { box-shadow: none; border: 1px solid var(--color-border); border-radius: 4px; }
.angnar-home + #quarto-content .home-project h3 { font-size: 1.45rem; }
.angnar-home + #quarto-content .home-project p { line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .tree-moving-light, .tree-data-signals { display: none; }
  .tree-resting-ink { opacity: .4; }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1.2fr 1fr; gap: 8px; padding-top: 40px; }
  .home-title-lead { font-size: 2.8rem; }
  .home-title-fields { font-size: 1.9rem; }
  .home-tree-caption { font-size: .75rem; letter-spacing: .06em; }
  .home-tree-footer { gap: 6px; }
}
@media (max-width: 700px) {
  .home-hero,
  .home-hero-footnote,
  .angnar-home + #quarto-content > main { width: calc(100% - 40px); }
  .home-hero { grid-template-columns: 1fr; gap: 20px; padding-block: 34px 24px; }
  .home-author { font-size: .9375rem; margin-bottom: 24px; }
  .home-title-lead { font-size: clamp(2.4rem, 7.8vw, 3.5rem); }
  .home-title-fields { font-size: clamp(1.75rem, 5.2vw, 2.25rem); margin-top: 14px; }
  .home-summary { max-width: 52ch; margin-top: 20px; }
  .home-actions { column-gap: 18px; }
  .home-tree { max-width: 300px; justify-self: center; }
  .tree-signal-core { r: 18px; }
  .home-tree-caption { font-size: .75rem; }
  .home-hero-footnote { align-items: flex-start; flex-direction: column; gap: 12px; font-size: .8125rem; }
  .home-hero-footnote > a { min-height: 36px; }
  .angnar-home + #quarto-content > main { padding-top: 16px; }
}
@media (max-width: 380px) {
  .home-hero,
  .home-hero-footnote,
  .angnar-home + #quarto-content > main { width: calc(100% - 32px); }
  .home-author { font-size: .875rem; gap: 8px; }
  .home-author::before { width: 16px; }
  .home-title-lead { font-size: 2.25rem; }
  .home-actions { column-gap: 18px; }
  .home-projects-link { gap: 14px; padding-inline: 14px; }
  .home-contact-link { gap: 10px; }
  .home-tree { max-width: 260px; }
}
