/* Koding Krew Apps — one stylesheet for the whole site.
   No web fonts, no analytics, no external requests of any kind. The privacy
   policy this site hosts says the app collects nothing; a page that phoned
   home to a CDN to say so would be a poor advertisement for it. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1b1d21;
  --muted: #5c6067;
  --faint: #8a8f97;
  --rule: #e4e1dc;
  --accent: #b4531f;
  --accent-soft: #f6ece5;
  --shadow: 0 1px 2px rgba(27, 29, 33, .04), 0 8px 24px rgba(27, 29, 33, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #171a1f;
    --text: #e8e6e3;
    --muted: #a4a9b2;
    --faint: #767c86;
    --rule: #262a31;
    --accent: #e07a43;
    --accent-soft: #221a15;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- masthead ---------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--accent); }

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-size: .9375rem;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] { color: var(--accent); }

/* ---- headings and text ------------------------------------------------- */

main { padding: 3.5rem 0 5rem; }

h1 {
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 .75rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -.015em;
  margin: 3rem 0 .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  letter-spacing: -.005em;
  margin: 0 0 .4rem;
}

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2rem;
}

.stamp {
  color: var(--faint);
  font-size: .875rem;
  margin: 0 0 2rem;
}

strong { font-weight: 650; color: var(--text); }

a { color: var(--accent); }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: .4rem; }

/* ---- callout ----------------------------------------------------------- */

.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: .9375rem;
}

.note :last-child { margin-bottom: 0; }

/* ---- product cards ----------------------------------------------------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

a.card { transition: border-color .15s ease, transform .15s ease; }

@media (prefers-reduced-motion: reduce) {
  a.card { transition: none; }
  a.card:hover { transform: none; }
}

.card p {
  color: var(--muted);
  font-size: .9375rem;
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: .2rem .55rem;
  margin-bottom: .7rem;
}

/* ---- feature list ------------------------------------------------------ */

.features { list-style: none; padding: 0; margin: 0 0 1rem; }

.features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.features li:last-child { border-bottom: 0; }

.features p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---- tables ------------------------------------------------------------ */

.scroller { overflow-x: auto; margin: 0 0 1.5rem; }

table { border-collapse: collapse; width: 100%; font-size: .9375rem; }

th, td {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
  font-weight: 600;
}

/* ---- footer ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 3rem;
  color: var(--faint);
  font-size: .875rem;
}

.site-footer a { color: var(--muted); }

.site-footer p { margin: 0 0 .35rem; }

/* ---- narrow screens ---------------------------------------------------- */

@media (max-width: 30rem) {
  main { padding: 2.5rem 0 3.5rem; }
  h1 { font-size: 1.875rem; }
  .lede { font-size: 1.0625rem; }
  .masthead .wrap { padding-top: .6rem; padding-bottom: .6rem; }
}
