/* waypeg.com. Footpath green, waymark yellow, chalk white: the app's favicon,
   at the size of a page. Archivo for headings, Work Sans for the
   rest, both self hosted because the CSP allows this origin only. */

@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1d5e4a;
  --green-deep: #123d30;
  --yellow: #f2c230;
  --chalk: #f7f5ef;
  --ink: #17221e;
  --muted: #4a5a54;
  --line: #d9ddd6;
  --card: #ffffff;
  --sage: #dfe9df;
  --sand: #f1e6c8;
  --sky: #dbe7f0;
  --stone: #e6e2da;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 400 1.0625rem/1.6 "Work Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--chalk);
}

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-deep); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow > * { max-width: 42rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--yellow);
  color: var(--green-deep);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* The bar. */
.top { background: var(--green-deep); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none;
  font: 800 1.5rem/1 "Archivo", system-ui, sans-serif;
}
.brand:hover { color: #fff; }
.brand .peg { width: 1.9rem; height: 1.9rem; background: var(--green); border-radius: 0.45rem; }
.signin { color: #fff; font: 600 1rem/1 "Archivo", system-ui, sans-serif; }
.signin:hover { color: var(--yellow); }

/* The hero, with a board drawn in boxes beside it. */
.hero { background: var(--green); color: #fff; padding: 4rem 0 4.5rem; }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
.hero .lead { font-size: 1.25rem; max-width: 32rem; color: #e8f0ec; }
.actions { margin: 2rem 0 0; }
.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--green-deep);
  font: 700 1.05rem/1.2 "Archivo", system-ui, sans-serif;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
}
.button:hover { background: #ffd451; color: var(--green-deep); }

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding: 1.1rem;
  background: var(--green-deep);
  border-radius: 1rem;
  transform: rotate(-1.5deg);
}
.card { background: var(--card); border-radius: 0.6rem; padding: 0.8rem; display: grid; gap: 0.45rem; align-content: start; }
.card b { display: block; height: 0.7rem; width: 55%; border-radius: 0.3rem; background: var(--green); }
.card i { display: block; height: 0.45rem; border-radius: 0.25rem; background: var(--line); }
.card i:nth-child(odd) { width: 80%; }
.card i:nth-child(even) { width: 65%; }
.c1 { background: var(--sage); }
.c2 { background: var(--sand); }
.c3 { background: var(--sky); }
.c4 { background: var(--stone); }
.c2 b { background: #8a6a12; }
.c3 b { background: #2f5d8a; }
.c4 b { background: var(--muted); }
.c1 { grid-row: span 2; }

/* What it does. */
.what { padding: 4rem 0; }
.what h2, .when h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.features {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.features li {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0.35rem solid var(--green);
  border-radius: 0.6rem;
  padding: 1.25rem 1.25rem 1rem;
}
.features h3 { font-size: 1.25rem; }
.features p { margin: 0; color: var(--muted); }

.when { padding: 3.5rem 0 4.5rem; background: var(--sage); }

/* Plain pages. */
.page { padding: 3.5rem 0 4.5rem; }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.lead { font-size: 1.2rem; }

.foot { background: var(--green-deep); color: #dbe6e1; padding: 2rem 0 2.5rem; font-size: 0.95rem; }
.foot a { color: #fff; }
.foot a:hover { color: var(--yellow); }
.foot p { margin: 0 0 0.6rem; max-width: 46rem; }

@media (max-width: 48rem) {
  .hero { padding: 2.75rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .board { max-width: 24rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 0.15s ease; }
}
