/* Frontend refinements layered over the locally compiled Stitch design. */
:root { color-scheme: light; --navy: #0f1e36; --parchment: #faf6ee; --gold: #d99b26; --teal: #0d6874; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; min-width: 320px; }
section[id] { scroll-margin-top: 104px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; color: white; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.brand-logo-image { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-art-header { display: block; width: 190px; flex-shrink: 0; }
.brand-logo-tagline { display: block; margin-top: -3px; padding-left: 2px; color: #b8321e; font-size: 9px; font-weight: 800; line-height: 12px; letter-spacing: .25em; }
.hero-brand { width: 100%; max-width: 520px; }
.hero-wordmark { margin: 0; line-height: 1; }
.brand-art-footer { display: block; width: min(240px, 100%); }
.brand-logo-tagline-footer { margin-top: 8px; color: #d99b26; }
.story-image { height: 384px; }
.flavour-card { cursor: default; }
.flavour-card a { min-height: 34px; }
header svg, footer svg { flex-shrink: 0; }
header > div:nth-child(2) > a { flex-shrink: 0; }
.nav-toggle { display: none; }
.animate-marquee { width: max-content; }
.animate-marquee > span { flex-shrink: 0; }
@media (min-width: 1024px) and (max-width: 1199px) {
  #home .w-64 { width: 220px; }
  #home .sm\:w-80 { width: 260px; }
  #home .gap-8 { gap: 20px; }
  .flavour-card { padding: 12px; }
}
@media (max-width: 1023px) {
  #home > .max-w-7xl > .grid { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  #home > .max-w-7xl > .grid > :nth-child(2) { grid-column: 1 / -1; }
  #home > .max-w-7xl > .grid > :nth-child(1) { order: 2; }
  #home > .max-w-7xl > .grid > :nth-child(3) { order: 3; }
  #home { padding-top: 44px; padding-bottom: 72px; }
  #home h2 { max-width: 520px; }
  #home .sm\:w-80 { width: min(100%, 300px); }
  #flavours .flavour-card:last-child { grid-column: auto; }
}
@media (max-width: 639px) {
  .site-header > div:nth-child(2) { height: 72px; }
  .site-header .text-3xl { font-size: 22px; }
  .site-header .w-6 { width: 17px; }
  .site-header .text-\[10px\] { font-size: 8px; }
  .site-header .space-x-5 > :not([hidden]) ~ :not([hidden]) { margin-left: 3px; }
  .site-header button, .site-header a[aria-label="Shopping Cart"] { min-width: 36px; min-height: 42px; }
  .brand-art-header { width: clamp(130px, calc(100vw - 190px), 176px); }
  .brand-logo-tagline { font-size: 8px; line-height: 11px; }
  #home > .max-w-7xl > .grid { gap: 40px 12px; align-items: end; }
  #home > .max-w-7xl > .grid > :nth-child(1) .w-52 { width: 145px; }
  #home > .max-w-7xl > .grid > :nth-child(1) .w-64 { width: 100%; max-width: 200px; }
  #home > .max-w-7xl > .grid > :nth-child(1) .h-80 { height: 220px; }
  #home > .max-w-7xl > .grid > :nth-child(3) .h-96 { width: 100%; height: 280px; }
  #home > .max-w-7xl > .grid > :nth-child(3) .max-w-\[220px\] { left: -12px; padding: 10px 12px; max-width: 170px; }
  #home > .max-w-7xl > .grid > :nth-child(3) .font-handwriting { font-size: 17px; }
  #home > .max-w-7xl > .grid > :nth-child(1) .text-xs { font-size: 10px; }
  main > section.py-24 { padding-top: 64px; padding-bottom: 64px; }
  #flavours > .max-w-7xl > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  #flavours .flavour-card { padding: 10px; min-width: 0; }
  #flavours .flavour-card > div:first-child { height: auto; aspect-ratio: 3 / 4; }
  #flavours .flavour-card:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
  #flavours .flavour-card h3 { font-size: 16px; }
  #flavours .flavour-card > p { min-height: 32px; }
  #flavours .flavour-card .text-\[10px\] { font-size: 8px; padding-left: 6px; padding-right: 6px; }
  .story-image { height: 300px; }
  #why-crunchiyo .h-96 { height: auto; aspect-ratio: 1.19; }
  #why-crunchiyo .font-handwriting { font-size: 10px; }
  footer .space-x-6 { gap: 12px; flex-wrap: wrap; justify-content: center; }
  footer .space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
