/* Viviano Flower Shop: shared stylesheet. Phone first, wider screens added in em, written in the order the page is read. */

/* The real things: colours, faces and measures. Page stylesheets use these names, never new hex values. */
:root {
  --raspberry: #900444;
  --enclosure-white: #FFFFFF;
  --sunflower: #FFD43B;
  --blackberry: #300F23;
  --sign-face: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --slip-face: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --read-size: 1rem;
  --small-size: 0.9375rem;
  --say-size: 1.5rem;
  --first-size: 1.5625rem;
  --read-wide: 55ch;
  --bar-thick: 0.5625rem;
  --bar-long: 3.5rem;
  --first-inset: 1rem;
  --tread-deep: 0.25rem;
  --photo-shift: 0.25rem;
  --right-keep: 1rem;
  --block-air: clamp(2.5rem, 8vh, 5.5rem);
  --slow-ease: 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --ribbon-tall: 0rem;
}
@media (min-width: 48em) {
  :root {
    --read-size: 1.0625rem;
    --say-size: 1.75rem;
    --first-size: 2rem;
    --first-inset: 5vw;
    --tread-deep: 4vw;
    --photo-shift: 4vw;
    --right-keep: 4vw;
  }
}

/* Ground: raspberry everywhere, white DM Mono for reading. No neutral sections. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  padding-bottom: var(--ribbon-tall);
  background: var(--raspberry);
  color: var(--enclosure-white);
  font-family: var(--slip-face);
  font-size: var(--read-size);
  line-height: 1.65;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Links: plain text with a sunflower underline; no borders, no boxes. Bare <a> in copy needs no class. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sunflower);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.24em;
}
a:hover { color: var(--sunflower); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 0.1875rem solid var(--sunflower);
  outline-offset: 0.1875rem;
}

/* Skip link: .vis-jump, shown only when focused. */
.vis-jump {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--sunflower);
  color: var(--blackberry);
  transform: translateY(-110%);
}
.vis-jump:focus { transform: none; outline-color: var(--blackberry); }

/* Hidden from sight, kept for screen readers: .vis-unseen. */
.vis-unseen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Top of every page: .vis-top holds the linked name (.vis-name with .vis-emblem) above the sentence band (.vis-band). */
.vis-top { padding: 0.5rem var(--right-keep) 0 var(--first-inset); }
.vis-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
}
.vis-emblem { flex: none; width: 1.75rem; height: 1.75rem; }
.vis-band {
  padding: 0.15rem 0 0.4rem;
  background: var(--raspberry);
  font-size: var(--small-size);
  line-height: 2.75;
}
.vis-band p { max-width: 62rem; }
.vis-band a { padding-block: 0.5em; }
.vis-band a[aria-current="page"] { color: var(--sunflower); }
@media (min-width: 48em) {
  .vis-top { padding-top: 0.75rem; }
  .vis-band { padding: 0.35rem 0 0.75rem; line-height: 1.8; }
  .vis-band a { padding-block: 0.3em; }
}

/* Staircase block: <section class="vis-stair" data-tread="0"> to data-tread="6"; each tread sits one step deeper, never centred. */
.vis-stair {
  margin: var(--block-air) var(--right-keep) 0 calc(var(--first-inset) + var(--tread, 0) * var(--tread-deep));
}
.vis-stair[data-tread="1"] { --tread: 1; }
.vis-stair[data-tread="2"] { --tread: 2; }
.vis-stair[data-tread="3"] { --tread: 3; }
.vis-stair[data-tread="4"] { --tread: 4; }
.vis-stair[data-tread="5"] { --tread: 5; }
.vis-stair[data-tread="6"] { --tread: 6; }
.vis-top + main > .vis-stair:first-child { margin-top: clamp(1.5rem, 4vh, 2.5rem); }

/* The rule: <span class="vis-bar"></span>, exactly one at the start of each block. It is the only divider on the site. */
.vis-bar {
  display: block;
  width: var(--bar-long);
  height: var(--bar-thick);
  margin-bottom: 1.1rem;
  background: var(--sunflower);
}

/* Headings: .vis-say is a full sentence with a period; wrap its first one to three words in <strong>. Add .vis-say-first on the h1. */
.vis-say {
  max-width: 30em;
  font-family: var(--sign-face);
  font-size: var(--say-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.vis-say strong { font-weight: 700; }
.vis-say-first { font-size: var(--first-size); line-height: 1.22; }
h3.vis-say { font-size: 1.5rem; }

/* Reading text: .vis-read on a paragraph or a wrapper of paragraphs, held to 55 characters a line. */
.vis-read { max-width: var(--read-wide); }
.vis-read p + p, p.vis-read + p.vis-read { margin-top: 1em; }
.vis-say + .vis-read, .vis-say + p { margin-top: 0.9rem; }

/* In-copy action: .vis-action on a link or a button, sunflower words with a thick underline and a 44px hit area. */
.vis-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sunflower);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.26em;
  cursor: pointer;
}
.vis-action:hover { color: var(--enclosure-white); }

