/* src/styles/brand.css */
/* Lord Rose — colors drawn from the hero photo (gold leaf + diamond), on warm ivory. */
:root {
  --lr-ink: #1c1b19;
  --lr-ivory: #fbf8f2;
  --lr-paper: #ffffff;
  --lr-gold: #8a6420;        /* deep gold — text and lines on ivory */
  --lr-honey: #c69d50;       /* light gold — accents */
  --lr-muted: #6b665e;
  --lr-hair: #e6e1d8;
  --lr-display: var(--font-display), "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --lr-body: var(--font-body), "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lr-gutter: max(16px, env(safe-area-inset-left, 0px));
  --motion-gold: var(--lr-honey);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--lr-ivory); }
body { margin: 0; background: var(--lr-ivory); color: var(--lr-ink); font-family: var(--lr-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--lr-display); font-weight: 400; line-height: 1.15; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lr-honey); outline-offset: 3px; }

.lr-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--lr-gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lr-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lr-gold); margin: 0; }
.lr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid currentColor; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.lr-btn--light { color: #fff; }
.lr-btn--light:hover { background: #fff; color: var(--lr-ink); }
.lr-btn--dark { color: var(--lr-ink); }
.lr-btn--dark:hover { background: var(--lr-ink); color: var(--lr-ivory); }
.lr-link { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Header */
.lr-header { position: relative; z-index: 20; border-bottom: 1px solid var(--lr-hair); background: var(--lr-ivory); }
.lr-header--overlay { position: absolute; inset: 0 0 auto; background: transparent; border-color: transparent; color: #fff; }
.lr-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-top: env(safe-area-inset-top, 0px); }
.lr-header__mark { font-family: var(--lr-display); font-size: 22px; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; }
.lr-header--overlay .lr-header__mark { visibility: hidden; } /* the hero shows the name */
.lr-nav { display: flex; gap: 22px; align-items: center; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.lr-nav a { text-decoration: none; }
.lr-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.lr-bagcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: currentColor; font-size: 11px; letter-spacing: 0; }
.lr-bagcount span { color: var(--lr-ivory); }
.lr-header--overlay .lr-bagcount span { color: var(--lr-gold); }

/* Hero */
.lr-hero { position: relative; height: min(100svh, 1100px); min-height: 560px; overflow: hidden; color: #fff; background: #845b1b; }
.lr-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; animation: lr-hero-in 2.4s cubic-bezier(.2,.7,.2,1) both; }
.lr-hero__top { position: absolute; inset: 15% 0 auto; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 24px; animation: lr-rise 1.2s .3s cubic-bezier(.2,.7,.2,1) both; }
.lr-hero__mark { margin: 0; font-size: clamp(40px, 8vw, 92px); letter-spacing: 0.32em; padding-left: 0.32em; text-transform: uppercase; text-shadow: 0 1px 24px rgba(60, 38, 8, .35); }
.lr-hero__tagline { margin: 0; font-family: var(--lr-display); font-style: italic; font-size: clamp(18px, 2.4vw, 26px); text-shadow: 0 1px 18px rgba(60, 38, 8, .4); }
.lr-hero__bottom { position: absolute; inset: auto 0 9%; display: grid; justify-items: center; gap: 22px; animation: lr-rise 1.2s .7s cubic-bezier(.2,.7,.2,1) both; }
.lr-hero__scroll { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: .85; }
@keyframes lr-hero-in { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes lr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Moving band */
.lr-band { overflow: hidden; border-bottom: 1px solid var(--lr-hair); background: var(--lr-ivory); }
.lr-band__track { display: flex; width: max-content; animation: lr-marquee 40s linear infinite; }
.lr-band__item { display: flex; align-items: center; gap: 28px; padding: 16px 14px; font-family: var(--lr-display); font-style: italic; font-size: 20px; color: var(--lr-gold); white-space: nowrap; }
.lr-band__item::after { content: "✦"; font-style: normal; font-size: 10px; color: var(--lr-honey); }
@keyframes lr-marquee { to { transform: translateX(-50%); } }

/* Sections */
.lr-section { padding-block: clamp(56px, 9vw, 112px); }
.lr-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.lr-section__head h2 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 44px); }

/* Product grid & card */
.lr-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.lr-card { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.lr-card__img { aspect-ratio: 4 / 5; background: #efe8db; overflow: hidden; display: grid; place-items: center; color: var(--lr-muted); font-size: 13px; }
.lr-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.lr-card:hover .lr-card__img img { transform: scale(1.04); }
.lr-card__cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lr-gold); }
.lr-card__name { font-family: var(--lr-display); font-size: 22px; line-height: 1.2; }
.lr-card__price { font-size: 14px; color: var(--lr-muted); font-variant-numeric: tabular-nums; }
.lr-empty { color: var(--lr-muted); }
.lr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.lr-chip { padding: 8px 16px; border: 1px solid var(--lr-hair); border-radius: 999px; font-size: 13px; letter-spacing: 0.08em; text-decoration: none; }
.lr-chip[aria-current="page"] { background: var(--lr-ink); border-color: var(--lr-ink); color: var(--lr-ivory); }

/* About teaser + About page */
.lr-split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; }
.lr-split__img { aspect-ratio: 4 / 5; background: #845b1b url("/images/brand/hero.jpg") 46% 62% / 260% no-repeat; }
.lr-split__body { display: grid; gap: 18px; max-width: 34rem; }
.lr-split__body h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.lr-prose p { margin: 0 0 1.1em; font-size: 17px; max-width: 65ch; }
.lr-about-hero { height: clamp(220px, 34vw, 420px); background: #845b1b url("/images/brand/hero.jpg") 50% 50% / cover no-repeat; }
.lr-signature { font-family: var(--lr-display); font-style: italic; font-size: 24px; margin: 8px 0 0; }

/* Footer */
.lr-footer { border-top: 1px solid var(--lr-hair); padding-block: 48px; font-size: 14px; color: var(--lr-muted); }
.lr-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.lr-footer h3 { font-family: var(--lr-body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lr-ink); margin: 0 0 12px; font-weight: 500; }
.lr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lr-footer a { text-decoration: none; }
.lr-footer a:hover { color: var(--lr-ink); }
.lr-footer__mark { font-family: var(--lr-display); font-size: 22px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--lr-ink); margin: 0 0 8px; }
.lr-footer__legal { margin-top: 40px; font-size: 12px; }

@media (max-width: 560px) {
  .lr-nav { gap: 14px; font-size: 12px; }
  .lr-header__mark { font-size: 18px; letter-spacing: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  .lr-band__track { animation: none; }
}

/* src/styles/motion.css */
/* Checkout animations. Tweak timings and the gold accent here. */
:root {
  --motion-gold: #b08d57;
  --motion-ink: #1c1b19;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes motion-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes motion-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes motion-scale-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes motion-spin { to { transform: rotate(360deg); } }
@keyframes motion-pop { 0% { opacity: 0; transform: scale(0.85); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: none; } }
@keyframes motion-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
@keyframes motion-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes motion-draw { to { stroke-dashoffset: 0; } }
@keyframes motion-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes motion-fill { from { width: var(--from, 0%); } to { width: var(--to, 0%); } }

.motion-fade-up { animation: motion-fade-up 0.4s var(--motion-ease) both; }
.motion-fade-in { animation: motion-fade-in 0.25s ease both; }
.motion-scale-in { animation: motion-scale-in 0.3s var(--motion-ease) both; }
.motion-pop { display: inline-block; animation: motion-pop 0.4s var(--motion-ease) both; }
.motion-shake { animation: motion-shake 0.4s ease both; }

.motion-shimmer.motion-shimmer {
  background-image: linear-gradient(90deg, #f2eee7 25%, #fbf8f3 50%, #f2eee7 75%);
  background-size: 200% 100%;
  animation: motion-shimmer 1.4s ease-in-out infinite;
}

.motion-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  animation: motion-spin 0.7s linear infinite;
}

/* Subtle press feedback on every button */
button { transition: transform 0.12s ease, opacity 0.2s ease, background-color 0.2s ease; }
button:active:not(:disabled) { transform: scale(0.98); }

/* --- Checkout progress bar --- */
.checkout-steps { position: relative; margin: 0 0 28px; }
.checkout-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.checkout-steps li { display: grid; justify-items: center; gap: 6px; font-size: 13px; color: #8a857c; }
.checkout-steps li.is-current { color: var(--motion-ink); font-weight: 600; }
.checkout-steps__dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1.5px solid #c9c4bc; font-size: 12px;
  position: relative; z-index: 1;
}
.checkout-steps li.is-done .checkout-steps__dot { background: var(--motion-gold); border-color: var(--motion-gold); color: #fff; }
.checkout-steps li.is-current .checkout-steps__dot {
  background: var(--motion-ink); border-color: var(--motion-ink); color: #fff;
  animation: motion-pop 0.45s var(--motion-ease) 0.4s both;
}
.checkout-steps__track { position: absolute; top: 12px; left: 12.5%; right: 12.5%; height: 2px; background: #e6e1d8; }
.checkout-steps__fill { height: 100%; width: var(--to); background: var(--motion-gold); animation: motion-fill 0.6s var(--motion-ease) both; }

/* --- Order confirmed checkmark --- */
.success-check { position: relative; width: 84px; height: 84px; margin: 8px 0 12px; color: var(--motion-gold); }
.success-check svg { display: block; width: 100%; height: 100%; }
.success-check__circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: motion-draw 0.6s var(--motion-ease) 0.1s both; }
.success-check__tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: motion-draw 0.35s var(--motion-ease) 0.6s both; }
.success-check__sparkle {
  position: absolute; width: 12px; height: 12px; background: var(--motion-gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0; animation: motion-twinkle 1.2s ease-in-out 2 both;
}
.success-check__sparkle:nth-of-type(1) { top: -4px; right: 2px; animation-delay: 0.9s; }
.success-check__sparkle:nth-of-type(2) { bottom: 6px; right: -10px; width: 8px; height: 8px; animation-delay: 1.1s; }
.success-check__sparkle:nth-of-type(3) { top: 14px; left: -12px; width: 9px; height: 9px; animation-delay: 1.25s; }
.success-check__sparkle:nth-of-type(4) { bottom: -6px; left: 18px; width: 7px; height: 7px; animation-delay: 1.4s; }

/* Visitors who ask their device for less motion get the end state instantly. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* static-site/static.css */
/* Extra styles for the static catalog (fonts are loaded from Google Fonts in each page) */
:root { --font-display: "Cormorant Garamond"; --font-body: "Jost"; }
[hidden] { display: none !important; }
a { text-underline-offset: 3px; }
.lr-header a, .lr-footer a, .lr-card, .lr-btn, .lr-chip, .lr-link { text-decoration: none; }
.lr-footer a:hover { text-decoration: underline; }

.lr-product { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.lr-gallery { display: grid; gap: 12px; min-width: 0; }
.lr-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #efe8db; }
.lr-gallery__empty { aspect-ratio: 4 / 5; max-width: 100%; background: #efe8db; display: grid; place-items: center; color: var(--lr-muted); font-size: 14px; }
.lr-product__info { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 760px) { .lr-product__info { position: sticky; top: 24px; } }
.lr-product__info h1 { margin: 0; font-size: clamp(32px, 4.5vw, 52px); }
.lr-product__info .lr-eyebrow { margin-top: -4px; }
.lr-product__price { margin: 0; font-size: 20px; font-variant-numeric: tabular-nums; }
.lr-product__info .lr-prose p { font-size: 16px; }
.lr-back { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lr-muted); }
.lr-back:hover { color: var(--lr-ink); }
.lr-cert { margin: 0; font-size: 14px; color: var(--lr-muted); }
.lr-options { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lr-options legend { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--lr-gold); margin-bottom: 10px; }
.lr-option { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--lr-hair); background: var(--lr-paper); font-size: 14px; cursor: pointer; }
.lr-option:has(input:checked) { border-color: var(--lr-ink); }
.lr-option input { accent-color: var(--lr-gold); margin: 0; }
.lr-single-option { margin: 0; font-size: 14px; color: var(--lr-muted); }
.lr-soldout { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lr-muted); }
.lr-field { display: grid; gap: 6px; font-size: 14px; }
.lr-field input { height: 46px; padding: 0 12px; border: 1px solid var(--lr-hair); background: var(--lr-paper); font: inherit; font-size: 16px; color: var(--lr-ink); }
.lr-inquire { width: 100%; }
.lr-note { margin: 0; font-size: 14px; color: var(--lr-muted); }
