/*
 * The whole site's stylesheet.
 *
 * One file rather than a pair per page, which is the deliberate exception to this repo's
 * "one file per page" convention (docs/standards/frontend-style.md): the handful of pages
 * here share every rule that matters — the wordmark, the hairlines, the crops, the type
 * scale. Splitting it would produce six files that had to agree.
 *
 * The design, and why it is this and not something warmer: the audience is buyers abroad
 * looking at professional photographs of white dogs, so the page is warm ivory rather than
 * white, the ink is a deep coffee brown rather than black, and there is exactly **one**
 * muted accent. Anything more saturated competes with the photographs, which are the only
 * thing on any of these pages that has to be looked at.
 *
 * Base size is 20px rather than 16px on purpose — approved at that scale, and the whole
 * scale is derived from it.
 *
 * **Set for reading rather than for lightness.** The type was Inter 300 and Cormorant 300 in
 * a soft brown, with the small capitals at 10.5-13px and up to .30em of tracking — elegant on
 * the designer's screen and hard to read on a buyer's. The kennel asked for text about as
 * large and as solid as a competing kennel's site, so the faces are now one weight heavier
 * (Inter 400, Cormorant 400 — the heaviest of each that `fonts.css` vendors besides Inter
 * 500), every small capital is 500 and at least 12px with no more than .2em of tracking, and
 * the soft brown is darker. The rule: **no text on the site is lighter than 400 or smaller
 * than 12px.**
 */

:root{
  --ivory:#FBF9F5;
  --surface:#F3ECE1;
  --ink:#241A14;
  --ink-soft:#54412F;
  --accent:#8B5E3C;
  --line:#E2D6C4;
  --line-strong:#C6B49A;
  /* The display face, and the reason it is this one is the alphabet: the site is English
     and Ukrainian, and Cormorant carries latin, latin-ext and cyrillic — all three vendored
     in `fonts.css`. Cooper Black was tried here and reverted for exactly that: it has no
     Cyrillic, so the Ukrainian pages fell back and the two languages read as two designs. */
  --serif:'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans:'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*{ box-sizing:border-box }

/* The column that holds the footer at the bottom of the window. A page with one dog on it
   is shorter than the screen, and a footer that stops halfway down reads as a page that
   failed to finish loading. `margin-top:auto` on the footer rather than a height on the
   content, because the content is a different element on every page and none of them
   should have to know about this. `flex-shrink:0` keeps the 80vh hero from being squeezed
   to fit. */
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--ivory);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:400;
  font-size:20px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
/* The header, the page's `<main>` and the footer are the column's items, and two things follow
   that nothing on the page asks for: an item may be squeezed when the window is short, and a
   flex item with auto margins shrinks to its content instead of filling the row. So the
   children are told to be the full width and not to shrink. Everything a page draws is inside
   `<main>` (`base.html`), in ordinary block flow, where `.wrap`'s `margin:0 auto` centres it as
   anywhere else. */
body > *{ flex-shrink:0; width:100% }

img{ display:block; max-width:100% }
/* `hidden` is how every script here hides something, and any rule that sets `display` — the
   `img` rule above, for one — beats the browser's own `[hidden]`. The viewer's hidden picture
   stood beside its video on a phone and pushed it off the screen's centre
   (docs/standards/frontend-style.md). */
[hidden]{ display:none !important }
a{ color:inherit; text-decoration:none }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer }
h1,h2,h3{ font-family:var(--serif); font-weight:400; letter-spacing:.01em; margin:0 }

.wrap{ max-width:1500px; margin:0 auto; padding:0 50px }
.rule{ height:1px; background:var(--line); border:0; margin:0 }
.empty{ padding:80px 0 140px; max-width:760px; color:var(--ink-soft); font-family:var(--serif); font-size:26px; font-style:italic }
.empty p{ margin:0 0 .55em }
.empty p:last-child{ margin-bottom:0 }
.empty a{ border-bottom:1px solid var(--accent); color:var(--ink) }

/* The empty state that leads with a picture — the puppies page, and only it. Centred, and
   **wider than the plain one**: at 760px the Ukrainian sentence broke onto a third line with
   one word on it, which is what a measure chosen for a paragraph does to a sentence. */
.empty-lead{ max-width:940px; margin:0 auto; padding:56px 0 120px; text-align:center }
.empty-lead img{ width:260px; height:auto; margin:0 auto 26px; opacity:.92 }
.empty-lead p{ margin:0 0 .35em; text-wrap:balance }
/* The page an unknown address gets. The picture is larger than the puppies page's, because
   here it is the message — the "404" is stitched into the toys.

   **It fits one screen, footer included, as the empty puppies page does.** So the picture is
   sized by the window's height rather than its width: what is left of the viewport once the
   header, the two sentences, the footer and the paddings have theirs, and never more than
   the 360px it was drawn to be read at. A fixed width fitted a desktop and made a laptop
   scroll to reach the footer of a page with nothing on it. */
.not-found{ padding:44px 0 72px }
.not-found img{ width:auto; height:clamp(150px, calc(100vh - 560px), 360px); opacity:1 }
.not-found p:first-of-type{ color:var(--ink); font-size:30px }

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

/* **Opaque, and that is the fix rather than the default.** It was 94% ivory over a blur,
   which is one bar on a page of ivory and a different one over a photograph — so the front
   page's header turned green-beige as the hero scrolled under it and every other page's
   stayed pale. A visitor reads that as the site changing colour on one page. A header is
   chrome: it should be the same object everywhere, and a band that borrows the photograph
   behind it is the opposite of the quiet frame this design is. */
.hdr{
  position:sticky; top:0; z-index:40;
  background:var(--ivory);
  border-bottom:1px solid var(--line);
}
.hdr-in{ max-width:1500px; margin:0 auto; padding:0 50px; height:98px; display:flex; align-items:center; gap:44px }

/* The wordmark's two lines share a left edge. The 3px indent on the lower one is optical:
   the serif capital has a side bearing the sans one does not, so aligned boxes look
   misaligned without it.

   **Set the way the front page's heading is**, in its own capitals and lower case with no
   added tracking. It was spaced capitals — `V A N I L L A  R O S A` at .30em — which the
   kennel found hard to read in the bar while the same name in the middle of the front page
   read at a glance. */