/* A line of ways onward: <ul class="vis-ways"> of links or .vis-action items; use it to close the last block of a page. */
.vis-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-top: 1rem;
}
.vis-ways a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Photograph and its caption: <figure class="vis-photo"><img><figcaption class="vis-trace">; plain rectangle, one step right of its text. */
.vis-photo { margin-top: 1.5rem; margin-left: var(--photo-shift); }
.vis-photo img, .vis-photo video { width: 100%; object-fit: cover; }
.vis-trace {
  max-width: var(--read-wide);
  margin-top: 0.6rem;
  font-size: var(--small-size);
  line-height: 1.5;
}

/* Text with its photograph beside and a little below: .vis-beside wraps one text child and one .vis-photo. */
.vis-beside { display: grid; gap: 0; }
@media (min-width: 56em) {
  .vis-beside {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    column-gap: var(--photo-shift);
    align-items: start;
  }
  .vis-beside > .vis-photo { margin: 3.5rem 0 0; }
}

/* Page opening: add .vis-answer to the first .vis-stair; h1.vis-say.vis-say-first, the short answer in .vis-read, then a .vis-photo kept inside the first window. */
.vis-answer .vis-photo img { aspect-ratio: 16 / 9; max-height: 52vh; }
@media (min-width: 56em) {
  .vis-answer .vis-photo img { aspect-ratio: 4 / 3; max-height: 56vh; }
}

/* The device: .vis-enclosure is the blank white enclosure card, askew; text inside is a suggested line. Sizes: .vis-enclosure-small, .vis-enclosure-wide. */
.vis-enclosure {
  display: flex;
  align-items: flex-end;
  width: 11rem;
  max-width: 100%;
  aspect-ratio: 7 / 5;
  margin-block: 0.75rem 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--enclosure-white);
  color: var(--blackberry);
  font-size: var(--small-size);
  line-height: 1.45;
  transform: rotate(-3deg);
  transform-origin: 20% 80%;
  transition: transform var(--slow-ease);
}
.vis-enclosure a { text-decoration-color: var(--blackberry); }
.vis-enclosure a:hover { color: var(--raspberry); }
.vis-enclosure-small { width: 4.5rem; margin-block: 0.25rem 1rem; padding: 0; }
.vis-enclosure-wide { width: min(100%, 22rem); padding: 1.25rem 1.4rem; }
.vis-enclosure[data-state="waiting"] { transform: rotate(0deg) translateY(-0.5rem); }

/* Order-slip facts: <dl class="vis-slip"> of dt/dd pairs, sunflower terms, no rules between rows. */
.vis-slip {
  display: grid;
  gap: 0.1rem 1.75rem;
  max-width: 46rem;
  font-size: var(--small-size);
  line-height: 1.55;
}
.vis-slip dt { color: var(--sunflower); }
.vis-slip dd { margin-bottom: 0.7rem; }
@media (min-width: 36em) {
  .vis-slip { grid-template-columns: max-content minmax(0, 1fr); row-gap: 0.6rem; }
  .vis-slip dd { margin-bottom: 0; }
}

/* Sideways box: .vis-sideways lets a ruler or a strip scroll inside itself on phones; the script makes it keyboard-reachable. */
.vis-sideways {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.75rem;
  scrollbar-color: var(--sunflower) var(--raspberry);
}

/* Slow arrival for an occasional picture: add .vis-arrive; the script holds it only if it starts below the window. */
.vis-arrive { transition: opacity var(--slow-ease), transform var(--slow-ease); }
.vis-arrive[data-state="waiting"] { opacity: 0; transform: translateX(-1.25rem); }

