/* Our Shop List website: plain HTML and CSS, no scripts, no trackers, no outside fonts. */

:root {
  --bg: #ffffff;
  --card: #f3f7fb;
  --text: #1c2733;
  --muted: #5b6b7b;
  --accent: #1f7bc4;
  --accent-soft: #e3f0fb;
  --border: #d8e3ee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181f;
    --card: #1a242e;
    --text: #e8eef4;
    --muted: #9fb0c0;
    --accent: #5db3f0;
    --accent-soft: #1d3345;
    --border: #2a3947;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

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

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
}

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

main { padding: 36px 0 24px; }

.hero { text-align: center; padding: 12px 0 8px; }

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

h1 { font-size: 34px; line-height: 1.2; margin: 18px 0 8px; }
h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 6px; }

.lead { font-size: 20px; color: var(--muted); margin: 0 auto 20px; max-width: 34em; }

.badge {
  display: inline-block;
  line-height: 0;
}

.badge img {
  height: 48px;
  width: auto;
}

.soon {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}

.steps { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 62px;
  margin-bottom: 12px;
  background: var(--card);
  border-radius: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.steps li > strong:first-child { display: block; }
.inline-icon { width: 1.2em; height: 1.2em; vertical-align: -0.2em; color: var(--accent); }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 6px 20px 14px;
  margin: 14px 0;
}

.card h3 { margin-top: 14px; }

ul.tight { padding-left: 22px; margin: 8px 0; }
ul.tight li { margin: 4px 0; }

details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 2px; }

.contact {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

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

/* Help page: the row of links to each how-to, and pictures or short clips under a how-to */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.jump a {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  text-decoration: none;
}

main section { scroll-margin-top: 12px; }

figure.media {
  margin: 18px auto;
  max-width: 300px;
  text-align: center;
}

figure.media.wide { max-width: 520px; }

figure.media img,
figure.media video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
}

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

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

footer.site a { color: var(--muted); margin-right: 16px; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  .lead { font-size: 18px; }
  nav a { margin-left: 14px; }
}

/* The six-picture story on the home page */
.strip {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

@media (min-width: 560px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
}

/* A short example of a text file, on the Help page */
pre.example {
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--card);
  border-radius: 4px;
  padding: 1px 5px;
}

pre.example code { background: none; padding: 0; }
