/* FTC Team Scouting landing page. System fonts only, no scripts, no motion. */

:root {
  --paper: #f6f3ec;
  --ink: #1d1b17;
  --muted: #57524a;
  --rule: #cfc8ba;
  --accent: #1e5631;
  --on-accent: #ffffff;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191814;
    --ink: #ebe6db;
    --muted: #aaa396;
    --rule: #3d3a32;
    --accent: #8fcf9e;
    --on-accent: #12110e;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.page {
  max-width: 47rem;
  margin: 0 auto 0 clamp(0rem, 7vw, 8rem);
  padding: 2rem 1rem 2.5rem;
}

h1,
h2 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.3rem;
}

p,
ul,
dl {
  margin: 0 0 0.9rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.label {
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0.01em;
}

/* Masthead: icon and name, left aligned. */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--ink);
}

.masthead h1,
.masthead p {
  margin: 0;
}

.masthead .label {
  color: var(--muted);
}

.masthead-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.masthead-name a {
  color: var(--ink);
  text-decoration: none;
}

.masthead-name a:hover {
  text-decoration: underline;
}

.appicon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 2px;
  flex: none;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 38rem;
  margin-bottom: 1.8rem;
}

/* Sections are separated by hairline rules. Spacing varies on purpose. */

main > section {
  border-top: 1px solid var(--rule);
  padding: 1.9rem 0 1.1rem;
}

main > section.get {
  padding-top: 1.4rem;
}

main > section.more,
main > section.web {
  padding-top: 1.5rem;
}

main > section.clocks {
  padding: 1.3rem 0 0.6rem;
}

main > section.who {
  padding-top: 2.2rem;
}

/* Store and beta links: flat rectangles with plain labels. */

.stores {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 38rem;
}

.btn {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.btn:hover {
  text-decoration: underline;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38rem;
}

/* Feature rows: text on the left, one tall screenshot on the right on wide
   screens. On phones the screenshot sits under the text. */

.feature {
  display: grid;
  gap: 1.1rem;
}

.feature-text {
  max-width: 38rem;
}

figure {
  margin: 0 0 0.8rem;
}

figure img {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

figcaption {
  margin-top: 0.5rem;
  max-width: 14rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (min-width: 46rem) {
  .feature {
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 2.5rem;
    align-items: start;
  }

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

/* Definition list for the smaller features. */

.more dt {
  font-weight: 700;
}

.more dd {
  margin: 0 0 0.7rem;
  max-width: 38rem;
}

.clocks ul {
  padding-left: 1.2rem;
}

.footer {
  border-top: 1px solid var(--ink);
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer p {
  max-width: 38rem;
  margin-bottom: 0.6rem;
}
