/*
 * prune.report — site layout (V3, Neo-Swiss refinement; see docs/homepage-direction.md).
 *
 * Color and type come from prune-tokens.css (vendored, unmodified; see
 * docs/design-system.md). Normal UI uses semantic roles so it follows system
 * light/dark. The marketing panels (hero, ganzik, Relay Care) are the
 * intentional exception: flat, square palette blocks that stay the same in
 * both appearances. Panels contain no links, so focus rings never sit on them.
 */

:root {
  --site-gutter: 1.5rem;
  --site-max: 67.5rem;
}

@media (min-width: 48rem) {
  :root {
    --site-gutter: 2.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--prune-color-background);
  color: var(--prune-color-text);
  font-family: var(--prune-font-sans);
  font-size: var(--prune-type-body-size);
  font-weight: var(--prune-type-body-weight);
  line-height: var(--prune-type-body-line-height);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
hgroup {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--prune-color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--site-gutter));
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

.muted {
  color: var(--prune-color-text-muted);
}

.link {
  color: var(--prune-color-action);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.link:hover {
  text-decoration-thickness: 0.14em;
}

main {
  display: block;
  padding-top: 1.5rem;
}

/* Header: quiet, closed by a hairline rule */

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1.25rem 1rem;
  border-bottom: 1px solid var(--prune-color-border);
}

.wordmark {
  padding-block: 0.25rem;
  color: var(--prune-color-text);
  font-size: var(--prune-type-title-size);
  font-weight: var(--prune-type-display-weight);
  line-height: 1;
  letter-spacing: var(--prune-type-display-tracking);
  text-decoration: none;
}

.wordmark__dot {
  color: var(--prune-color-action);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0 -0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

/* Panels: flat, square brand blocks, invariant across light/dark */

@media (forced-colors: active) {
  .panel {
    border: 1px solid CanvasText;
  }
}

.eyebrow {
  font-size: var(--prune-type-caption-size);
  font-weight: 700;
  line-height: var(--prune-type-label-line-height);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero */

.hero__panel {
  padding: 2rem 1.5rem;
  background: var(--prune-palette-jam);
  color: var(--prune-palette-white);
}

.hero__title {
  margin-top: 1rem;
  /* Display role, oversized on wide screens (up to 7rem) and narrowed on very
     small ones so each line stays whole; the rem terms keep it growing with
     text zoom. Weight, tracking and line height come from the role class. */
  font-size: clamp(2.5rem, 1rem + 9vw, 7rem);
}

.hero__line {
  display: block;
}

.hero__line--zest {
  color: var(--prune-palette-zest);
}

.hero__lede {
  max-width: 40ch;
  margin-top: 1.5rem;
  text-wrap: pretty;
}

.hero__lede--strong {
  margin-top: 0.75rem;
  font-weight: 700;
}

/* Apps page */

.apps__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.apps__count {
  color: var(--prune-color-text-muted);
  font-size: var(--prune-type-label-size);
  font-weight: var(--prune-type-label-weight);
  font-variant-numeric: tabular-nums;
}

.apps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
}

.app--ganzik {
  background: var(--prune-palette-cobalt);
  color: var(--prune-palette-white);
}

.app--relay {
  background: var(--prune-palette-punch);
  color: var(--prune-palette-ink);
}

.app__name {
  margin-top: 0.5rem;
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
  font-weight: var(--prune-type-display-weight);
  line-height: var(--prune-type-display-line-height);
  letter-spacing: var(--prune-type-display-tracking);
}

.app__summary {
  max-width: 34ch;
  margin-top: 1rem;
}

.app__status {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: var(--prune-type-label-size);
  font-weight: 700;
  line-height: var(--prune-type-label-line-height);
}

/* Footer */

.site-footer {
  margin-top: 3.5rem;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--prune-color-border);
}

.site-footer__name {
  font-size: var(--prune-type-subheading-size);
  font-weight: var(--prune-type-heading-weight);
  line-height: var(--prune-type-subheading-line-height);
  letter-spacing: var(--prune-type-subheading-tracking);
}

.site-footer__heading {
  font-size: var(--prune-type-body-size);
  font-weight: 700;
  line-height: var(--prune-type-body-line-height);
}

.site-footer__contact .link {
  display: inline-block;
  margin-top: 0.25rem;
  padding-block: 0.25rem;
}

.site-footer__legal {
  font-size: var(--prune-type-caption-size);
  line-height: var(--prune-type-caption-line-height);
}

/* 404 */

.not-found__back {
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  main {
    padding-top: 2rem;
  }

  .site-header__inner {
    padding-block: 2rem 1.5rem;
  }

  .hero__panel {
    padding: 3rem;
  }

  .hero__title {
    margin-top: 1.25rem;
  }

  .hero__lede {
    font-size: var(--prune-type-subheading-size);
    line-height: var(--prune-type-subheading-line-height);
  }

  .apps__head {
    margin-bottom: 1.5rem;
  }

  .apps__list {
    gap: 1.5rem;
  }

  .app {
    padding: 2.25rem 2rem 2rem;
  }

  .site-footer {
    margin-top: 4.5rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "company contact"
      "legal contact";
    column-gap: 3rem;
    padding-block: 2.5rem 3rem;
  }

  .site-footer__company {
    grid-area: company;
  }

  .site-footer__contact {
    grid-area: contact;
    text-align: end;
  }

  .site-footer__legal {
    grid-area: legal;
    align-self: end;
  }
}

/* Wide screens: asymmetric Swiss composition, headline on the left seven
   columns, copy set against its last line in the right five. */
@media (min-width: 72rem) {
  .hero__panel {
    padding: 3.5rem;
  }

  .hero__panel--split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
  }

  .hero__panel--split hgroup {
    grid-column: 1 / span 7;
  }

  .hero__panel--split .hero__copy {
    grid-column: 8 / -1;
    padding-bottom: 0.5rem;
  }
}
