/* Home page. The hero is the one loud thing; the tip lists stay plain and readable. */

.hero { background: var(--signal); color: var(--on-signal); overflow: hidden; }
.hero-inner { padding-top: clamp(1.5rem, 3.5vw, 2.5rem); }
/* The headline is sized to run the full width of the sign: one line wide, two lines on phones. */
.hero h1 {
  font-size: min(calc((100vw - 32px) / 7.3), 161px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.hero-line {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
@media (max-width: 700px) {
  .hero h1 { font-size: calc((100vw - 32px) / 3.55); }
  .hero h1 span { display: block; }
}

/* The row of people stands on the directory board. They move away from the pointer, which is the site's whole argument. */
.crowd {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: clamp(112px, 14vw, 164px);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.person {
  flex: none;
  position: relative;
  height: 88%;
  aspect-ratio: 40 / 96;
  color: var(--on-signal);
  will-change: transform;
}
.person svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.person-you svg { fill: #ffffff; stroke: var(--on-signal); stroke-width: 2.4; paint-order: stroke; overflow: visible; }
.you-tag {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.1rem 0.5rem;
  background: var(--on-signal);
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.you-tag::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--on-signal);
  border-bottom: 0;
}
@media (max-width: 720px) { .person:nth-child(n + 8) { display: none; } }

/* Directory board */
.board { background: var(--board); color: var(--on-board); padding-block: 2rem 2.5rem; }
.board-title {
  color: var(--on-board-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Ten destinations: five across on a wide board, so no row is left half empty. */
.board-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.board-list a {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "icon code" "name name";
  align-items: start;
  gap: 0.55rem 0.5rem;
  height: 100%;
  padding-block: 0.8rem 0.9rem;
  border-top: 1px solid var(--board-rule);
  color: inherit;
  text-decoration: none;
}
.board-icon { grid-area: icon; }
.board-name { grid-area: name; }
.board-code { grid-area: code; justify-self: end; }
@media (max-width: 1000px) {
  .board-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .board-list a {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    grid-template-areas: "icon name code";
    align-items: center;
    gap: 0.9rem;
    padding-block: 0.65rem;
  }
}
@media (max-width: 620px) {
  .board-list { grid-template-columns: minmax(0, 1fr); }
}
.board-list a:hover .board-name { color: #ffffff; }
.board-list :focus-visible { outline-color: var(--on-board); }
.board-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: var(--signal);
  color: var(--on-signal);
}
.board-icon svg { width: 36px; height: 36px; fill: currentColor; }
.board-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.board-code {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--on-board-soft);
}

/* Field test band: the only tile wall on the home page. */
.test-band {
  --tile: #cfe0d6;
  --grout: #b3cbbd;
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--grout) 2px, transparent 2px),
    linear-gradient(90deg, var(--grout) 2px, transparent 2px);
  background-size: 44px 44px;
  color: #14130c;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.test-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: var(--signal);
  color: var(--on-signal);
  border-radius: 6px;
}
.test-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.test-card h2 { margin-top: 0.4rem; font-size: clamp(3.4rem, 8vw, 6.2rem); line-height: 0.85; }
.test-card p.test-copy { margin-top: 1rem; max-width: 42ch; }
.test-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
.test-note { font-size: 0.92rem; }
.test-scene { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 760px) {
  .test-card { grid-template-columns: minmax(0, 1fr); }
  .test-scene { order: -1; }
}

/* Tips */
.tips { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.tips-intro { max-width: 58ch; font-size: 1.2rem; line-height: 1.45; }
.section {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 5vw, 4rem);
  padding-block: 2.25rem;
  border-top: 3px solid var(--ink);
  margin-top: 2.5rem;
  scroll-margin-top: 1rem;
}
.section + .section { margin-top: 0; }
.section-sign { align-self: start; position: sticky; top: 1rem; display: flex; align-items: flex-start; gap: 0.85rem; }
.section-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: var(--signal);
  color: var(--on-signal);
}
.section-icon svg { width: 44px; height: 44px; fill: currentColor; }
.section-sign h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.section-code {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.tip-list { display: grid; gap: 1.15rem; margin: 0; padding: 0; list-style: none; max-width: 62ch; }
.tip strong { display: block; font-size: 1.14rem; font-weight: 800; line-height: 1.3; }
.tip span { display: block; color: var(--muted); }
.section-cta { margin-top: 1.4rem; }
.section-source { margin-top: 0.9rem; font-size: 0.97rem; }
@media (max-width: 760px) {
  .section { grid-template-columns: minmax(0, 1fr); }
  .section-sign { position: static; }
}

/* Closing */
.last-rule { background: var(--signal); color: var(--on-signal); padding-block: clamp(2.5rem, 6vw, 4.5rem); margin-top: 2.5rem; }
.last-rule h2 { font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.88; }
.last-rule p { margin-top: 1.1rem; max-width: 56ch; font-size: 1.2rem; line-height: 1.45; }

/* Sources: quiet notes after the closing sign, on the same columns as the tips. */
.source-notes { padding-block: clamp(2.25rem, 5vw, 3.5rem); scroll-margin-top: 1rem; }
.source-notes-inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 5vw, 4rem);
}
.source-notes h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.source-notes-lead { margin-top: 0.6rem; color: var(--muted); font-size: 0.97rem; }
.source-notes .sources { margin-top: 0; max-width: 62ch; }
@media (max-width: 760px) { .source-notes-inner { grid-template-columns: minmax(0, 1fr); } }