.mark-name{
  display:block;
  font-family:var(--serif);
  font-size:36px;
  line-height:1.1;
  letter-spacing:.02em;
  font-weight:400;
  color:var(--ink);
  white-space:nowrap;
}
.mark-sub{
  display:block;
  font-size:12px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-top:3px;
  padding-left:3px;
}

.nav{ display:flex; align-items:center; gap:38px; margin-left:auto; font-size:15px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft) }
/* **The bar never goes black.** Every word in it — the menu, the language — is the soft
   brown the header is set in, hovered, current or neither; what says which page you are on
   is the accent rule under the word. Darkening the text as well said it twice, and the
   louder half was the one that made the header look like two different typefaces. */
.nav a{ padding-bottom:3px; border-bottom:1px solid transparent; transition:border-color .2s }
.nav a:hover{ border-bottom-color:var(--line-strong) }
.nav a.on{ border-bottom-color:var(--accent) }

/* The language switcher. Metrics match `.nav a` exactly — same size, same letter-spacing,
   same 3px bottom padding and transparent border — so it sits on the menu's line rather
   than near it. */
.lang{ position:relative }
.lang summary{
  display:flex; align-items:center; gap:9px;
  font-size:15px; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
  padding-bottom:3px; border-bottom:1px solid transparent;
  /* The one thing that was not `.nav a`'s colour: it inherited the body's ink and sat in
     the bar as the only black word in it. */
  color:var(--ink-soft);
  cursor:pointer; list-style:none;
}
.lang summary:hover{ border-bottom-color:var(--line-strong) }
.lang summary::-webkit-details-marker{ display:none }
.lang summary svg{ width:10px; height:10px; transition:transform .2s }
.lang[open] summary svg{ transform:rotate(180deg) }
.lang ul{
  position:absolute; right:0; top:calc(100% + 12px);
  min-width:200px; margin:0; padding:8px 0; list-style:none;
  background:#fff; border:1px solid var(--line);
  box-shadow:0 12px 34px rgba(36,26,20,.13);
}
.lang li a{ display:flex; justify-content:space-between; gap:20px; padding:11px 20px; font-size:15px }

/* The narrow screen's menu (`base.html`), absent on a wide one. Its panel drops under the bar
   at the bar's full width, in the bar's own type, with the page it is on marked by the same
   accent rule `.nav` uses. */
.menu{ display:none }
.menu summary{ display:flex; align-items:center; justify-content:center; width:44px; height:44px; color:var(--ink); cursor:pointer; list-style:none }
.menu summary::-webkit-details-marker{ display:none }
.menu summary svg{ width:24px; height:16px }
.menu-panel{
  position:absolute; left:0; right:0; top:100%;
  padding:10px 24px 22px;
  background:var(--ivory); border-bottom:1px solid var(--line);
  box-shadow:0 14px 30px rgba(36,26,20,.10);
}
.menu-panel nav{ display:flex; flex-direction:column }
.menu-panel nav a{
  padding:14px 0; border-bottom:1px solid var(--line);
  font-size:16px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft);
}
.menu-panel nav a.on{ color:var(--accent) }
.menu-langs{ display:flex; gap:26px; margin:18px 0 0; font-size:15px; font-weight:500; letter-spacing:.08em; color:var(--ink-soft) }
.menu-langs a{ padding-bottom:3px; border-bottom:1px solid transparent }
.menu-langs a.on{ border-bottom-color:var(--accent) }
.lang li a:hover{ background:rgba(139,94,60,.08) }
.lang li a span{ font-size:12.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft) }
.lang li a.on span{ color:var(--accent) }

/* ---------- front page ---------- */

.hero{ height:80vh; min-height:540px; overflow:hidden; background:var(--surface) }
.hero img{ width:100%; height:100%; object-fit:cover }

#story{ scroll-margin-top:98px }
.home-copy{ padding:70px 0 26px; text-align:center }
.home-copy h1{ font-size:78px; line-height:1.06; letter-spacing:.02em }
.origin{ font-size:14px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-soft); margin:22px 0 0 }

/* 700px is chosen, not inherited: the approved paragraph sits on three lines at this
   measure, and `balance` keeps them of even length instead of leaving one word alone. */
.lede{
  max-width:700px; margin:40px auto 0;
  font-family:var(--serif); font-size:28px; font-style:italic; line-height:1.72;
  color:var(--ink-soft);
  text-wrap:balance; hyphens:none; overflow-wrap:normal;
}
.lede p{ margin:0 0 .6em }
.lede p:last-child{ margin-bottom:0 }

.more{
  display:inline-block; margin-top:44px;
  font-size:14px; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  /* Set in the accent rather than the body's ink: it is a link under a paragraph of soft
     brown italic, and black there reads as the heaviest thing on a page of photographs. */
  color:var(--accent);
  border-bottom:1px solid var(--accent); padding-bottom:6px;
  transition:color .2s;
}
.more:hover{ color:var(--ink-soft) }

#contacts{ padding:58px 0 84px; text-align:center; scroll-margin-top:110px }
#contacts h2{ font-size:48px }
.cts{ display:flex; justify-content:center; gap:34px 56px; margin:38px 0 0; flex-wrap:wrap }
.cts div{ text-align:center }
.cts dt{ font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft) }
.cts dd{ margin:10px 0 0; font-family:var(--serif); font-size:26px }

/* ---------- catalogue ---------- */

.views{ margin-left:auto; display:flex; border:1px solid var(--line) }
.views a{ display:flex; align-items:center; justify-content:center; width:52px; height:44px; color:var(--ink-soft); transition:color .2s }
.views a:hover{ color:var(--accent) }
.views a.on:hover{ color:var(--ivory) }
/* 18px inside a 52×44 cell: large enough to be read as a grid or a tree rather than a
   texture, small enough that the switch stays quieter than the dogs under it. */
.view-icon{ width:18px; height:18px; display:block }
/* The accent rather than the ink, which made the chosen view the darkest element on a
   page whose subject is a photograph. The editor's own switch is set the same way. */
.views a.on{ background:var(--accent); color:var(--ivory) }

/* The row a group opens with: its name where it has one, the view switch where the page has
   one, and the hairline under both.

   **It holds the switch rather than a band above it holding one.** That band was a row, a
   rule, forty empty pixels, then the first group's name and a second rule — two hairlines
   and a third of a laptop screen spent on a control and one word. A group with no name of
   its own still draws the row, so the switch is in the same place on every page and in
   every view; `min-height` is the switch's own, so a nameless row is not a thinner one. */
