/* stoopapp.ca: one small stylesheet, no scripts, fonts served from this site (nothing loaded from Google). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/BricolageGrotesque_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/BricolageGrotesque_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/Caveat_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --sale: #ffd23f;
  --free: #3dd598;
  --borrow: #7dbdff;
  --accent: #ff5c8a;
  --ink: #1b2232;
  --paper: #f3f5f0;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: #5a6273;
  --card: #ffffff;
  --border: #d6dbd1;
  --link: #c62e52;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --text: var(--paper);
    --muted: #a9b0be;
    --card: #252d40;
    --border: #3a4459;
    --link: #ff7a9c;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

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

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

.wordmark img {
  width: 32px;
  height: 32px;
}

nav.site {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

nav.site a {
  color: var(--text);
}

main {
  padding-bottom: 48px;
}

h1,
h2 {
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.35rem;
  margin: 36px 0 8px;
}

.lead {
  font-size: 1.2rem;
}

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

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 6px;
}

/* Garage-sale stickers, as in the app. */
.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.stickers li {
  margin: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  font: 700 1.6rem/1 'Caveat', cursive;
  text-align: center;
}

.stickers .sale {
  background: var(--sale);
  transform: rotate(-6deg);
}
.stickers .free {
  background: var(--free);
  transform: rotate(4deg);
}
.stickers .borrow {
  background: var(--borrow);
  transform: rotate(-2deg);
}

.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
  margin: 20px 0;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

footer.site {
  border-top: 1.5px solid var(--border);
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 0.95rem;
  color: var(--muted);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
}

footer.site p {
  margin: 4px 0;
}
