/*
  Dotshund website. One shared stylesheet, no frameworks, and no requests to any other site.
  The two typefaces are the game's own (Fredoka for the name and headings, Nunito for reading), copied
  into fonts/ by `npm run dh:site` from the same packages the game uses. Japanese pages read in the
  phone's or computer's own Japanese face.

  Colours are the game's own (games/dotshund/src/art/palette.ts and the brief):
  cream #FFF6E4, card #FFFDF8, ink #3B2618, soft ink #6D5645,
  accent red #F0553A, gold #FFC83D, lawn green #C5E4A0.

  Contrast notes (WCAG): ink on cream 13:1; soft ink on cream 6.4:1; soft ink on lawn 4.9:1;
  ink on gold 9:1. Accent red on cream is 3.2:1, so red is used only for large lettering
  (the wordmark) and for decoration, never for body text or small links.

  The dogs on the pages are drawn by the page: a head and a tail from the symbols at the top of every page
  (tools/dotshund/src/site-assets.ts, the same shapes as the game's own drawing) and a body that is a plain bar
  stretched to length here. One number sizes a whole dog: --h, its height from the tip of one ear to the tip of
  the other (108 of the game's units; the body is 59 of them thick).
*/

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light; /* the page is cream in dark mode too, like the game */
  --cream: #FFF6E4;
  --card: #FFFDF8;
  --ink: #3B2618;
  --soft: #6D5645;
  --red: #F0553A;
  --red-deep: #C23A22;
  --gold: #FFC83D;
  --gold-deep: #D99A12;
  --lawn: #C5E4A0;
  --lawn-deep: #A9D37E;
  --edge: #E6D3B0;
  --line: rgba(59, 38, 24, 0.14);
  --shadow: 0 5px 0 var(--edge), 0 18px 28px -18px rgba(59, 38, 24, 0.4);
  --radius: 24px;
  --radius-small: 14px;
  --wrap: 1080px;
  --text: "Nunito", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Arial Rounded MT Bold", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  /* the board's squares, as a quiet pattern: one rounded square to a tile */
  --tiles-lawn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76'%3E%3Crect x='4' y='4' width='68' height='68' rx='15' fill='%23D1EAB1'/%3E%3C/svg%3E");
  --tiles-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76'%3E%3Crect x='4' y='4' width='68' height='68' rx='15' fill='%23FFF1D6'/%3E%3C/svg%3E");
  /* the chestnut coat */
  --dog-body: #C06A2B; --dog-dark: #6B3410; --dog-light: #DE8C45; --dog-muzzle: #E3A062; --dog-ear: #8E4717; --dog-nose: #2A160C;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

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

/* Pictures hold their space, and show a lawn-green block with the alt text, if a file is missing. */
img {
  background: var(--lawn);
  color: var(--soft);
  font-size: 0.875rem;
  border-radius: var(--radius-small);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 11vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--red); }
a:hover { text-decoration-color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.soft { color: var(--soft); }
.small { font-size: 0.9375rem; }
.centre { text-align: center; }
.defs { position: absolute; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 0.7rem 1rem; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 1rem; }

.eyebrow {
  display: inline-block; margin: 0 0 0.9rem; padding: 0.25rem 0.85rem 0.3rem; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- header */

/* One row at every width: the name on the left, the menu on the right. On a phone only the links
   marked .nav-keep stay; the rest are in the footer of every page. */
.site-header { padding: 0.8rem 0; position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; gap: 0.5rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 var(--edge); }

.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.wordmark .hund { color: var(--red); }
.brand .wordmark { font-size: 1.7rem; line-height: 1; }

.site-nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.25rem 0.35rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block; padding: 0.55rem 0.9rem; min-height: 44px; border-radius: 999px; white-space: nowrap;
  text-decoration: none; font-family: var(--display); font-weight: 600; color: var(--soft);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--edge); }
@media (max-width: 719px) { .site-nav li:not(.nav-keep) { display: none; } }
@media (max-width: 359px) { .brand .wordmark { font-size: 1.45rem; } .brand img { width: 38px; height: 38px; } }

/* ---------------------------------------------------------------- the dog */

