/* From the design preview, preview/links.css (tools/theme-sync.mjs). */
/* Links (8 October, Jin Hao). No underline and no arrow, which made every link look like one; the
   type sets links apart instead. On hover or keyboard focus a breeze passes along the label: each
   letter sways from its base like a flower on its stem and settles, one after another, and a link
   of its own grows a small floret beside the word. Lovento's own movement, from the gardens in its
   stories. link-breeze.js splits the labels and marks each link data-link="ui", "inline",
   "button" or "keep".
   - ui: a link on its own (the header, footer, breadcrumbs, story links, "see more" links):
     uppercase, widely spaced, a little bolder; the floret.
   - inline: a link inside a sentence: the site's italic serif in the accent colour.
   - button and keep (buttons, the large italic menu, the hero captions, the shop's chips, the
     footer's pills, titles such as the bag's product names): their own type, with the breeze.
   Loaded after the tracks' own sheets (only site.css follows), so these rules settle their links. */

/* ---- No arrows on links or link-like buttons. link-breeze.js takes them out of labels; this also
   hides them where a link holds more than a label (cards, 3D hotspots). The 3D garden's round
   badges keep theirs: they are badges, not links. ---- */
:is(a, button) lv-icon[name="arrow"]:not(.review-pot-action lv-icon) { display: none; }

/* ---- No underlines ---- */
.text-link, .postcard-occasions a, .review-story-source, .review-card-more, .review-polaroid-copy button { border-bottom: 0; text-decoration: none; padding-bottom: 0; }
.breadcrumb-back:hover { text-decoration: none; }

/* ---- The type marks links ---- */
body[data-direction] a[href][data-link="ui"], body[data-direction] button[data-link="ui"] { text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
/* Filled selections keep the text colour set by their own styles. */
body[data-direction] a[href][data-link="ui"]:is(:hover, :focus-visible):not(:where(.faq-topic.active, .account-nav a[aria-current="page"], .email-widths a[aria-current="true"])),
body[data-direction] button[data-link="ui"]:is(:hover, :focus-visible) { color: var(--accent); }
body[data-direction] a[href][data-link="ui"].text-link { font-size: 12px; }
body[data-direction] a[href][data-link="inline"] { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.12em; letter-spacing: 0; color: var(--accent); }
body[data-direction] .header nav a[data-link="ui"] { font-size: 12.5px; }
body[data-direction] footer.site-footer .footer-col a[data-link="ui"] { font-size: 11px; letter-spacing: .1em; padding: 6px 0; }
body[data-direction] .faq-topic[data-link="ui"], body[data-direction] .account-nav a[data-link="ui"] { font-size: 11.5px; }
body[data-direction] .breadcrumbs { text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; }
body[data-direction] .breadcrumbs a[data-link="ui"] { letter-spacing: inherit; }
body[data-direction] :is(.review-card-more, .review-polaroid-copy button, .review-card-open, .review-story-picker button)[data-link="ui"] { font-size: 11px; }

/* ---- The breeze: each letter sways from its base like a stem, swings back past upright and
   settles, one letter after the next (--i is its place in the label, set per letter). ---- */
lv-word { white-space: nowrap; }
lv-letter { display: inline-block; transform-origin: 50% 88%; }
@keyframes lv-breeze {
  0% { transform: none; }
  24% { transform: translateY(-.2em) rotate(-13deg); }
  52% { transform: translateY(.02em) rotate(6deg); }
  76% { transform: rotate(-2deg); }
  100% { transform: none; }
}
:is(a, button):is(:hover, :focus-visible) lv-letter { animation: lv-breeze .9s ease-in-out both; animation-delay: calc(var(--i, 0) * 34ms); }

/* ---- The floret: five round petals that turn open just after the word's last letter, then a pale
   eye at their centre. A zero-width mark inside the last word, so it follows the text wherever the
   line ends; in the link's own colour. Only where a pointer hovers, and not on the pill-shaped
   links or between breadcrumbs, where it would crowd. ---- */
lv-bloom { display: inline-block; position: relative; width: 0; height: 1em; vertical-align: -.14em; }
@media (hover: none) { lv-bloom { display: none; } }
:is(.breadcrumbs a, .faq-topic, .account-nav a) lv-bloom { display: none; }
lv-bloom::before, lv-bloom::after { content: ''; position: absolute; opacity: 0; pointer-events: none; }
lv-bloom::before {
  left: .34em; top: .1em; width: .8em; height: .8em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(72 10 10)'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(144 10 10)'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(216 10 10)'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(288 10 10)'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(72 10 10)'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(144 10 10)'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(216 10 10)'/%3E%3Cellipse cx='10' cy='5.2' rx='3.4' ry='4' transform='rotate(288 10 10)'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(.2) rotate(-72deg); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}
lv-bloom::after {
  left: .62em; top: .38em; width: .24em; height: .24em; border-radius: 50%; background: color-mix(in srgb, currentColor 22%, #fff);
  transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}
:is(a, button):is(:hover, :focus-visible) lv-bloom::before { opacity: 1; transform: none; transition-delay: .05s; }
:is(a, button):is(:hover, :focus-visible) lv-bloom::after { opacity: 1; transform: none; transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  :is(a, button):is(:hover, :focus-visible) lv-letter { animation: none; }
  lv-bloom::before, lv-bloom::after { transform: none; transition: opacity .2s ease; }
  :is(a, button):is(:hover, :focus-visible) lv-bloom::after { transition-delay: 0s; }
}

/* ---- The header's links ----
   Track 07 (and Track 10, in its design): the links take a centred row of their own where the logo,
   links and tools no longer fit side by side (1100px). Selectors are as specific as the track's own
   header rules (headers.css, soft-round.css), which this sheet follows. (06's portrait row and 09's
   ribbon groups beside the logo went with those tracks on 27 October.) */
@media (max-width: 1100px) {
  body:is([data-direction="gardenpostcard"]) .header { flex-wrap: wrap; }
  body:is([data-direction="gardenpostcard"]) .header nav { order: 3; flex: 1 0 100%; justify-content: center; flex-wrap: wrap; column-gap: 26px; row-gap: 0; }
  body[data-direction] .header nav a[data-link="ui"] { font-size: 12px; }
}
@media (max-width: 700px) {
  body:is([data-direction="gardenpostcard"]) .header nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 8px 0; width: 100%; }
  body[data-direction][data-floral="true"] .header nav a { padding-top: 4px; }
  body[data-direction] .header nav a[data-link="ui"] { font-size: 10.5px; letter-spacing: .1em; }
  body[data-direction] a[href][data-link="ui"].text-link { font-size: 11.5px; }
}
@media (max-width: 370px) {
  body[data-direction] .header nav a[data-link="ui"] { font-size: 10px; letter-spacing: .08em; }
}
