/* Homepage composition. Existing site tokens supply both themes. */
.home-page :is(section, h2) { scroll-margin-top: 80px; }
.home-page .textlink { min-height: 44px; font-size: 1rem; }
.home-page .site-header .brand { min-height: 44px; }
.home-page .site-header .brand-name { font-size: 1.2rem; }
.home-page .nav-link { min-height: 44px; }
.home-page .icon-btn { width: 44px; height: 44px; }
.home-hero { padding: 40px 0; background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.home-start .eyebrow { margin: 0 0 12px; }
.home-start h1 { font-size: clamp(42px, 4.4vw, 56px); line-height: 1.07; letter-spacing: -.04em; max-width: 12ch; margin: 0 0 18px; font-weight: 730; }
.home-lede { color: var(--ink-2); font-size: 18px; line-height: 1.55; max-width: 48ch; margin-bottom: 28px; }
.home-start h2 { font-size: 21px; margin: 0 0 12px; }
.home-startpicker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.home-startpicker li { margin: 0; }
.home-startpicker a { display: flex; min-height: 48px; height: 100%; align-items: center; justify-content: center; padding: 10px 5px; text-align: center; font-size: 16px; font-weight: 620; line-height: 1.25; color: var(--brand-ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.home-startpicker a:hover { background: var(--brand-tint); border-color: var(--brand); }
.home-start-hint { font-size: 16px; color: var(--muted); margin: 10px 0 20px; }
.home-trust { display: flex; align-items: center; gap: 7px; font-size: 16px; color: var(--brand-ink); margin-bottom: 10px; }
.home-other { font-size: 16px; color: var(--muted); margin: 0; max-width: 42ch; }
.home-other a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
.home-landscape { margin: 0; }
.home-landscape img { display: block; width: 100%; height: 390px; object-fit: cover; object-position: center 48%; border-radius: var(--r-lg); }
.home-example { margin-top: 24px; padding: 20px 24px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--brand); border-radius: var(--r); }
.home-example h2 { margin: 0; font-size: 20px; }
.home-example-head p { color: var(--muted); font-size: 16px; margin: 3px 0 10px; }
.home-example dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; gap: 18px; }
.home-example dl > div { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.35; }
.home-example dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.home-example dt .icon { color: var(--brand-ink); }
.home-example dd { margin: 0; }
.home-example dd span { display: block; color: var(--muted); font-size: 14px; }
.home-example > .textlink { margin-top: 4px; }
.home-section { padding-block: 48px; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.home-section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.home-section-head p { color: var(--muted); margin: 8px 0 0; max-width: 66ch; font-size: 17px; }
.home-section-head > .textlink { flex: none; }
.home-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-tool { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 8px 12px; color: var(--ink); text-decoration: none; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.home-card-icon { grid-row: 1 / 4; color: var(--brand-ink); padding-top: 2px; }
.home-tool h3, .home-guide h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.home-tool p, .home-guide p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }
.home-card-cta { display: flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 620; font-size: 16px; margin-top: 8px; }
.home-tool-primary { border-color: var(--brand); background: var(--brand-tint); }
.home-tool-primary .home-card-cta { text-decoration: underline; text-underline-offset: 4px; }
.home-tool:hover, .home-guide:hover, .home-species:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-tint); }
.home-guides-section { background: var(--surface-2); border-block: 1px solid var(--line); }
.home-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-guide { display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px; border-bottom: 2px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.home-guide-icon { display: flex; align-items: center; height: 72px; color: var(--brand-ink); border-bottom: 1px solid var(--line-strong); }
.home-guide-visual { display: block; width: 160px; max-width: 100%; height: 72px; }
.home-guide .home-card-cta { margin-top: auto; padding-top: 8px; }
.home-species-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.home-species-grid li { margin: 0; min-width: 0; }
.home-species { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; background: var(--surface); height: 100%; }
.home-species-photo { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.home-species-photo picture { display: block; }
.home-species-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.home-species-name { display: block; font-size: 18px; font-weight: 650; }
.home-species-name > span { display: flex; align-items: center; gap: 5px; color: var(--brand-ink); font-size: 16px; font-weight: 500; }
.home-species-photo .home-species-name { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.home-species-icon { color: var(--brand-ink); }
.home-advice { background: var(--brand-tint); border-top: 1px solid var(--brand-tint-2); }
.home-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; }
.home-principles dt { font-size: 18px; font-weight: 650; line-height: 1.3; margin-bottom: 12px; }
.home-principles dt .icon { display: block; margin-bottom: 12px; color: var(--brand-ink); }
.home-principles dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.home-image-sources { margin: 28px 0 0; font-size: 14px; text-align: right; }
.home-page .footer-list { gap: 0; }
.home-page .footer-list a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-size: 16px; }
.home-page .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1100px) {
  .home-hero-grid { gap: 28px; grid-template-columns: 1.15fr 1fr; }
  .home-startpicker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-tool { padding: 18px; grid-template-columns: 30px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-start h1 { font-size: 46px; max-width: 17ch; }
  .home-startpicker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-hero-aside { max-width: 100%; }
  .home-landscape img { height: 280px; border-radius: var(--r); }
  .home-example { border-radius: var(--r); padding: 16px; }
  .home-example dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-example dt .icon { display: none; }
  .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-guides, .home-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-species-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-page .header-inner { gap: 0; }
  .home-page .site-header .brand-name { font-size: 17px; }
  .home-page .brand-mark { width: 26px; height: 26px; }
  .home-page .header-tools { gap: 0; }
  .home-hero { padding-block: 24px; }
  .home-hero-grid { gap: 24px; }
  .home-start .eyebrow { font-size: 11px; letter-spacing: .09em; }
  .home-start h1 { font-size: 38px; max-width: 12ch; margin-bottom: 14px; }
  .home-lede { font-size: 16px; margin-bottom: 20px; }
  .home-start h2 { font-size: 20px; }
  .home-startpicker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-startpicker a { min-height: 44px; }
  .home-start-hint { margin-bottom: 12px; }
  .home-trust { font-size: 14px; }
  .home-other { font-size: 16px; }
  .home-hero-aside { display: block; }
  .home-landscape img { height: 140px; border-radius: var(--r); }
  .home-example { padding: 18px 16px 12px; }
  .home-example dl { display: block; }
  .home-example dl > div { grid-template-columns: 92px minmax(0, 1fr); }
  .home-example dd { text-align: right; }
  .home-section { padding-block: 32px; }
  .home-section-head { align-items: start; flex-direction: column; gap: 4px; margin-bottom: 18px; }
  .home-section-head h2 { font-size: 25px; }
  .home-section-head p { font-size: 16px; }
  .home-tools { grid-template-columns: 1fr; gap: 10px; }
  .home-tool { padding: 16px; gap: 4px 10px; }
  .home-tool h3 { font-size: 18px; }
  .home-tool .home-card-cta { margin-top: 6px; }
  .home-guides { grid-template-columns: 1fr; gap: 22px; }
  .home-guide { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; }
  .home-guide-icon { grid-row: 1 / 4; border: 0; width: 72px; height: auto; align-items: start; padding-top: 2px; }
  .home-guide-visual { width: 72px; height: auto; }
  .home-guide h3 { font-size: 18px; }
  .home-guide .home-card-cta { padding: 0; }
  .home-species-grid { gap: 8px; }
  .home-species-photo .home-species-name { padding: 10px 12px; }
  .home-species-name { font-size: 17px; }
  .home-principles { grid-template-columns: 1fr; gap: 20px; }
  .home-principles dt .icon { display: inline-block; margin: 0 8px 0 0; }
  .home-principles dt { margin-bottom: 6px; }
  .home-image-sources { text-align: left; }
  .home-page .footer-top { gap: 24px 16px; }
}
@media (max-width: 350px) {
  .home-start h1 { font-size: 34px; }
  .home-page .site-header .brand { gap: 5px; }
  .home-page .site-header .brand-name { font-size: 16px; }
}