.group{
  display:flex; align-items:center; justify-content:space-between; gap:30px; min-height:44px;
  margin:34px 0 0; padding-bottom:12px; border-bottom:1px solid var(--line);
}
.group h2{
  font-size:15px; letter-spacing:.16em; text-transform:uppercase; font-family:var(--sans);
  font-weight:500; color:var(--ink-soft);
}
.group:first-of-type{ margin-top:22px }
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:66px 50px; padding:56px 0 130px }
/* A group's own grid ends where the next row begins, so only the last one carries the
   catalogue's bottom margin — which it has to be given back, since every group now opens
   with a row and there is no grid left that is not preceded by one. */
.group + .grid{ padding:44px 0 26px }
.group + .rows{ padding:20px 0 26px }
.grid:last-of-type,.rows:last-of-type{ padding-bottom:120px }

/* The list view. Same 4:5 crop as a card at a fifth of the width, because the crop is what
   ties the two views together — a square thumbnail here would cut the dog differently from
   the card the same photograph draws one click away. */
.rows{ padding:30px 0 130px; border-top:1px solid var(--line) }
/* Under a heading row, whose own hairline already closes it, the list draws no second one. */
.group + .rows{ border-top:0 }
.row{ display:flex; align-items:center; gap:34px; padding:20px 4px; border-bottom:1px solid var(--line) }
.row:hover{ background:rgba(139,94,60,.045) }
.row figure{ margin:0; width:104px; flex:none; aspect-ratio:4/5; overflow:hidden; background:var(--surface) }
.row img{ width:100%; height:100%; object-fit:cover }
.row .who{ min-width:0 }
.row h2{ font-size:27px; line-height:1.2 }
.row .st{ margin:0 0 0 auto; padding-left:20px; text-align:right; font-size:13.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--accent) }
/* The fixed 4:5 crop is what makes photographs taken years apart read as one series. */
.card figure{ margin:0; aspect-ratio:4/5; overflow:hidden; background:var(--surface) }
.card img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease }
.card:hover img{ transform:scale(1.03) }
.card h2{ font-size:32px; margin-top:24px; line-height:1.25 }
.card .st{ font-size:14px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin:13px 0 0 }

/* ---------- one dog ---------- */

.back{ display:inline-flex; align-items:center; gap:12px; font-size:14px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); padding:34px 0 0 }
.back:hover{ color:var(--ink) }
.back svg{ width:20px; height:11px }

.dog{ display:grid; grid-template-columns:1.15fr 1fr; gap:86px; padding:34px 0 64px }
.dog-photo{ aspect-ratio:4/5; overflow:hidden; background:var(--surface) }
.dog-photo img{ width:100%; height:100%; object-fit:cover; cursor:zoom-in }
.dog h1{ font-size:56px; line-height:1.14 }

.facts{ margin:52px 0 0; border-top:1px solid var(--line) }
.facts div{ display:flex; gap:30px; padding:18px 0; border-bottom:1px solid var(--line); font-size:18px }
.facts dt{ width:200px; flex:none; font-size:14px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); padding-top:4px }
.facts dd{ margin:0 }
/* The owner's contacts: the only links inside the facts, and they have to look like links
   because dialling a number is the point of printing it. */
.facts .link{ border-bottom:1px solid var(--line-strong); transition:border-color .2s }
.facts .link:hover{ border-bottom-color:var(--accent) }

.gallery{ padding-bottom:130px }
/* The section's own heading — a litter's photographs — and not a dog's months, which are
   second-level headings inside it drawn as `.month` labels. */
.gallery > h2{ font-size:38px; margin:66px 0 8px }
.month{ font-family:var(--sans); font-weight:500; font-size:14px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); margin:36px 0 18px }
.gal-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px }
.gal-grid figure{ margin:0; aspect-ratio:1; overflow:hidden; background:var(--surface) }
.gal-grid img{ width:100%; height:100%; object-fit:cover; cursor:zoom-in }
/* A video's tile is its first frame with a play mark over the middle, and it plays rather
   than magnifies when opened. */
.gal-grid figure.is-video{ position:relative }
.gal-grid figure.is-video img{ cursor:pointer }
.play-mark{
  position:absolute; top:50%; left:50%;
  width:56px; height:56px; margin:-28px 0 0 -28px;
  border-radius:50%; background:rgba(28,20,15,.55);
  pointer-events:none;
}
.play-mark::after{
  content:''; position:absolute; top:50%; left:54%; transform:translate(-50%,-50%);
  border-style:solid; border-width:11px 0 11px 18px;
  border-color:transparent transparent transparent var(--surface);
}

/* The tabs under a dog's facts: the Puppies page's `.tabs`, drawn like the menu, with a rule
   above them closing the facts (`templates/dog.html`). */
.dog-tabs{ padding:40px 0 0; border-top:1px solid var(--line); scroll-margin-top:110px }

/* The tests and the titles: a line each, centred under the tabs that chose them. */
.dog-lines{ list-style:none; margin:44px auto 0; padding:0 0 130px; text-align:center; font-size:19px; line-height:1.55 }
.dog-lines li{ padding:7px 0 }

/* The pedigree as the papers print it: three columns, each parent spanning its own parents'
   rows, hairlines between the cells. The name leads; the lines under it are what the papers
   print there, quieter. Scrolls sideways on a phone rather than crushing three columns into
   one screen, because a pedigree read one column at a time loses who is whose parent. */
.pedigree-wrap{ overflow-x:auto; margin-top:48px; padding-bottom:130px }
.pedigree{ width:100%; min-width:720px; border-collapse:collapse; table-layout:fixed; background:#fff }
.pedigree th{
  padding:12px 16px; font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-soft); text-align:left; border:1px solid var(--line); background:var(--surface);
}
.pedigree td{ padding:14px 16px; border:1px solid var(--line); vertical-align:middle }
.anc-name{ display:block; font-size:15px; font-weight:600; line-height:1.35; letter-spacing:.02em }
.anc-line{ display:block; margin-top:3px; font-size:13px; line-height:1.45; color:var(--ink-soft) }

/* ---------- news ---------- */

