/*
 * keeplocal.tools — landing-only rules.
 *
 * The tokens, type, receipt, masthead, footer and focus ring all come from
 * identity.css, which is the SAME file the tool apps compile in. Only layout
 * that exists solely on this page belongs here.
 */

.wrap {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-header {
  width: 100%;
  grid-template-columns: 1fr auto;
}

.landing-main {
  width: 100%;
  margin: 0;
  display: block;
}

/* ------------------------------------------------------- claim, then proof */

.claim {
  padding: clamp(30px, 5vw, 52px) 0 0;
}

.claim h1 {
  max-width: 17ch;
  margin: 0 0 26px;
  font-size: clamp(2rem, 5.4vw, 3.15rem);
  line-height: 1.06;
}

/* The receipt is the hero object: it gets the width and the weight. */
.claim .receipt {
  margin: 0;
}

.claim .lede {
  max-width: 66ch;
  margin: 26px 0 0;
}

/* ------------------------------------------------------------- tools index */

.tools {
  padding: clamp(38px, 6vw, 58px) 0 0;
}

.tools-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

/*
 * A ruled index, not a card grid. The shelf is a list of five real things with
 * real addresses; a uniform auto-fill grid of lifting cards would say "we have
 * a catalogue" when what we have is five tools, each of which you can verify.
 */
.tool-index {
  margin-top: 16px;
  border-top: 1px solid var(--rule);
}

.tool-row {
  padding: 17px 6px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 20px;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.tool-row:hover {
  background: var(--seal-soft);
  border-bottom-color: var(--seal);
}

.tool-mark {
  width: 22px;
  height: 22px;
  align-self: start;
  color: var(--seal);
  transform: translateY(2px);
}

.tool-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tool-body {
  min-width: 0;
  display: block;
}

.tool-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.3;
}

.tool-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Showing the address is itself a trust move: you can see where you are going. */
.tool-origin {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.tool-go {
  color: var(--muted);
  text-align: right;
  transition: transform 120ms ease, color 120ms ease;
}

.tool-row:hover .tool-go {
  color: var(--seal);
  transform: translateX(3px);
}

/* --------------------------------------------------------------- long-form */

.prose {
  max-width: 68ch;
  padding: clamp(24px, 4vw, 40px) 0 0;
}

.prose h1 {
  margin: 0 0 20px;
}

.prose p {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose a {
  color: var(--seal);
  text-underline-offset: 3px;
}

.prose code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--panel-sunk);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.prose .muted {
  color: var(--muted);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 640px) {
  .tool-row {
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    gap: 13px;
  }

  .tool-origin {
    grid-column: 2;
    margin-top: 6px;
  }

  .tool-go {
    grid-row: 1;
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 28px);
  }
}
