/* pawspots.ca. One stylesheet, no outside fonts or scripts: the site loads
   nothing from anyone else, so the privacy page can say so truthfully.
   Colours are the app's own (PawSpots/Theme.swift). */

:root {
  color-scheme: light;
  --gold: #DF9632;
  --gold-dark: #B8781F;
  --gold-soft: #E5C07A;
  --ink: #3B2F2F;
  --ink-soft: #5A4D42;
  --muted: #75695A;
  --background: #FAF5E8;
  --cream: #FFFCF5;
  --cream-pressed: #F1EBDA;
  --hairline: #F0E8D4;
  --sand-ring: #D8CDB8;
  --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Everything is sized in rem, so the whole page grows with this one
   number on wide screens: 16 px up to about 1,300 px across, 20 px on a
   27-inch monitor. Fixed sizes looked right on a laptop and left the page
   a thin column on a big screen (Jeff's monitor, 2026-11-13). */
html { -webkit-text-size-adjust: 100%; font-size: clamp(100%, 0.55rem + 0.5vw, 125%); }

/* How wide the main phone is: as large as fits in one view of the window,
   so it's judged by the window's height as well as its width. */
:root { --pw: min(78vw, clamp(17rem, 40vh, 30rem)); }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

/* Ink text with a gold underline: the gold alone is too pale to read as
   body text on cream. */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--gold-dark); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Top bar (Privacy and Support): the logo is the way home. Their links
   live in the footer only, so the top of every page points at one thing. */
.top { padding: 1.25rem 0; }
.top .logo { display: inline-block; }
.top .logo img { width: 11.5rem; }

h1, h2, h3 { font-family: var(--rounded); color: var(--ink); line-height: 1.15; text-wrap: balance; }

/* Home: first screen. The logo is the masthead, as on the app's first
   welcome card: centred and wider than the slogan, so the logo leads. */
.hero { text-align: center; padding: 2rem 0 0; overflow: hidden; }
.masthead { position: relative; width: min(30rem, 84vw); aspect-ratio: 1560 / 369; margin: 0 auto 1.5rem; }
.masthead .name { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Chewie runs in once and becomes the logo. Seven drawn frames in a strip
   (the app's own gallop); the strip slides one frame per step. */
.masthead .runner {
  position: absolute; left: 4.5%; top: 8%; width: 37%; aspect-ratio: 512 / 360;
  background: url(/assets/chewie-run.png) 0 0 / 700% 100% no-repeat;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .masthead .name { animation: name-in 0.5s ease-out 1.55s both; }
  .masthead .runner {
    animation: gallop 0.56s steps(7, jump-none) 3, run-in 1.6s cubic-bezier(0.2, 0.7, 0.3, 1) both, runner-out 0.45s ease-out 1.6s both;
  }
  .hero .phone { animation: phone-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both; }
}
@keyframes gallop { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes run-in { from { transform: translateX(-70vw); opacity: 1; } to { transform: translateX(0); opacity: 1; } }
@keyframes runner-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes name-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes phone-up { from { transform: translateY(5rem); opacity: 0; } to { transform: none; opacity: 1; } }

.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -0.015em; margin: 0; line-height: 1.08; }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ink-soft); max-width: 34rem; margin: 1rem auto 0; }
.hero .count { color: var(--muted); font-size: 0.98rem; margin: 0.6rem 0 1.5rem; }

.soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: #fff;
  font-family: var(--rounded); font-weight: 700; font-size: 1rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
}
.soon svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* A real screenshot always sits in a whole phone, never cut off by a
   section's edge and never as a loose crop: a piece of a screen nobody has
   seen has no context (Jeff, 2026-11-12). */
/* The frame's corners and edge are fractions of the phone's width, so
   a phone of any size keeps the same shape. */
.phone {
  --w: var(--pw);
  width: var(--w); margin: 0 auto;
  border-radius: calc(var(--w) * 0.138); border: calc(var(--w) * 0.026) solid var(--ink); background: var(--ink); overflow: hidden;
  box-shadow: 0 2rem 4rem rgba(59, 47, 47, 0.22), 0 0.3rem 0.8rem rgba(59, 47, 47, 0.12);
}
.phone img { border-radius: calc(var(--w) * 0.112); }
/* The first phone is the largest; the ones further down support it. */
.spot .phone { --w: calc(var(--pw) * 0.92); }
.hero .phone { margin-top: 2.25rem; }
.hero { padding-bottom: 5rem; }