/* An article, two columns: the rail of every item down the left, the one being read on the
   right. The rail is for moving between items once one is open; choosing the first is the
   index's job (`routers/site.py`).

   A grid rather than a float, so the two share a top edge whatever either contains and the
   index keeps its width when the article is two lines long. */
.news-page{ display:grid; grid-template-columns:300px 1fr; gap:60px; padding:34px 0 130px; align-items:start }

/* **The index scrolls on its own.** It is sticky, so it stays beside the article while the
   article scrolls — and once the entries grew a full-width photograph each, ten of them were
   taller than the window: the bottom of the list sat below the screen with nothing that could
   reach it, and the wheel over it scrolled the article instead. So it is capped at the height
   the window leaves it (the 122px it sticks at, and a margin under it) and scrolls inside
   that. `overscroll-behavior: contain` stops the scroll carrying on into the page when it
   reaches either end, which is what made it feel like the wrong thing was moving. */
.news-index{
  position:sticky; top:122px; border-right:1px solid var(--line); padding-right:26px;
  max-height:calc(100vh - 146px); overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent;
}
.news-index h2{ font-family:var(--sans); font-weight:500; font-size:14px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); margin:0 0 18px }
/* An entry is a thumbnail and what it is about. **The picture replaced a counter**, which
   was there because the index is a sequence — but nobody comes back to a show report by
   remembering it was the fourth one, and they do remember the photograph. */
.news-index ol{ list-style:none; margin:0; padding:0 }
.news-index li{ border-top:1px solid var(--line) }
.news-index li:first-child{ border-top:0 }
/* The photograph above the words rather than beside them. A 64px mark down the left was too
   small to recognise a show by, and an entry in this column is chosen by its picture far
   more than by its headline. */
.news-index a{ display:block; padding:16px 0 18px; position:relative }
/* The box is drawn whether or not there is a photograph in it, so an item with no cover
   does not pull its headline out of line with the ones above it. */
.news-thumb{ width:100%; margin:0 0 11px }
.news-said{ min-width:0 }
.news-index a:hover .news-headline{ color:var(--accent) }
.news-headline{ display:block; font-family:var(--serif); font-size:21px; line-height:1.3 }
/* The one being read: the accent on the headline and a rule down its left edge, the same
   two marks the top bar uses for the page you are on. */
.news-index a.on .news-headline{ color:var(--accent) }
/* The second mark is on the photograph now rather than on the column's edge. It used to be a
   rule drawn over the index's border, 27px outside the entry — which a scrolling box clips,
   because it draws nothing outside itself. An inset frame on the picture says the same thing
   in the place the eye already is. */
.news-index a.on .news-thumb::after{ content:''; position:absolute; inset:0; z-index:1; box-shadow:inset 0 0 0 2px var(--accent) }
.news-index .when{ display:block; margin:6px 0 0; color:var(--ink-soft) }
.news-more{ display:inline-block; margin-top:18px; font-size:13.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); border-bottom:1px solid var(--line-strong) }
.news-more:hover{ border-bottom-color:var(--accent) }

/* The index `/news` opens: the catalogue's `.card` and `.row` holding an article, so all that
   is written here is where an article differs from a dog. The cover keeps its 16:9 frame in
   both — the framing an editor chose is a composition for that shape — and the headline on a
   card is a size under a dog's name, because a headline is a sentence and a name is three
   words. */
.card .news-thumb{ margin:0 }
.news-grid .card h2{ font-size:26px; margin-top:20px; line-height:1.3 }
.row .news-thumb{ width:168px; flex:none; margin:0 }
/* A month is the dog page's month label over its own grid or rows, so the catalogue's
   paddings — written for a grid that ends the page — give way to one gap between months, and
   the page's own bottom margin is carried once, by the wrapper, under the link to the rest. */
.news-months{ padding:0 0 120px }
.news-months .month{ margin:40px 0 22px }
.news-months .grid{ padding:0 0 20px }
.news-months .rows{ padding:0 0 20px }
.news-months .news-more{ margin-top:30px }

/* The date, in the accent the catalogue gives a dog's characteristics — it is the one thing
   beside a headline, and it is what a reader scans a column of reports by. */
.when{ font-size:13.5px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin:10px 0 0 }

/* The article. Its column is the grid's, not a max-width of its own: what keeps a line of
   prose readable here is the index taking a third of the page. */
.article{ min-width:0; max-width:820px }
.article h1{ font-size:48px; line-height:1.14; margin-top:0 }
/* Under the headline and close to it: the date is one fact about an article somebody has
   already chosen to read, and above the title a line of accent capitals read as a label the
   piece had been filed under. */
.article .when{ margin:10px 0 0 }

/* ---------- a cover in its frame ---------- */

/* **The frame is 16:9 and every cover is drawn in one.** Before this each article began at
   whatever height its photograph happened to be, so one portrait picture pushed the whole
   text below the fold; a fixed frame also gives the index and the article the same picture,
   which is what makes an entry recognisable.

   The **16:9 is a copy pair** with the editor's `content.css` and `coverframe.js`. What is
   stored is three fractions *of this box* — how wide the photograph is drawn and where its
   corner sits — so a ratio changed on one side alone silently recomposes every framed cover
   (`db_schemas/vanilla_rosa/news.py`). */
/* `display:block` because one of the two frames is a `<span>` inside the index's link, and
   an inline box ignores both the width and the aspect ratio.

   **The empty part of a frame is the page's own colour.** A photograph made smaller than its
   frame sits on the page rather than on a box of its own. It was the surface colour, which
   read as a half-transparent panel behind the picture — and under a browser's dark mode,
   which recolours each declared colour separately, it came out a different brown from the
   page around it. The same colour as the page is recoloured the same way, so the two cannot
   part. */
.cover-frame{ display:block; position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--ivory) }
/* An entry with no cover at all still draws its box, so its headline lines up with the
   others — in the surface colour, since a box in the page's own colour would be no box. */
.news-thumb:not(:has(img)){ background:var(--surface) }
/* Unframed: fill the box and centre, which is where the editor's chooser starts and is
   therefore the same picture it would have saved. Pure CSS, so an item nobody has framed
   needs no script at all. */