.dog { --h: 56px; display: flex; align-items: center; height: var(--h); isolation: isolate; }
.dog-tail { flex: none; width: calc(var(--h) * 0.481); height: calc(var(--h) * 0.296); margin-right: calc(var(--h) * -0.154); position: relative; z-index: -1; transform-origin: 85% 50%; animation: wag 0.5s ease-in-out infinite alternate; }
.dog-body {
  flex: 1 1 auto; min-width: 0; height: calc(var(--h) * 0.548); position: relative;
  border: calc(var(--h) * 0.0426) solid var(--dog-dark); border-right: 0; border-radius: 999px 0 0 999px;
  background: var(--dog-body);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--dog-dark) 26%, var(--dog-body)) 0 13%, var(--dog-body) 13% 35%,
    color-mix(in srgb, var(--dog-light) 60%, var(--dog-body)) 35% 65%, var(--dog-body) 65% 87%,
    color-mix(in srgb, var(--dog-dark) 26%, var(--dog-body)) 87% 100%);
}
/* the front paws, peeping out from under the body just behind the head */
.dog-body::before, .dog-body::after {
  content: ""; position: absolute; z-index: -1; right: calc(var(--h) * 0.36);
  width: calc(var(--h) * 0.17); height: calc(var(--h) * 0.17); border-radius: 50%;
  background: var(--dog-light); border: calc(var(--h) * 0.0426) solid var(--dog-dark);
}
.dog-body::before { top: calc(var(--h) * -0.11); }
.dog-body::after { bottom: calc(var(--h) * -0.11); }
.dog-head { flex: none; width: calc(var(--h) * 0.963); height: var(--h); margin-left: calc(var(--h) * -0.37); position: relative; z-index: 1; overflow: visible; }
@keyframes wag { from { transform: rotate(-9deg); } to { transform: rotate(13deg); } }

/* a numbered treat: a biscuit with a darker rim */
.treat {
  flex: none; display: grid; place-items: center; width: calc(var(--h, 56px) * 0.73); height: calc(var(--h, 56px) * 0.73); border-radius: 50%;
  background: radial-gradient(circle, #FFE9B8 0 57%, #F2C468 58% 100%); border: calc(var(--h, 56px) * 0.047) solid #9A6A22;
  font-family: var(--display); font-weight: 700; font-size: calc(var(--h, 56px) * 0.34); line-height: 1; color: var(--ink);
  box-shadow: 0 calc(var(--h, 56px) * 0.06) 0 rgba(59, 38, 24, 0.16);
}
.dog > .treat { margin-left: calc(var(--h) * 0.43); animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: scale(1.07); } }

