/* Highland & Hem: base, header, menu, buttons, newsletter, footer, toast, motion */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--linen);
  color: var(--espresso);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
img { display: block; max-width: 100%; }
button, select, input { font-family: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.on-dark :focus-visible, .toast :focus-visible { outline-color: var(--on-dark); }
[hidden] { display: none !important; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--espresso); color: var(--on-dark); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 56px; }

.container { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.display {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.02em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border: 1px solid var(--espresso); border-radius: 999px;
  background: none; font-size: 15px; font-weight: 500;
}
.btn--primary { background: var(--espresso); color: var(--on-dark); padding: 17px 30px; }

/* Announcement + header */
.announce { background: var(--saddle); color: var(--on-dark); text-align: center; padding: 9px 20px; font-size: 13px; letter-spacing: .06em; }
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--gutter);
  background: rgba(243, 237, 228, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__nav, .header__utils { flex: 1; display: flex; align-items: center; font-size: 15px; white-space: nowrap; }
.header__nav { gap: 28px; }
.header__utils { gap: 24px; justify-content: flex-end; }
.menu-toggle { display: none; flex: 1; max-width: 90px; border: 0; background: none; padding: 6px 0; font-size: 15px; text-align: left; }
.wordmark { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; white-space: nowrap; }
.wordmark__name { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em; }
.wordmark__sub { margin-top: 6px; padding-left: .34em; font-size: 10px; letter-spacing: .34em; color: var(--taupe); }
.bag-link { display: flex; align-items: center; gap: 8px; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--espresso); color: var(--on-dark); font-size: 12px;
}
.mobile-menu {
  display: flex; flex-direction: column; padding: 8px 20px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 28px;
}
.mobile-menu a { padding: 8px 0; }
@media (max-width: 979px) {
  .header__nav, .header__utils .hide-mobile { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 980px) { .mobile-menu { display: none !important; } }

/* Newsletter + footer */
.newsletter { background: var(--saddle); color: var(--on-dark); }
.newsletter__inner {
  padding-block: clamp(48px, 6vw, 80px);
  display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: center; justify-content: space-between;
}
.newsletter__copy { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.newsletter__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; }
.newsletter__text { font-size: 16px; line-height: 1.55; color: #EFE4D6; }
.newsletter__form {
  display: flex; flex: 0 1 460px; min-width: min(100%, 300px);
  background: var(--linen); border-radius: 999px; padding: 6px;
}
.newsletter__input {
  flex: 1; min-width: 0; padding: 12px 18px; border: 0; border-radius: 999px;
  background: none; font-size: 15px; color: var(--espresso);
}
.newsletter__input::placeholder { color: var(--taupe); opacity: 1; }
.newsletter__submit { border: 0; background: var(--espresso); color: var(--on-dark); padding: 12px 22px; border-radius: 999px; font-size: 15px; }

.footer { background: var(--espresso); color: var(--footer-text); }
.footer__inner { padding-block: clamp(48px, 6vw, 72px) 28px; display: flex; flex-direction: column; gap: 44px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; }
.footer__brand { font-family: var(--font-display); font-size: 28px; color: var(--on-dark); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__heading { margin: 0; font-size: 14px; font-weight: 400; color: var(--on-dark); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding-top: 22px; border-top: 1px solid rgba(189, 177, 163, .2);
  font-size: 12px; color: #A39889;
}
.footer__links { display: flex; gap: 20px; }

/* Product badge (home + shop cards) */
.badge {
  position: absolute; left: 10px; top: 10px;
  padding: 5px 10px; border-radius: 999px; background: var(--linen);
  font-size: 12px; letter-spacing: .04em; white-space: nowrap;
}

/* Toast */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 40px);
  padding: 16px 20px; border-radius: 14px;
  background: var(--espresso); color: var(--on-dark); font-size: 15px;
  box-shadow: 0 18px 40px rgba(43, 38, 32, .25);
  visibility: hidden; opacity: 0;
}
.toast.is-visible { visibility: visible; opacity: 1; animation: fadeUp .4s both; }
.toast a { text-decoration: underline; white-space: nowrap; }

/* Motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { transform: translateY(105%); } to { transform: none; } }
@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.fade-up { animation: fadeUp .9s both; }
.reveal-line { display: block; overflow: hidden; padding: .1em 0; margin: -.1em 0 -.02em; }
.reveal { display: block; animation: reveal 1.2s var(--ease) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-4 { animation-delay: .4s; }
.delay-6 { animation-delay: .6s; }
.delay-10 { animation-delay: 1s; }
.delay-11 { animation-delay: 1.15s; }
.delay-13 { animation-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
