/* The colours of the extension (extension/src/theme.css): warm orange on cream, or on dark brown. The
   orange of the extension (#e8590c) is too light for small text and white button labels on cream (under
   the 4.5:1 of WCAG AA), so links and buttons use a deeper orange in light mode; headings, which are
   large, keep the brand orange. No web fonts: the system font, as in the extension. */
:root {
  --bg: #fdf6ee;
  --card: #ffffff;
  --text: #2b2118;
  --muted: #6b5b4b;
  --line: #f1dcc3;
  --strong: #e8590c;
  --accent: #b8460a;
  --on-accent: #ffffff;
  --radius: 11px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #19160f;
    --card: #231f17;
    --text: #f3ebe0;
    --muted: #a39786;
    --line: #35301f;
    --strong: #fb923c;
    --accent: #fb923c;
    --on-accent: #19160f;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid var(--strong);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 8px 12px;
  background: var(--card);
}

.skip:focus {
  top: 12px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  margin: 0 0 16px;
  color: var(--strong);
  font-size: 28px;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

section {
  padding: 56px 0 8px;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

/* The first screen: name, what it does, and the ways to install it */
.hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--strong);
  font-size: 26px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
}

.lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.install {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button:hover {
  filter: brightness(1.08);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.features p {
  margin: 0;
  color: var(--muted);
}

/* The screenshots: two per row on a wide screen, the most telling ones full width */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.shots .wide {
  grid-column: 1 / -1;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.footer {
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  margin: 0 0 8px;
}

.footer span {
  margin: 0 6px;
  color: var(--muted);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .shots {
    grid-template-columns: 1fr;
  }

  .install li,
  .button {
    width: 100%;
    text-align: center;
  }

  section {
    padding-top: 36px;
  }
}