/* other coats, for the ladder */
.coat-cream { --dog-body: #F3D9A4; --dog-dark: #A77A3B; --dog-light: #FFF0CE; --dog-muzzle: #FFF3DA; --dog-ear: #DDB574; --dog-nose: #5B3A22; }
.coat-blacktan { --dog-body: #3A2E2A; --dog-dark: #17110F; --dog-light: #5A4A44; --dog-muzzle: #D08A4A; --dog-ear: #241B18; --dog-nose: #0E0907; }
.coat-chocolate { --dog-body: #7A4A2A; --dog-dark: #3C200F; --dog-light: #9A6540; --dog-muzzle: #B98458; --dog-ear: #57301A; --dog-nose: #1E0F08; }
.coat-golden { --dog-body: #F2B632; --dog-dark: #8E5A06; --dog-light: #FFDD75; --dog-muzzle: #FFE7A1; --dog-ear: #C98A12; --dog-nose: #3A2206; }

/* ---------------------------------------------------------------- hero */

/* On a phone the order is: name, tagline, call to action, the phone with the film in it, then the paragraph,
   so the first screen shows what it is and what to do. On a wide screen the phone stands beside the words. */
.hero { padding: 1rem 0 0; background: var(--cream) var(--tiles-cream); }
.hero-grid { display: grid; gap: 1.6rem; align-items: start; }
.hero-top { order: 1; } .hero-phone { order: 2; } .hero-more { order: 3; }
.hero h1 { margin-bottom: 0.08em; }
.hero h1 .wordmark { font-size: inherit; }
.tagline { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 3.8vw, 1.85rem); line-height: 1.25; margin-bottom: 0; text-wrap: balance; }
.tagline span { white-space: nowrap; } /* a line may break between the three sentences, never inside one */
.lede { font-size: 1.15rem; color: var(--soft); max-width: 34rem; }
.hero-top .cta { margin-top: 1.1rem; }
.hero-terms { max-width: 30rem; }

@media (min-width: 880px) {
  .hero { padding-top: 2rem; }
  .hero-grid { grid-template-columns: 1fr minmax(0, 340px); grid-template-areas: "top phone" "more phone"; column-gap: 4rem; row-gap: 1.2rem; }
  .hero-top { grid-area: top; align-self: end; }
  .hero-more { grid-area: more; }
  .hero-phone { grid-area: phone; align-self: center; }
}

/* a phone with the game playing in it: a short film, without sound until the visitor turns it on */
.phone {
  width: min(100%, 318px); margin-inline: auto; padding: 11px; border-radius: 46px;
  background: #2B1C12; box-shadow: 0 7px 0 #1A100A, 0 34px 50px -26px rgba(59, 38, 24, 0.6);
}
.phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 35px; overflow: hidden; background: var(--lawn); }
.phone-screen img, .phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.phone-note { max-width: 20rem; margin: 1.1rem auto 0; text-align: center; }

/* the dog that runs along the bottom of the hero, on a strip of lawn, after treat number one */
.hero-dog {
  --h: clamp(54px, 8.4vw, 84px); height: auto; margin-top: 2.6rem; padding: calc(var(--h) * 0.26) 0;
  background: var(--lawn) var(--tiles-lawn); border-top: 3px solid var(--lawn-deep); overflow: hidden;
}
.hero-dog .dog-tail { display: none; }
.hero-dog .dog-body { flex: 0 0 60%; border-left: 0; border-radius: 0; animation: stretch 1.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes stretch { from { flex-basis: 22%; } }

/* The call to action. Before launch it is a plain block, not a link: a dashed outline and no shadow, so it
   does not look like something to press. After launch the links are ordinary text buttons in the site's
   own gold. They are deliberately not drawn like the stores' badges. */
.cta { margin: 0; }
.cta-soon {
  display: inline-block; padding: 0.65rem 1.3rem 0.7rem; border: 2px dashed rgba(59, 38, 24, 0.45); border-radius: 18px; background: var(--card);
}
.cta-soon strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.cta-soon span { display: block; color: var(--soft); font-size: 0.9375rem; line-height: 1.35; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.stores li { margin: 0; }
.store-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  padding: 0.6rem 1.5rem; border-radius: 999px; text-decoration: none;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); line-height: 1.2;
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 5px 0 rgba(59, 38, 24, 0.35);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.store-link:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(59, 38, 24, 0.35); }
.store-link:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(59, 38, 24, 0.35); }
.cta-note { margin: 0.6rem 0 0; color: var(--soft); font-size: 0.9375rem; }
.cta.hop { animation: hop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes hop { 30% { transform: translateY(-10px) scale(1.04); } }
.cta-band { padding: 3.2rem 0 4.6rem; text-align: center; }
.cta-band .stores { justify-content: center; }
.cta-band h2 { margin-bottom: 0.6em; }

/* ---------------------------------------------------------------- sections */

section { padding: 3.6rem 0; }
.band, .band.lawn { background: var(--lawn) var(--tiles-lawn); }
.band.paper, .band-card { background: var(--card); border-block: 2px solid var(--line); }
#how.band { padding-top: 2.6rem; } /* it carries on from the strip of lawn the dog runs along */
.section-head { max-width: 40rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--soft); font-size: 1.1rem; }
.after-cards { margin: 1.4rem 0 0; }

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem; margin: 0; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--soft); margin-bottom: 0.4em; }

