/* Silly Dogs — sillydogs.org */

/* Fonts (self-hosted, SIL Open Font License) */
/* Archivo latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Public Sans latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: one narrow column built for a phone scanned from a stall QR code.
   Paper sections alternate with two blue bands; the "where the money goes"
   receipt on the first blue band is the page's single bold moment. */
:root {
  color-scheme: dark;
  --paper: #0A1127;
  --paper-2: #0F1936;
  --card: #101A3A;
  --ink: #EEF1FA;
  --ink-soft: #A9B4D2;
  --line: #25325C;
  --blue: #1A3585;
  --on-blue: #F5F7FC;
  --on-blue-soft: #C3CDEB;
  --yellow: #FFD21F;
  --on-yellow: #0E1B3A;
  --link: #9DB4FF;
  --focus: #FFD21F;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 10;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { scroll-margin-top: 4.25rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 108%;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.heart { width: 1.35em; height: 1.2em; vertical-align: -0.3em; margin-left: 0.3em; }
.heart .ol { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.hl {
  background: linear-gradient(transparent 60%, var(--yellow) 60% 93%, transparent 93%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}

/* Header */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 11;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo { display: block; width: 40px; height: 40px; object-fit: contain; }
.hero-logo { width: 132px; height: 132px; object-fit: contain; align-self: flex-start; }
.flagmark { display: inline-grid; width: 14px; height: 22px; border-radius: 2px; overflow: hidden; }
.flagmark i { display: block; }
.flagmark i:first-child { background: var(--blue); }
.flagmark i:last-child { background: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn--yellow { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.btn--yellow:hover { filter: brightness(0.95); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--sm { min-height: 40px; padding: 7px 14px; font-size: 0.92rem; }

/* Hero */
.hero { padding-block: 40px 44px; }
.hero .wrap { display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  font-size: clamp(2rem, 8.2vw, 3.5rem);
  line-height: 1.03;
  font-weight: 850;
  letter-spacing: -0.015em;
}
.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 36rem; }
.ph { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ph img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-2); }
.ph figcaption { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.35; }
.item .ph img { aspect-ratio: 4 / 3; object-fit: cover; }
.strip { display: flex; gap: 10px; }
.strip .ph { flex: 1 1 0; max-width: calc((100% - 20px) / 3); }
.strip .ph img { aspect-ratio: 5 / 6; object-fit: cover; }
.strip .ph figcaption { font-size: 0.78rem; }
.ph--hero { max-width: 420px; }
.ph--team { max-width: 420px; }
.ph--team img { aspect-ratio: 4 / 5; object-fit: cover; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blue bands */
.band {
  background: var(--blue);
  color: var(--on-blue);
}
.band .eyebrow { color: var(--on-blue-soft); }
.band .ph figcaption { color: var(--on-blue-soft); }
.band .ph img { border-color: rgba(245, 247, 252, 0.28); background: transparent; }
.ph--meet { max-width: 420px; }
.band a { color: var(--on-blue); }

/* Receipt */
.money { padding-block: 44px 48px; }
.money .wrap { display: flex; flex-direction: column; gap: 22px; }
.money h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.08; font-weight: 800; }
.money .intro { color: var(--on-blue-soft); max-width: 34rem; }
.receipt {
  background: var(--card);
  color: var(--ink);
  border-radius: 4px;
  padding: 20px 18px 18px;
  font-family: var(--font-mono);
  max-width: 34rem;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.rows { list-style: none; margin: 0; padding: 14px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.rows li { display: flex; align-items: baseline; gap: 8px; font-size: 0.95rem; }
.rows .lbl { min-width: 0; }
.rows .dots { flex: 1 1 12px; min-width: 12px; border-bottom: 2px dotted var(--line); transform: translateY(-3px); }
.rows .val { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.rows .yes .lbl { font-weight: 500; color: var(--ink); }
.rows .yes .val {
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 1px 8px;
  border-radius: 3px;
  font-weight: 500;
}
.receipt-foot {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}
.receipt-foot b { font-weight: 600; }

/* Proof: totals and delivered equipment */
.proof { padding-block: 52px 8px; }
.proof .wrap { display: flex; flex-direction: column; gap: 24px; }
.proof h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.08; font-weight: 800; }
.sub { font-family: var(--font-display); font-size: clamp(1.6rem, 5.8vw, 2.2rem); line-height: 1.1; font-weight: 800; margin: 8px 0 -4px; }
.lead-b { font-family: var(--font-display); font-stretch: 105%; font-size: 1.2rem; line-height: 1.25; font-weight: 750; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 20px 24px; }
.fact { min-width: 0; border-top: 3px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fact b {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fact span { color: var(--ink-soft); font-size: 0.95rem; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ledger .what-name { font-weight: 600; line-height: 1.35; }
.ledger .who { grid-column: 1; font-size: 0.88rem; color: var(--ink-soft); }
.ledger .amt { grid-column: 2; grid-row: 1; font-family: var(--font-mono); font-size: 0.92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.src { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }
.more { display: inline-block; margin-top: 2px; font-weight: 600; font-size: 0.95rem; }

/* What we do */
.what { padding-block: 52px 24px; }
.what > .wrap { display: flex; flex-direction: column; gap: 40px; }
.what h2, .about h2, .give-sec h2, .contact h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.08; font-weight: 800; }
.group { display: flex; flex-direction: column; gap: 6px; }
.group h3 { font-size: 1.15rem; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.item {
  display: grid;
  gap: 6px 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.item .tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--link);
  padding-top: 0.2rem;
}
.item .body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item h4 { margin: 0; font-family: var(--font-display); font-stretch: 105%; font-size: 1.2rem; line-height: 1.2; font-weight: 750; }
.item p { color: var(--ink-soft); }
/* Carousel: one tile at a time, native swipe via scroll-snap, arrows loop. */
.car { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.car-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overflow-y: hidden;
  align-items: stretch;
}
.car--js .car-track { align-items: start; transition: height 0.3s ease; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > .item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 18px 16px;
  align-content: start;
}
.car-nav { display: none; align-items: center; gap: 12px; }
.car--js .car-nav { display: flex; }
.car-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.car-btn:hover { background: var(--paper-2); }
.car-dots { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.car-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.45;
  cursor: pointer;
}
.car-dot[aria-current="true"] { background: var(--yellow); opacity: 1; }
.car-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; transition: none; } }

@media (min-width: 640px) {
  .item { grid-template-columns: 7.5rem 1fr; }
}

/* About */
.about { padding-block: 24px 56px; }
.about .wrap { display: flex; flex-direction: column; gap: 18px; }
.about p { max-width: 36rem; color: var(--ink-soft); }
.past { padding-top: 16px; color: var(--ink-soft); font-size: 0.98rem; }
.past .todo { background: var(--yellow); color: var(--on-yellow); padding: 1px 8px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.85rem; }

/* How to give */
.give-sec { padding-block: 52px 56px; background: var(--paper-2); }
.give-sec .wrap { display: flex; flex-direction: column; gap: 22px; }
.give-sec .intro { color: var(--ink-soft); max-width: 34rem; }
.gives { display: flex; flex-direction: column; gap: 14px; }
.give {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--on-yellow);
  text-decoration: none;
  border: 2px solid var(--yellow);
}
.give strong { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.give span.sub { grid-column: 1; font-size: 0.95rem; }
.give .arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; line-height: 1; }
a.give:hover { filter: brightness(0.95); }
.sub-h { font-size: 1.1rem; font-weight: 700; padding-top: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.accts { display: flex; flex-direction: column; gap: 14px; }
.acct { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.acct-title { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.acct-for { color: var(--ink-soft); font-size: 0.97rem; }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.acct-num { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; user-select: all; }
.qrs { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.qr { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qr img { display: block; width: 132px; height: 132px; background: #fff; padding: 6px; border-radius: 6px; border: 1px solid var(--line); image-rendering: pixelated; }
.qr figcaption { font-size: 0.85rem; color: var(--ink-soft); max-width: 144px; line-height: 1.3; }
.qr-hint { color: var(--ink-soft); font-size: 0.85rem; }
.note { font-size: 0.95rem; color: var(--ink-soft); max-width: 34rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status { font-size: 0.92rem; color: var(--ink-soft); }

/* Contact */
.contact { padding-block: 52px 36px; }
.contact .wrap { display: flex; flex-direction: column; gap: 20px; }
.contact .mailrow .status { color: var(--on-blue-soft); }
.contact p.lead { color: var(--on-blue-soft); max-width: 34rem; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  user-select: all;
}
.btn--onblue { border-color: var(--on-blue); color: var(--on-blue); }
.btn--onblue:hover { background: rgba(255, 255, 255, 0.12); }
.band :focus-visible { outline-color: var(--yellow); }

/* Newsletter sign-up, sitting on the blue contact band */
.news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 247, 252, 0.28);
}
.news h3 { font-size: 1.15rem; font-weight: 750; }
.news-note { color: var(--on-blue-soft); max-width: 34rem; font-size: 0.97rem; }
.news-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.news-row label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.news-input {
  flex: 1 1 15rem;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-blue);
  background: rgba(10, 17, 39, 0.35);
  border: 2px solid rgba(245, 247, 252, 0.45);
  border-radius: 6px;
}
.news-input::placeholder { color: var(--on-blue-soft); opacity: 0.8; }
.news-input:focus-visible { border-color: var(--yellow); outline: none; }
/* Honeypot for bots: off-screen, never shown to people. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news .status { color: var(--on-blue-soft); }

.foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(245, 247, 252, 0.28); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.foot strong { font-family: var(--font-display); font-stretch: 112%; font-weight: 850; font-size: 1.15rem; }
.foot span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-blue-soft); align-self: center; }
