/* Homepage website public shells (root and 404): never load on the vault. */
:root {
  --bg: var(--td-bg);
  --bg-raised: var(--td-raised);
  --panel: var(--td-panel);
  --panel-soft: var(--td-soft);
  --text: var(--td-text);
  --muted: var(--td-muted);
  --blue: var(--td-blue);
  --blue-bright: var(--td-bright);
  --cyan: var(--td-cyan);
  --green: var(--td-green);
  --yellow: var(--td-yellow);
  --line: var(--td-line);
  --radius: var(--td-radius);
  --font-sans: var(--td-font-sans);
  --font-mono: var(--td-font-mono);
}
.hero h1 { font-weight: 800; }
.button-primary { color: var(--bg); }
.hub-panel, .contact-panel, .latest-card { border-radius: var(--radius); }
@media (prefers-contrast: more) {
  :root { --muted: #c3ccda; --line: rgba(255,255,255,.25); }
}
.brand {
  align-items: center;
  padding: 16px;
}
/* Cropped viewport, untouched supplied paths. 168 × 30.74px artwork;
   16px on each side exceeds half its height (15.37px). */
.brand img { width: 168px; height: auto; max-width: none; }
.nav-shell { gap: 16px; }
.route-core { background: var(--bg); box-shadow: none; }
.route-core img { width: 64px; height: 64px; }
@media (max-width: 680px) {
  /* 147 × 26.90px artwork; cursor-off paint remains at least 140px wide. */
  .brand { padding: 14px; }
  .brand img { width: 147px; }
}

/* Native reduced-motion source without changing logo layout. */
.wordmark-picture { display: contents; }

/* Always-visible native links: no menu script or hidden mobile destinations. */
.nav-shell .primary-nav { gap: 8px; flex-wrap: wrap; }
.nav-shell .primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
}
.nav-shell .primary-nav .nav-discovery { color: var(--blue-bright); font-weight: 700; }
/* Two deliberate primary destinations, not another directory grid. */
.discovery-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 12px 40px; scroll-margin-top: 90px; }
.commerce-card { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); background: var(--panel); }
.commerce-content { width: 100%; min-width: 0; }
.commerce-content h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
.commerce-content p:not(.destination-label) { margin: 16px 0 0; color: var(--muted); }
.commerce-card > .button { margin-top: auto; }
.store-card .commerce-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 30%); gap: 20px; align-items: start; }
.merch-image { width: 100%; height: auto; max-height: 200px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); }
@media (max-width: 680px) {
  .discovery-section { grid-template-columns: 1fr; gap: 16px; padding-block: 8px 24px; }
  .commerce-card { padding: 22px; gap: 20px; }
  .store-card .commerce-content { gap: 16px; }
}

.start-section { padding-block: 24px; }
.start-section h2 { margin: 0 0 14px; font-size: 1.5rem; letter-spacing: -.03em; }
.resource-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.start-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.start-path { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 20px; text-decoration: none; }
.start-path + .start-path { border-inline-start: 1px solid var(--line); }
.start-path strong { display: flex; align-items: baseline; gap: .45em; color: var(--text); font-size: 1.125rem; }
.start-path strong span { color: var(--blue-bright); font-size: .85em; }
.start-path > span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.start-path:is(:hover, :focus-visible) strong { color: var(--blue-bright); text-decoration: underline; text-underline-offset: .2em; }
.utility-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; padding-inline: 20px; border-top: 1px solid var(--line); }
.utility-links strong { color: var(--muted); font: 600 .8rem var(--font-mono); }
.utility-links a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; color: var(--blue-bright); font-size: .875rem; text-decoration: none; }
.utility-links a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 680px) {
  .start-paths { grid-template-columns: 1fr; }
  .start-path { padding: 14px 16px; gap: 2px; }
  .start-path + .start-path { border-inline-start: 0; border-top: 1px solid var(--line); }
  .utility-links { padding-inline: 16px; column-gap: 12px; }
}

/* Keep the desktop routing identity without a full-screen preamble. */
.hero { min-height: auto; padding-block: 56px; }
/* The routing panel is decoration, not a second tablet-sized introduction. */
@media (max-width: 920px) {
  .hero { padding-block: 32px; gap: 0; }
  .hero .hub-panel, .hero .signal-list { display: none; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero-intro { margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
}
@media (max-width: 920px) {
  .trove-topology, .trove-console-bar { display: none; }
  .trove-readout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trove-readout div { border-bottom: 0; }
}
@media (max-width: 680px) {
  body:not(.error-page) .site-header { position: static; }
  .nav-shell:has(.primary-nav) { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 8px; }
  .nav-shell .primary-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; width: 100%; margin: 0; }
  .nav-shell .primary-nav a:not(.nav-cta) { display: inline-flex; }
  .primary-nav :is([href="https://blog.techdox.nz/"], [href="https://docs.techdox.nz/"]) {
    color: var(--text);
    font-size: .875rem;
    font-weight: 600;
  }
}

/* One flagship feature within the hub, not a second landing page. */
.projects-section { padding-block: 48px; }
.trove-showcase { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: var(--radius); box-shadow: none; }
.trove-copy { min-height: 0; padding: 32px; }
.trove-copy .section-index { margin-bottom: 16px; }
.trove-copy h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.trove-copy .project-meta { flex-wrap: wrap; margin-top: 16px; }
.trove-lead { margin-top: 20px; }
.trove-actions { padding-top: 24px; }
.trove-console { min-height: 0; }
.trove-topology { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); min-height: 300px; padding: 24px; }
.trove-sources { gap: 8px; }
.trove-sources span { min-height: 42px; padding: 8px; }
.trove-flow { height: 180px; }
.trove-core { min-height: 150px; padding: 16px 8px; }
@media (max-width: 920px) {
  .trove-showcase { grid-template-columns: 1fr; }
  .trove-copy { border-bottom: 0; }
}
@media (max-width: 680px) {
  .projects-section { padding-block: 32px; }
  .trove-copy { padding: 24px 20px; }
}

/* Personal notes and community share the hub's tighter editorial rhythm. */
#about { padding-block: 48px; }
.about-grid { gap: 32px; }
.about-copy h2, .contact-panel h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); line-height: 1.08; }
.about-copy h2 { margin-bottom: 20px; }
.about-manifest li { padding: 16px 20px; }
.contact-section { padding-block: 24px 48px; }
.contact-panel { gap: 32px; padding: 32px; }
.site-footer { margin-top: 32px; }
@media (max-width: 680px) {
  #about { padding-block: 32px; }
  .contact-section { padding-block: 24px 32px; }
  .contact-panel { padding: 24px 20px; }
  .social-list a { row-gap: 4px; }
}