/* the three rules: each card has a small picture made of the game's own pieces, and its number */
.steps { counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } } /* three rules, three in a row: never two and one */
.steps .card { position: relative; padding-top: 1.2rem; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -0.7rem; left: -0.5rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff; border: 3px solid var(--card);
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  box-shadow: 0 3px 0 rgba(59, 38, 24, 0.25);
}
.step-art {
  --h: 54px; height: 92px; margin: 0 0 1.1rem; border-radius: 16px; overflow: hidden;
  background: var(--lawn) var(--tiles-lawn); background-size: 46px 46px; background-position: center;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.mini-dog { display: flex; align-items: center; height: var(--h); width: 46%; margin-left: -6%; isolation: isolate; }
.mini-dog .dog-body { border-left: 0; border-radius: 0; }
.dots-ahead { display: flex; gap: 0.5rem; margin-left: 0.2rem; }
.dots-ahead i { width: 9px; height: 9px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px rgba(59, 38, 24, 0.2); }
.mini-board { display: grid; grid-template-columns: repeat(3, 22px); gap: 4px; }
.mini-board i { width: 22px; height: 22px; border-radius: 6px; background: #F5DC8E; box-shadow: inset 0 -2px 0 rgba(59, 38, 24, 0.12); }
.mini-board .bowl { background: radial-gradient(circle, #FFE9B8 0 40%, var(--red) 42% 68%, #F5DC8E 70%); }

/* what is inside: each card carries one square of colour, like a square of the board */
.features .card { position: relative; padding-top: 3.5rem; }
.features .card::before {
  content: ""; position: absolute; top: 1.25rem; left: 1.35rem; width: 1.7rem; height: 1.7rem; border-radius: 8px;
  background: var(--tint, var(--gold)); box-shadow: inset 0 -3px 0 rgba(59, 38, 24, 0.16);
}
.tint-gold { --tint: #FFC83D; }
.tint-red { --tint: #F0553A; }
.tint-green { --tint: #8FCB6B; }
.tint-blue { --tint: #6FBCE6; }

/* every coat on one sheet */
.coats-block { display: grid; gap: 1.6rem; align-items: center; }
.coats-block img { width: 100%; border-radius: var(--radius); border: 2px solid var(--line); box-shadow: var(--shadow); background: var(--cream); }
@media (min-width: 880px) { .coats-block { grid-template-columns: 1fr 520px; column-gap: 3.5rem; } }

/* the "how long is your dog" ladder: each rung is a dog of that length */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.ladder li { margin: 0; display: grid; grid-template-columns: minmax(8.5rem, 13rem) 1fr; gap: 0.8rem; align-items: center; }
.ladder .what { font-weight: 700; }
.ladder .what span { display: block; font-weight: 400; color: var(--soft); font-size: 0.875rem; }
.ladder-dog { --h: 42px; min-width: calc(var(--h) * 2); }
.ladder-dog .dog-tail { animation: none; }
.w1 { width: 13%; } .w2 { width: 23%; } .w3 { width: 35%; } .w4 { width: 49%; } .w5 { width: 65%; } .w6 { width: 82%; } .w7 { width: 100%; }
@media (max-width: 520px) { .ladder li { grid-template-columns: 1fr; gap: 0.1rem; } .ladder-dog { --h: 35px; margin-bottom: 0.5rem; } }

/* screenshots: a row that scrolls sideways, by touch, mouse or keyboard, from one edge of the window to the other */
.shots {
  display: flex; gap: 1.1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 0.6rem max(1.25rem, calc((100vw - var(--wrap)) / 2)) 1.5rem; margin: 0; list-style: none;
  scroll-padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2));
}
.shots li { flex: none; width: min(62vw, 15rem); margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--line); box-shadow: var(--shadow); }
.scroll-hint { color: var(--soft); font-size: 0.9375rem; margin: 0 auto 0.3rem; }
#screenshots { padding-bottom: 2.6rem; }
#screenshots .section-head { margin-bottom: 1rem; }


/* questions and answers */
.faq { display: grid; gap: 0.7rem; }
details { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-small); box-shadow: 0 3px 0 var(--edge); }
summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--soft);
}
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 1.2rem 0.6rem; color: var(--soft); }
details .answer p:last-child, details .answer ul:last-child { margin-bottom: 0.6em; }

/* the page for an address that does not exist */
.lost { padding: 3rem 0 0; }
.lost h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.lost .lede { margin-inline: auto; }
.lost .store-link { margin: 0.6rem 0 1rem; }

/* long reading pages: privacy, terms, support, press, company details */
.page-head { padding: 2rem 0 1.6rem; background: var(--lawn) var(--tiles-lawn); border-bottom: 3px solid var(--lawn-deep); margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 6.5vw, 3.4rem); margin-bottom: 0.25em; }
.prose { padding: 1rem 0 3.5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.6em; }
.prose > .narrow > :first-child { margin-top: 0; }
.summary-box { background: var(--card); border: 2px solid var(--line); border-left: 8px solid var(--gold); border-radius: var(--radius-small); padding: 1.2rem 1.3rem 0.6rem; margin: 0 0 1.5rem; box-shadow: 0 3px 0 var(--edge); }
.toc { columns: 2 14rem; padding-left: 1.2em; }
.toc a { display: inline-block; padding: 0.2rem 0; } /* a taller target for a finger */

