/* The design system's tokens come from tokens.css; no colour value is written in this file. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
body {
  font:
    18px / 1.6 "Inter",
    "Segoe UI Variable Text",
    "Segoe UI",
    system-ui,
    sans-serif;
  font-feature-settings: "cv11", "ss01";
  max-width: 40rem;
  margin: 3rem auto;
  padding: 0 1rem;
  color: var(--ink);
  background: var(--page);
}
/* The home page runs to the 70rem width of the app's reading pages (design system 7.6). */
body.wide {
  max-width: 70rem;
  margin-top: 1.5rem;
}
h1 {
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.brand svg {
  flex-shrink: 0;
}

/* The generated pages: header, links, buttons and footer. Body text stays at 18px, nothing is
   smaller than 16px, and every link or button that stands on its own is at least 44px tall. */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.bar .brand {
  margin-bottom: 0;
}
.brand-link {
  min-height: 44px;
  text-decoration: none;
}
.brand-name {
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
main > h1 {
  line-height: 1.2;
  margin-bottom: 1rem;
}
h2 {
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
  margin-top: 2rem;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--go);
  background: var(--go);
  color: var(--go-ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.button:hover {
  background: var(--go-hover);
}
li {
  margin: 0.5rem 0;
}
.foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* The home page: the tagline as the headline over a wide picture of the app, then one row per part
   of a search, text beside a picture, sides swapping from row to row from 52.5rem up. Pictures are
   light screenshots of the app with sample data; a hairline edge holds them on either theme. */
.hero {
  padding-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 1.25rem + 3vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 20ch;
}
.hero p {
  max-width: 40rem;
}
.lead {
  font-size: 1.25rem;
  margin-top: 1rem;
}
/* A picture is never drawn larger than it was captured, so its text stays at its real size. */
.shot {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.shot picture {
  display: block;
  min-width: 0;
  max-width: 100%;
}
.shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--elev-2);
}
.hero-shot {
  margin-top: 2rem;
}
.row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.row h2 {
  margin-top: 0;
}
.links {
  list-style: none;
  padding: 0;
}
.close {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
}
.close h2 {
  margin-top: 0;
}
/* From 64rem the hero is text beside the picture, the picture taking the larger share. */
@media (min-width: 64rem) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 3rem;
    align-items: center;
  }
  .hero-shot {
    margin-top: 0;
  }
}
@media (min-width: 52.5rem) {
  .row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 3rem;
  }
  /* The hero is the first section, so the first row is even: its picture comes first. */
  .row:nth-of-type(even) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .row:nth-of-type(even) .row-text {
    order: 2;
  }
}