.cover-frame img{ position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover }
/* Framed: the width and the two offsets come from `cover.js` through the CSSOM, because a
   `style` attribute is dropped by this site's `style-src 'self'` — measured, not assumed.
   What is left here is only what the script does not set.

   **Not drawn until it has been placed.** It used to be drawn filling its frame from the
   first paint and then moved to where its editor put it once the script ran — a picture
   visibly jumping as the page opened, which Lighthouse measured as a layout shift. Hidden, it
   takes its place without being seen anywhere else: `placed` is the script saying it is done.
   The animation is what draws it anyway, unframed, three seconds in, when the script never
   runs — so a page whose script failed still shows its photograph rather than an empty frame.
   `visibility` rather than `opacity`, because an element nobody can see is not counted as
   moving. */
.cover-frame.framed img{ height:auto; object-fit:fill; max-width:none; visibility:hidden; animation:cover-unplaced 0s 3s forwards }
.cover-frame.framed.placed img{ visibility:visible; animation:none }
@keyframes cover-unplaced{ to{ visibility:visible } }
/* `max-width:none` because a zoomed-in framing draws the photograph wider than its frame —
   194% of it, say — and the page-wide rule holding every image to its box squeezed it back. */
/* What shows where a framed cover leaves part of its frame empty — a poster fitted to its width
   in a taller frame: the page's own colour, so the frame's edge cannot be seen. Above the
   placeholder colour each kind of card gives its frame. */
.cover-frame.framed, .cover-frame.litter-frame{ background:var(--ivory) }
/* A dog's cover frame: the catalogue's 4:5 portrait, wherever a dog's picture is drawn. A copy
   pair with the editor's cropper (`data-ratio="0.8"` in `dog_edit.html`). */
.cover-frame.dog-frame{ aspect-ratio:4/5 }
.article-cover{ margin:40px 0 0 }
.article-cover img{ cursor:zoom-in }

/* The rest of the item's photographs, under the text. Two columns and a square crop, which
   is the dog page's gallery two columns narrower: this column is 820px, and four across it
   would be thumbnails nobody can see anything in. */
.news-gallery{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:52px 0 0 }
.news-gallery figure{ margin:0; aspect-ratio:1; overflow:hidden; background:var(--surface) }
.news-gallery img{ width:100%; height:100%; object-fit:cover; cursor:zoom-in }

/* The rendered Markdown body. Every element it can produce is given a rule here, because
   what arrives is whatever an editor typed — a heading, a list and an image included — and
   an unstyled `<ul>` in the middle of this column is the tell that nobody looked. */
.prose{ margin-top:40px; font-size:18px; line-height:1.75; color:var(--ink) }
.prose > *:first-child{ margin-top:0 }
.prose p{ margin:0 0 1.1em }
.prose h2{ font-size:32px; color:var(--ink); margin:1.4em 0 .5em }
.prose h3{ font-size:25px; color:var(--ink); margin:1.3em 0 .45em }
.prose strong{ color:var(--ink); font-weight:500 }
.prose ul,.prose ol{ margin:0 0 1.1em; padding-left:1.3em }
.prose li{ margin:0 0 .4em }
.prose img{ width:100%; height:auto; margin:1.4em 0 }
.prose blockquote{ margin:1.4em 0; padding-left:26px; border-left:1px solid var(--line-strong); font-family:var(--serif); font-size:24px; font-style:italic }
.prose hr{ height:1px; background:var(--line); border:0; margin:2em 0 }
.prose a{ border-bottom:1px solid var(--accent) }

/* ---------- the photograph viewer ---------- */

.lightbox{
  position:fixed; inset:0; z-index:100;
  background:rgba(28,20,15,.90);
  cursor:zoom-out; overflow:hidden;
  /* A sideways drag is the script's, to page with; the browser keeps the pinch. */
  touch-action:pan-y pinch-zoom;
}
/* Three slides side by side — the previous photograph, the open one and the next — on a track
   that follows a finger and glides to the next slide when let go (`lightbox.js`). Each is the
   screen's size, and sized in its own terms rather than the viewport's: `100vh` on a phone is
   the height with the browser's bars hidden, taller than what is on screen. The 24px between
   them is `GAP` in the script. */
.lb-track{ position:absolute; inset:0 }
.lb-track.gliding{ transition:transform .32s cubic-bezier(.2,.7,.2,1) }
.lb-slide{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  padding-bottom:70px;
}
.lb-slide.before{ transform:translateX(calc(-100% - 24px)) }
.lb-slide.after{ transform:translateX(calc(100% + 24px)) }
.lb-slide > img{
  max-width:92%; max-height:calc(100% - 70px);
  cursor:zoom-in;
  transition:transform .25s ease;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}