/* Foot of every page: .vis-end holds the parting sentence (.vis-parting, .vis-fine) and the sunflower index card (.vis-ruled, .vis-tab, .vis-rules). */
.vis-end {
  display: grid;
  gap: 2.5rem;
  margin-top: var(--block-air);
  padding: 1rem var(--right-keep) 3.5rem var(--first-inset);
  overflow: hidden;
}
.vis-parting .vis-read { margin-top: 0.9rem; }
.vis-fine { margin-top: 1.25rem; font-size: var(--small-size); }
.vis-ruled {
  justify-self: end;
  width: min(100% - 0.75rem, 31rem);
  margin-top: 0.75rem;
  color: var(--blackberry);
  transform: rotate(1deg);
}
.vis-tab {
  display: block;
  width: max-content;
  margin-left: 1.25rem;
  padding: 0.35rem 1rem 0.15rem;
  background: var(--sunflower);
  font-family: var(--sign-face);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.vis-rules {
  padding: 0.4rem 1.1rem 1.5rem;
  background: var(--sunflower);
  font-size: var(--small-size);
  line-height: 1.5;
}
.vis-rules li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  min-height: 2.75rem;
  padding: 0.3rem 0;
  border-bottom: 0.0625rem solid var(--blackberry);
}
.vis-rules a, .vis-rules button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blackberry);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--blackberry);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.24em;
  cursor: pointer;
}
.vis-rules a:hover, .vis-rules button:hover { color: var(--raspberry); }
.vis-rules a:focus-visible, .vis-rules button:focus-visible { outline-color: var(--blackberry); }
@media (min-width: 56em) {
  .vis-end {
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
    column-gap: 4vw;
    align-items: end;
    padding-bottom: 5rem;
  }
  .vis-ruled { width: 100%; margin-right: 3vw; transform: rotate(3deg); }
}

/* Offer ribbon: #flag rests off the left edge and eases in along the bottom when the build adds .is-in; close with .vis-put-away. */
#flag {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.25rem 0.45rem 1rem;
  background: var(--sunflower);
  color: var(--blackberry);
  font-size: var(--small-size);
  line-height: 1.35;
  transform: translateX(-102%);
  opacity: 0;
  transition: transform var(--slow-ease), opacity var(--slow-ease);
}
#flag.is-in { transform: none; opacity: 1; }
#flag p { flex: 1 1 auto; }
#flag a { text-decoration-color: var(--blackberry); white-space: nowrap; }
#flag a:hover { color: var(--raspberry); }
#flag a:focus-visible, .vis-put-away:focus-visible { outline-color: var(--blackberry); }
.vis-put-away {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blackberry);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 48em) {
  #flag {
    right: auto;
    max-width: 40rem;
    padding: 0.6rem 1.75rem 0.6rem var(--first-inset);
    clip-path: polygon(0 0, 100% 0, calc(100% - 0.9rem) 50%, 100% 100%, 0 100%);
  }
}
/* On a phone there is no room for both notices under the opening photograph: while the cookie
   plate is open the ribbon keeps resting off the left edge, and eases in once the choice is made. */
@media (max-width: 47.99em) {
  html:has(#agree:not([hidden])) #flag.is-in {
    transform: translateX(-102%);
    opacity: 0;
    visibility: hidden;
  }
}

/* Cookie choice: #agree is a solid white plate with two equal .vis-pill buttons.
   On a phone it is a compact oval hugging the lower right corner, so the words and the picture
   above it stay readable; on wider screens it becomes a large oval above the ribbon. */
#agree {
  position: fixed;
  left: auto;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  padding: 0.5rem 0.85rem 0.6rem;
  border-radius: 1.75rem;
  background: var(--enclosure-white);
  color: var(--blackberry);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
}
#agree p { flex: 1 1 11rem; }
#agree a { text-decoration-color: var(--blackberry); }
#agree a:hover { color: var(--raspberry); }
.vis-pill {
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 99rem;
  background: var(--blackberry);
  color: var(--enclosure-white);
  font: inherit;
  cursor: pointer;
}
.vis-pill:hover { background: var(--raspberry); }
#agree a:focus-visible, .vis-pill:focus-visible { outline-color: var(--raspberry); }
/* A browser that cannot hold the ribbon back stacks the plate above it instead, with a gap. */
@supports not selector(:has(*)) {
  #agree { bottom: calc(var(--ribbon-tall) + 1rem); }
}
@media (min-width: 48em) {
  #agree {
    left: auto;
    right: 1.25rem;
    bottom: calc(var(--ribbon-tall) + 1rem);
    width: 27rem;
    max-width: none;
    gap: 0.4rem;
    padding: 2.3rem 3.25rem;
    border-radius: 50%;
    line-height: 1.4;
    text-align: center;
  }
  #agree p { flex: 1 1 100%; }
  .vis-pill { padding: 0 0.7rem; }
}
@media (min-width: 70em) {
  #agree { bottom: 1.25rem; }
}

/* Reduced motion: everything appears in place. */
@media (prefers-reduced-motion: reduce) {
  #flag, .vis-arrive, .vis-enclosure { transition: none; }
  .vis-arrive[data-state="waiting"] { opacity: 1; transform: none; }
  .vis-enclosure[data-state="waiting"] { transform: rotate(-3deg); }
  html { scroll-behavior: auto; }
}

header a,header button,nav a,nav button{position:relative;z-index:2}
@media screen and (min-width: 1921px) {
  html { font-size: calc(100vw / 120); }
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html, body { overflow-x: clip; }
