/* University Ave Mercantile: tokens, reset, shared type, header, footer, toast */
:root {
  --forest-ink: #1F2420;
  --forest: #2B332D;
  --moss: #3D4A3F;
  --night: #161A17;
  --mustard: #E0B84E;
  --mustard-text: #7A5C14; /* darkened from #8A6A1E for AA on cream */
  --cream: #F1E8D6;
  --parchment: #E6DAC2;
  --kraft: #D9CDB5;
  --body: #4A5046;
  --muted: #575C51; /* darkened from #5E6358 for AA on parchment */
  --on-dark: #D6CDBB;
  --on-dark-muted: #BDB4A2;
  --footer-text: #A9A291;
  --line: #D2C5AC;
  --line-strong: #CDBFA3;
  --font-display: 'Zilla Slab', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 3.4vw, 48px);
  --section-y: clamp(64px, 8vw, 112px);
  --max-w: 1520px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 90px; }
body { color: var(--forest-ink); font-family: var(--font-body); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .78; }
img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }
.on-cream :focus-visible, main :focus-visible { outline-color: var(--forest-ink); }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--mustard); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--mustard-text); font-weight: 600; }
.eyebrow--dark { color: var(--mustard); font-weight: 400; }
.display { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1; }
.h2 { font-size: clamp(36px, 4vw, 56px); }
.h2--sm { font-size: clamp(34px, 3.6vw, 50px); }
.text-link { font-weight: 600; font-size: 15px; border-bottom: 1.5px solid var(--forest-ink); padding-bottom: 3px; }

.btn { display: inline-block; padding: 16px 26px; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; border: 0; text-align: center; }
.btn--cream { background: var(--cream); color: var(--forest-ink); padding: 17px 28px; }
.btn--ghost { border: 1px solid rgba(241, 232, 214, .5); background: none; color: var(--cream); }
.btn--mustard { background: var(--mustard); color: var(--forest-ink); }
.btn--outline { border: 1.5px solid var(--forest-ink); background: none; color: var(--forest-ink); padding: 15px 24px; }
.btn:hover { opacity: .85; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--forest-ink); color: var(--cream); border-bottom: 1px solid rgba(241, 232, 214, .14); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.wordmark { flex: none; display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.wordmark__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: .02em; }
.wordmark__sub { font-size: 10px; letter-spacing: .5em; margin-top: 5px; color: var(--mustard); }
.site-nav { display: flex; gap: 32px; font-size: 15px; white-space: nowrap; }
.site-header__actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.menu-toggle { display: none; border: 1px solid rgba(241, 232, 214, .5); background: none; color: var(--cream); padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cart-button { background: var(--mustard); color: var(--forest-ink); padding: 12px 20px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; padding: 4px var(--gutter) 24px; font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.mobile-nav a { padding: 8px 0; }
.mobile-nav[hidden] { display: none; }

@media (max-width: 1039px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (min-width: 1040px) { .mobile-nav { display: none; } }
@media (max-width: 420px) {
  .site-header__bar { gap: 12px; }
  .wordmark__sub { letter-spacing: .32em; }
  .menu-toggle { padding: 10px 12px; }
  .cart-button { padding: 11px 14px; }
}

/* Footer */
.site-footer { background: var(--night); color: var(--footer-text); }
.site-footer__inner { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 28px; display: flex; flex-direction: column; gap: 44px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__col h2 { margin: 0; font: inherit; color: var(--cream); font-weight: 600; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand .wordmark__name { font-size: 24px; color: var(--cream); }
.site-footer__brand p { margin: 0; font-size: 14px; line-height: 1.6; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(169, 162, 145, .2); font-size: 12px; color: #8F887A; }
.site-footer__legal nav { display: flex; gap: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: contents; }

/* Add-to-cart toast */
.cart-toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: calc(100vw - 40px); background: var(--mustard); color: var(--forest-ink); padding: 16px 20px; display: flex; gap: 16px; align-items: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); font-size: 15px; font-weight: 500; }
.cart-toast[hidden] { display: none; }
.cart-toast__checkout { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; flex: none; }

/* Product tag (cards and gallery) */
.tag { position: absolute; left: 12px; top: 12px; background: var(--forest-ink); color: var(--mustard); padding: 6px 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