.lb-slide > img.zoomed{ cursor:zoom-out; transform:scale(2.2) }
/* A video plays here at the photograph's size, with the browser's own controls. */
.lb-slide > video{
  max-width:92%; max-height:calc(100% - 70px);
  cursor:auto; background:#000;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}
.lb-close{
  position:absolute; top:24px; right:28px;
  width:46px; height:46px;
  color:var(--surface); font-size:30px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  opacity:.8;
}
.lb-close:hover{ opacity:1 }
/* Previous and next: wide targets at the edges, drawn over the photograph's margin. */
.lb-step{
  position:absolute; top:50%; transform:translateY(-50%);
  width:56px; height:96px;
  color:var(--surface); font-size:56px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  opacity:.75; z-index:1;
}
.lb-step:hover{ opacity:1 }
.lb-step[hidden]{ display:none }
.lb-prev{ left:12px }
.lb-next{ right:12px }
/* A few thumbnails under the photograph, each a jump to it. */
.lb-strip{ position:absolute; bottom:16px; left:0; right:0; display:flex; justify-content:center; gap:6px; padding:0 8px }
.lb-strip[hidden]{ display:none }
.lb-thumb{ flex:none; width:56px; height:56px; padding:0; overflow:hidden; border:2px solid transparent; opacity:.55 }
.lb-thumb:hover{ opacity:.9 }
.lb-thumb.here{ border-color:var(--surface); opacity:1 }
.lb-thumb img{ display:block; width:100%; height:100%; object-fit:cover; box-shadow:none; cursor:pointer }
@media (max-width:640px){ .lb-thumb{ width:42px; height:42px } }
@media (max-width:640px){ .lb-step{ width:40px; font-size:40px } .lb-prev{ left:2px } .lb-next{ right:2px } }

/* ---------- pedigree graph ---------- */

/* In the header row beside the view switch, so it sits above that row's hairline rather
   than reading as the graph's first line of content (`dogs.html`). */
.legend{ display:flex; gap:30px; align-items:center; font-size:14px; color:var(--ink-soft); margin:0 }
.legend i{ display:inline-block; width:26px; height:14px; border:1px solid var(--line); background:#fff; margin-right:10px; vertical-align:-2px }
.legend i.dashed{ background:transparent; border-style:dashed; border-color:var(--line-strong) }

.ped-stage{
  position:relative;
  /* **Nothing in the stage is selectable**, because every drag across it is a pan: without
     this, pulling the graph sideways swept a blue selection through every name it passed,
     and let go of it somewhere unrelated. There is nothing here worth copying — a name is
     copied from the dog's own page. */
  user-select:none; -webkit-user-select:none;
  height:74vh; min-height:620px;
  margin:20px 0 120px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, rgba(107,87,69,.14) 1px, transparent 0) 0 0/26px 26px,
    var(--surface);
  overflow:hidden;
  cursor:grab;
  touch-action:none;
}
.ped-stage.dragging{ cursor:grabbing }
/* Full screen: the stage is the element that goes, so it has to stop being a 74vh box inside
   a page and become the page. The ground and the dotted pattern come with it, because they
   are its own background rather than the wrap's. */
.ped-stage:fullscreen{ width:100vw; height:100vh; max-height:none; margin:0; border:0; border-radius:0 }
/* The same, where the browser has no Fullscreen API to ask — an iPhone has it for a video and
   nothing else (`pedigree.js`). Pinned over the page and the header both, and the page under
   it held still: a finger that reached past the graph scrolled the kennel behind it. `dvh`,
   because on a phone `vh` is the height with the address bar hidden and the bottom of the
   stage went under it. */
.ped-stage.whole{ position:fixed; inset:0; z-index:60; height:100vh; height:100dvh; min-height:0; margin:0; border:0 }
html.ped-whole, html.ped-whole body{ overflow:hidden }

/* Both layers scale from the same corner. Leaving the default origin on one of them is
   what made the cards and the connecting lines drift apart as the graph was zoomed. */
#pedCanvas,#pedLines{ position:absolute; left:0; top:0; transform-origin:0 0 }
#pedLines{ overflow:visible; pointer-events:none }

.pnode{
  position:absolute; width:300px; box-sizing:border-box; height:112px;
  background:#fff; border:1px solid var(--line);
  display:flex; gap:14px; padding:12px; align-items:center;
  transition:opacity .15s, border-color .15s;
}
.pnode.external{ background:transparent; border-style:dashed; border-color:var(--line-strong) }
.pnode.ours{ cursor:pointer }
/* Behind `hover:hover` because a phone keeps a tapped card "hovered" until the next tap lands
   somewhere else, and the lifted card then outlasted the highlight it was tapped for. */
@media (hover:hover){ .pnode.ours:hover{ border-color:var(--accent); box-shadow:0 6px 20px rgba(36,26,20,.10) } }
/* The same 4:5 crop as a card, not a circle: the stand-in is a drawn card with a wordmark
   along its bottom edge, and a circle cut the wordmark in half and the dog's ears off. The
   height is unchanged, so the node is still the 88px the layout is computed from
   (`pedigree.js`). */
.pnode .avatar{ width:50px; height:62px; flex:none; overflow:hidden; background:var(--surface); border-radius:4px }
.pnode .avatar img{ width:100%; height:100%; object-fit:cover }
/* **The whole registered name, never cut.** It is what a pedigree is read by, and clipping
   it to two lines and an ellipsis cut the one thing on the card that mattered. The card is
   sized around it instead, and what left with the ellipsis is the call name and the year —
   both on the dog's own page, one click away. */
.pnode .name{
  display:block;
  font-family:var(--serif); font-size:18px; line-height:1.22;
}
.pnode .call{ display:block; font-size:12px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-top:4px }
.pnode.external .name{ font-style:italic; color:var(--ink-soft) }

/* The year axis: its own layer under the drawing, spanning the stage rather than the graph.
   Inside the canvas a rule ended where the content ended — stopping in the middle of the
   screen while the year it named ran on — so it is positioned by the script on every pan and
   zoom instead (`drawAxis`), which is also why its labels keep their size the way a chart's
   axis does. A rule marks the *start* of its year; the band under it belongs to that year. */
.ped-years{ position:absolute; inset:0; overflow:hidden; pointer-events:none }
.ped-year{
  position:absolute; left:0; right:0; height:1px;
  background:repeating-linear-gradient(to right, var(--line-strong) 0 7px, transparent 7px 14px);
  pointer-events:none;
}
.ped-year span{
  /* Clear of the rule rather than sitting on it: on it, the digits straddled the dashes and
     the line looked like it started after the label instead of running the whole way. */
  position:absolute; bottom:7px;
  font-size:16px; letter-spacing:.14em; color:var(--ink-soft); opacity:.8;
}
/* The band for the things nobody dated is not a year, so it is not written like one. */
.ped-year.undated span{ font-size:12.5px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; opacity:.55 }

/* One mating: the sire, the dam and their puppies inside a frame with the litter's name on
   its upper edge. This is the node of the graph — a dog is drawn once per frame it takes
   part in, which is what removed every long line the old layout had to draw. */
.ped-litter{
  position:absolute;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:rgba(255,255,255,.42);
  pointer-events:none;
  transition:opacity .15s, border-color .15s;
}
/* The litter's name inside the frame rather than straddling its border. On the border it
   needed a patch of background to sit on, and that patch was a visible rectangle over the
   dotted ground — a box drawn around the name of a box. */
.ped-litter > span{
  position:absolute; left:16px; top:9px;
  font-size:12.5px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft);
}

/* `Sire:` `Dam:` `Puppies:` — the three words inside a frame, and children of it, so that
   dimming the frame dims them and lighting it brings them back. As siblings on the canvas
   they stayed at a fifth of their colour over the litter being pointed at. */
.ped-label{
  position:absolute;
  font-size:12px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft);
  pointer-events:none;
}

/* The line between one dog's own cards. Faint, because it says something weaker than a
   parent link does — "this card and that card are the same animal" — and because the strong
   answer to that question is pointing at it. */