.band { background: var(--cream); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.block { padding: 5rem 0; }
.block h2 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 800; margin: 0; line-height: 1.1; }
.block p { color: var(--ink-soft); font-size: 1.15rem; margin: 1rem 0 0; }

/* See what's near you: words beside the phone. */
.near .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 52rem) { .near .wrap { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.near p { max-width: 30rem; }
/* Near you, seen two ways: the map with your dot, and the same parks as
   a list. One after the other on a phone, where side by side each would
   be too small to read; overlapping on wider screens. */
.pair { display: grid; gap: 2rem; }
.pair .phone { --w: calc(var(--pw) * 0.86); }
@media (min-width: 52rem) {
  .pair { display: block; position: relative; width: calc(var(--pw) * 1.36); margin: 0 auto; }
  .pair .phone { --w: calc(var(--pw) * 0.8); }
  .pair .back { --w: calc(var(--pw) * 0.7); position: absolute; left: 0; top: 7%; }
  .pair .front { position: relative; margin: 0 0 0 auto; }
}
/* The filters as plain words. Flat on purpose: nothing here should look
   like a button, because none of it can be tapped. */
.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 30rem; }
.tags li { background: var(--cream-pressed); color: var(--ink); border-radius: 0.5rem; padding: 0.3rem 0.7rem; font-weight: 600; font-size: 1rem; }

/* The number, alone in the middle of the page. */
.count-block { text-align: center; }
.count-block p { max-width: 34rem; margin-left: auto; margin-right: auto; }

/* Know before you go: one spot's page, with a caption beside each card. */
.know h2 { text-align: center; }
.know .intro { text-align: center; max-width: 34rem; margin-left: auto; margin-right: auto; }
.spot { margin-top: 3rem; }
.captions { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 26rem; display: grid; gap: 1.25rem; }
/* A short gold line beside each caption, on every screen size. On wide
   screens it grows into the pointer from the caption to its card. */
.captions li { position: relative; padding-left: 2.25rem; }
.captions li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 1.5rem; height: 2px; background: var(--gold); border-radius: 2px; }
.captions h3 { font-family: var(--rounded); font-size: 1.25rem; font-weight: 700; margin: 0; }
.captions p { font-size: 1.05rem; margin: 0.2rem 0 0; }
@media (min-width: 56rem) {
  /* Wide screens: the phone on the left of centre, and each caption level
     with the top of its card in the screenshot (those percentages are
     where the three cards sit in app-spot.jpg). */
  .spot { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; }
  .spot .phone { margin: 0 0 0 auto; }
  .captions { position: relative; margin: 0; max-width: none; display: block; }
  .captions li { position: absolute; left: 0; max-width: 24rem; padding-left: 3.25rem; }
  .captions li::before { width: 2.5rem; }
  .captions li:nth-child(1) { top: 50.5%; }
  .captions li:nth-child(2) { top: 67%; }
  .captions li:nth-child(3) { top: 78.5%; }
}

.closing { text-align: center; padding: 4.5rem 0 5rem; }
.closing p { color: var(--muted); margin: 1.5rem 0 0; }

/* Text pages */
.page { padding: 1.5rem 0 4rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; margin: 0.5rem 0 0.5rem; }
.page .updated { color: var(--muted); margin: 0 0 2rem; }
.page h2 { font-size: 1.45rem; font-weight: 700; margin: 2.5rem 0 0.6rem; }
.page h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.3rem; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 1.25rem; }
.page li { margin: 0.35rem 0; }
.page strong { color: var(--ink); }

.card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  box-shadow: 0 0.35rem 1rem rgba(59, 47, 47, 0.06);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* A route through the app's menus. It wraps: kept on one line, the longest
   ones pushed the page wider than a phone. */
.path { font-weight: 600; color: var(--ink); }
.page { overflow-wrap: break-word; }

/* A draft's open questions: loud on purpose, so none can go live unnoticed. */
.todo {
  background: #FFE9A8; color: var(--ink);
  border-radius: 0.3rem; padding: 0.05rem 0.3rem; font-weight: 600;
}
.draft {
  background: #FFE9A8; border: 1px solid var(--gold-soft); border-radius: 1rem;
  padding: 0.9rem 1.1rem; margin: 1rem 0 2rem; color: var(--ink);
}

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.foot a { color: var(--muted); padding: 0.6rem 0; display: inline-block; }