/* the row of languages on the pages that exist in more than one */
.langs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; margin: 0.2rem 0 0; padding: 0; }
.langs li { margin: 0; }
.langs a { display: inline-block; padding: 0.3rem 0.75rem; min-height: 36px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--soft); box-shadow: inset 0 0 0 2px var(--line); background: var(--card); }
.langs a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.langs a:hover { color: var(--ink); }
.notice { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-small); padding: 0.8rem 1rem; margin: 0 0 1.3rem; font-size: 0.9375rem; color: var(--soft); }
.notice p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 2px solid var(--line); border-radius: var(--radius-small); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
caption { text-align: left; padding: 0.8rem 0.9rem 0.2rem; font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: rgba(197, 228, 160, 0.45); }
tbody th { font-weight: 600; }
td img.thumb { width: 72px; max-height: 96px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: var(--cream); }

/* On a phone a table becomes a stack of cards: each row a block, each cell on its own line under the name of
   its column (the data-label that `npm run dh:site` writes from the table's own headings). Nothing is cut
   off and nothing needs sideways scrolling. */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; background: none; }
  table, tbody, tr, th, td { display: block; min-width: 0; width: auto; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  tbody tr { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-small); margin: 0 0 0.7rem; padding: 0.5rem 0; }
  tbody th, tbody td { border: 0; padding: 0.3rem 0.9rem; overflow-wrap: anywhere; }
  tbody th { font-size: 1.0625rem; font-weight: 700; }
  tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 700; color: var(--soft); }
}

dl.facts { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0.5rem 1rem; margin: 0 0 1.2em; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; color: var(--soft); overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 0.1rem; } dl.facts dd { margin-bottom: 0.6rem; } }

blockquote.copy { margin: 0 0 1.2em; padding: 1rem 1.2rem; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-small); }
blockquote.copy p:last-child { margin-bottom: 0; }

/* Anything the owner must still supply or confirm shows with a gold wash and a dashed red outline, so it cannot
   be missed. `npm run dh:site` adds the class while a value in _src/values.json is empty; `npm run
   dh:site-publish` lists every one that is left. */
.replace { background: rgba(255, 200, 61, 0.45); outline: 2px dashed var(--red); outline-offset: 1px; border-radius: 4px; padding: 0 0.2em; }

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

/* a dog walks along the top edge of the footer, half on the page above it */
.site-footer { position: relative; background: var(--ink); color: var(--cream); padding: 3.6rem 0 3rem; }
.foot-dog { --h: 54px; position: absolute; left: 0; top: calc(var(--h) * -0.5); width: min(62%, 560px); }
.foot-dog .dog-tail { display: none; }
.foot-dog .dog-body { border-left: 0; border-radius: 0; }
.foot-dog .treat { position: absolute; left: calc(100% + var(--h) * 0.4); margin: 0; }
.site-footer a { color: var(--cream); text-decoration-color: var(--gold); display: inline-block; padding: 0.2rem 0; }
.site-footer .wordmark { color: var(--cream); font-size: 1.7rem; }
.site-footer .wordmark .hund { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 1rem 0; }
.site-footer ul.social { margin-top: -0.4rem; }
.site-footer li { margin: 0; }
.site-footer p { margin: 0.4rem 0; opacity: 0.9; font-size: 0.9375rem; }

/* ---------------------------------------------------------------- focus, motion and print */

/* Last in the file on purpose: a component's own shadow must not hide the gold halo of the focus ring. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px var(--gold);
}
.store-link:focus-visible { border-radius: 999px; outline-offset: 4px; box-shadow: 0 0 0 9px var(--red); }
.site-footer :focus-visible { outline-color: var(--cream); box-shadow: 0 0 0 6px var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .store-link:hover, .store-link:active { transform: none; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .skip, .cta, .cta-band, .shots, .langs, .hero-phone, .dog { display: none; }
  details { border: 0; }
  details > * { display: block; }
  a { text-decoration: none; }
}