.ped-same{ fill:none; stroke:var(--line-strong); stroke-width:2; opacity:.9; pointer-events:none }
.ped-same.external{ stroke-dasharray:4 4 }
/* The line is one of the two things worth pointing at, and a 1px stroke is not something a
   hand can hit — so an invisible fat copy of it runs underneath as the target. The lines
   layer is `pointer-events:none` as a whole; this one child turns it back on for itself. */
.ped-grab{ fill:none; stroke:transparent; stroke-width:14; pointer-events:stroke; cursor:pointer }

/* Pointing at a dog: its own cards, the matings it produced and the litter it came from stay
   lit, everything else falls back. Dimming the rest is the half that does the work — the
   highlight alone is lost in a page of identical cards. */
.ped-stage.focus .pnode,
.ped-stage.focus .ped-litter{ opacity:.2 }
.ped-stage.focus .pnode.lit{ opacity:1 }
.ped-stage.focus .ped-litter.lit{ opacity:1; border-color:var(--accent) }
.ped-stage.focus .ped-same{ opacity:.1 }
/* **Three classes, to beat the rule above it.** The dimming selector is `.focus .ped-same`
   and a plain `.ped-same.lit` loses to it on specificity, which is why the lit line stayed
   grey while its cards lit up. */
.ped-stage.focus .ped-same.lit{ stroke:var(--accent); stroke-width:3; opacity:1 }

.ped-ctl{ position:absolute; right:20px; top:20px; display:flex; flex-direction:column; gap:8px; z-index:5 }
.ped-ctl button{ width:42px; height:42px; background:#fff; border:1px solid var(--line); font-size:19px; line-height:1; display:flex; align-items:center; justify-content:center }
.ped-ctl button:hover{ border-color:var(--accent) }
/* The hint floats over a graph that scrolls under it, so it carries its own ground: without
   one it printed itself across whatever frame happened to be at the bottom of the stage. */
.ped-hint{
  position:absolute; left:22px; bottom:18px; margin:0; padding:5px 12px;
  background:rgba(243,236,225,.92); border-radius:20px;
  font-size:13.5px; color:var(--ink-soft); z-index:5; pointer-events:none;
  transition:opacity .3s;
}
/* Two hints, one shown: a phone has no wheel to scroll and nothing to hover, and was told to
   use both. Which one is decided by what the device can do rather than how wide it is — a
   narrow desktop window still has a mouse. Gone after the first touch: on a phone it covers a
   real share of the stage, and by then it has been read. */
.ped-hint-touch{ display:none }
@media (hover:none) and (pointer:coarse){
  .ped-hint-mouse{ display:none }
  .ped-hint-touch{ display:block }
}
.ped-stage.touched .ped-hint{ opacity:0 }
/* A phone: a shorter stage, so that there is always page above or below it to scroll by — every
   touch on the stage is the graph's, and at 620px it was the whole screen and the page could
   not be left. The controls and the hint move in to the edges they would otherwise crowd. */
@media (max-width:640px){
  .ped-stage{ height:62vh; min-height:400px; margin:16px 0 72px }
  .ped-ctl{ right:10px; top:10px }
  .ped-hint{ left:10px; right:10px; bottom:10px; font-size:12.5px; border-radius:14px }
}

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

/* `margin-top:auto` is what puts it at the bottom of a short page — the body is a flex
   column for this one rule (see `body` above). */
footer{ margin-top:auto; border-top:1px solid var(--line); background:var(--surface) }
.foot{ max-width:1500px; margin:0 auto; padding:64px 50px; display:flex; gap:50px; font-size:15px; color:var(--ink-soft) }
.foot .mark{ flex-shrink:0 }
.foot .mark-name{ font-size:28px }
/* The contacts run across the footer the way they run across the front page, rather than
   stacking in the right-hand corner: a few short lines against one wordmark left the widest
   band on the page mostly empty, and these are the same facts `#contacts` prints.
   **Three to a row, in columns.** Five do not fit beside the wordmark on a laptop, and a
   wrapping flex row left the fifth alone under the fourth; a grid makes the second row look
   meant. The wordmark does not shrink, or its tagline is what gives way. */
.foot-right{ margin-left:auto; display:grid; grid-template-columns:repeat(3, auto); justify-content:end; gap:18px 58px }
.foot-line{ text-align:left; line-height:1.45 }
a.foot-line:hover .foot-value{ color:var(--accent) }
.foot-kind{ display:block; font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase }
.foot-value{ display:block; font-family:var(--serif); font-size:22px; color:var(--ink); transition:color .2s }

/* ---------- tabs: the Puppies page's two, and the Advice page's topics ---------- */

/* **In the menu's own style**, centred under the bar: the same small capitals, the same soft
   brown, and the chosen one marked by the accent rule under the word rather than by a filled
   button (`templates/_puppy_tabs.html`, `templates/advice.html`). They are a second row of the
   same navigation — which part of this page — so they read as one. */
.tabs{
  display:flex; flex-wrap:wrap; justify-content:center; gap:14px 38px; padding:40px 0 0;
  font-size:15px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft);
}
.tabs a{ padding-bottom:3px; border-bottom:1px solid transparent; transition:border-color .2s }
.tabs a:hover{ border-bottom-color:var(--line-strong) }
.tabs a.on{ border-bottom-color:var(--accent) }

/* ---------- one litter's page ---------- */

/* Laid out like a dog's page (`templates/litter.html`): the `.dog` grid, with the litter's
   covers where a dog has its portrait: **one under the other, each in the same fixed frame**,
   by the kennel's choice — a size that does not depend on how many puppies are beside them or
   on the posters' own shapes. What shows in each frame is chosen in the editor, and the whole
   poster opens at full size. */
.litter-covers{ display:flex; flex-direction:column; gap:16px }
/* A fixed 4:3 frame, as on the card: the picture in it is framed in the editor, so the page is
   the same size whatever the posters' own shapes. A copy pair with the editor's `.litter-frame`
   and the `data-ratio` its chooser reads. */
.cover-frame.litter-frame{ aspect-ratio:4/3; margin:0 }
.litter-covers img{ cursor:zoom-in }
.litter-head h1{ font-size:56px; line-height:1.14 }
.litter-date{ margin:10px 0 0; font-size:14px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft) }
.litter-sub{ margin:44px 0 0; padding-bottom:14px; border-bottom:1px solid var(--line); font-family:var(--sans); font-size:14px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft) }
/* The puppies as a short list: a small 4:5 picture, the name, and the sex and country at the
   right — the catalogue's row at half its size, so a litter of twelve fits beside its covers. */
.litter-pups{ list-style:none; margin:0; padding:0 }
.litter-pups a{ display:flex; align-items:center; gap:16px; padding:8px 4px; border-bottom:1px solid var(--line) }
.litter-pups a:hover{ background:rgba(139,94,60,.045) }
.litter-pup-photo{ width:44px; flex:none }
.litter-pup-name{ font-family:var(--serif); font-size:20px; line-height:1.2; min-width:0 }
.litter-pup-st{ margin-left:auto; padding-left:12px; text-align:right; font-size:12px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); white-space:nowrap }

/* ---------- advice ---------- */

/* The chosen topic's leaflet, page under page in a column a printed page reads well at, each
   on white with a hairline round it (`templates/advice.html`). */
.leaflet{ max-width:900px; margin:0 auto; padding:40px 0 130px; text-align:center }
.leaflet-lang{ margin:0 0 18px; font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft) }
.leaflet-file + .leaflet-file{ margin-top:56px }
.leaflet-file h2{ font-size:32px; margin:0 0 22px }
.leaflet-page{ width:100%; height:auto; margin:0 0 18px; background:#fff; border:1px solid var(--line) }
/* The leaflet as text: the article's prose, set narrower and left-aligned under the centred
   tabs, with the document's own headings in the display face and its pictures at the column's
   width. */
.leaflet-text{ max-width:760px; margin:0 auto; text-align:left; font-size:18px; line-height:1.75; color:var(--ink) }
.leaflet-text h3{ font-size:34px; line-height:1.2; margin:1.2em 0 .5em }
.leaflet-text h4{ font-family:var(--serif); font-weight:400; font-size:26px; line-height:1.25; margin:1.2em 0 .4em }
.leaflet-text > :first-child{ margin-top:0 }
.leaflet-text p{ margin:0 0 1em }
.leaflet-text ul, .leaflet-text ol{ margin:0 0 1em; padding-left:1.3em }
.leaflet-text li{ margin:0 0 .35em }
.leaflet-text strong{ font-weight:500 }
.leaflet-text img{ display:block; max-width:100%; height:auto; margin:1.4em auto }
.leaflet-text a{ color:var(--accent); border-bottom:1px solid var(--line-strong) }
.leaflet-text table{ width:100%; border-collapse:collapse; margin:0 0 1.2em; font-size:16px }
.leaflet-text th, .leaflet-text td{ padding:8px 10px; border:1px solid var(--line); vertical-align:top }

/* ---------- narrow screens ---------- */

@media (max-width:1000px){
  /* The bar on a phone: the wordmark, smaller, and the menu button — nothing else fits beside
     a name that was 476px of a 375px screen with the language switcher pushed off its edge.
     The bar is the positioning context the menu's panel drops from. */
  .hdr-in{ padding:0 24px; gap:16px; height:74px; position:relative }
  .nav{ display:none }
  .lang{ display:none }
  .menu{ display:block; margin-left:auto }
  .mark-name{ font-size:28px }
  .mark-sub{ letter-spacing:.08em; padding-left:2px }
  /* The litter's frame, new with it: its desk padding would leave a phone's photograph a
     third narrower than the screen. */
  .litter-head h1{ font-size:38px }
  .wrap{ padding:0 24px }
  .foot{ padding:44px 24px; flex-direction:column; gap:28px }
  .foot-right{ margin-left:0; display:flex; flex-wrap:wrap; justify-content:flex-start; gap:16px 34px }
  .empty-lead{ padding:34px 0 90px }
  .empty-lead img{ width:190px }
  .not-found{ padding:30px 0 56px }
  .not-found img{ width:auto; height:clamp(130px, calc(100vh - 560px), 260px) }
  .not-found p:first-of-type{ font-size:26px }
  .grid{ grid-template-columns:repeat(2,1fr); gap:40px 22px }
  .row{ gap:20px; align-items:flex-start; flex-wrap:wrap }
  .row figure{ width:78px }
  .row .news-thumb{ width:120px }
  .row h2{ font-size:22px }
  .row .st{ margin:10px 0 0; padding-left:0; width:100%; text-align:left }
  .dog{ grid-template-columns:1fr; gap:40px }
  .home-copy h1{ font-size:50px }
  .lede{ font-size:23px }
  .group{ margin-top:24px; gap:16px }
  .views{ margin-left:auto }
  .gal-grid{ grid-template-columns:repeat(2,1fr) }
  /* The index stops being a column and becomes what is under the article: at this width a
     262px rail leaves the prose too narrow to read, and the article is what was asked for. */
  .news-page{ grid-template-columns:1fr; gap:44px; padding:24px 0 90px }
  /* The photograph goes back beside the headline here. Below the article the index is a
     tail of "more to read", and ten covers at the full width of a phone is a tail longer
     than the article — the stack is what makes an entry land in a 300px rail, not a rule
     about the entry. */
  .news-index a{ display:flex; align-items:flex-start; gap:14px }
  .news-thumb{ flex:none; width:128px; margin:0 }
  /* Below the article it is part of the page again, so it neither sticks nor scrolls. */
  .news-index{ position:static; order:2; border-right:0; border-top:1px solid var(--line); padding:26px 0 0; max-height:none; overflow:visible }
  .article h1{ font-size:38px }
  .article-cover{ margin-top:30px }
  .news-gallery{ gap:10px; margin-top:36px }
  .cts{ gap:40px }
  .facts div{ flex-direction:column; gap:4px }
  .facts dt{ width:auto }
}

/* "Show more" under a dog's photographs: centred, as the tabs above them are. */
.gallery-more{ text-align:center; margin:0 }
.gal-grid figure{ scroll-margin-top:110px }

/* ---------- puppy collar ---------- */
/* The band a dog wore in its litter: a dot of its shade, the size of a letter, with a hairline
   so white and yellow still read on the page's ivory. */
.collar-dot{ display:inline-block; width:.72em; height:.72em; margin-right:.45em; vertical-align:baseline; flex:none }
.collar-dot circle{ stroke:rgba(40,28,20,.28); stroke-width:.8 }
.litter-pup-name .collar-dot{ width:.6em; height:.6em }
.card h2 .collar-dot, .row h2 .collar-dot{ width:.5em; height:.5em; margin-right:.35em }
