/* ==========================================================================
   DARSKAA — QUIET SHELL  (quiet.css)
   Shared by every page: tokens, header, footer, buttons, links, messages.
   Page-specific layers (home.css etc.) load after this file.
   ========================================================================== */

:root {
  --q-ground: #1f1104;          /* page ground below the hero */
  --q-deep: #150b03;            /* footer, image shadows */
  --q-cream: #f4eee4;
  --q-cream-soft: rgba(244, 238, 228, 0.76);
  --q-cream-faint: rgba(244, 238, 228, 0.5);
  --q-gold: #c9a55a;
  --q-hair: rgba(244, 238, 228, 0.14);
  --q-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --q-serif: 'Cormorant Garamond', Garamond, 'GFS Baskerville', Georgia, serif;
  --q-sans: 'Montserrat', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --q-pad-x: clamp(20px, 5vw, 72px);
  --q-section-y: clamp(112px, 16vh, 200px);
}

*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
}

a, button, input, textarea, select, summary, [role="button"], [tabindex] {
  -webkit-tap-highlight-color: transparent !important;
}

/* --------------------------------------------------------------------------
   Header — sentence case, calm, solid on inner pages
   -------------------------------------------------------------------------- */
.site-header,
.site-header.scrolled {
  background-color: rgba(31, 17, 4, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--q-hair);
  box-shadow: none;
}

.site-header .header-inner,
.site-header.scrolled .header-inner {
  height: 64px;
}

.site-header .brand-link {
  display: inline-flex;
  align-items: flex-end;
}

.site-header .brand-swan-emblem {
  align-self: flex-end;
  margin-bottom: 2px;
}

.desktop-nav a {
  font-family: var(--q-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--q-cream-soft);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--q-cream);
}

.header-utility-btn,
.mobile-menu-btn {
  clip-path: none;
}

.bag-count-text {
  font-variant-numeric: tabular-nums;
}

.mobile-nav-links a {
  font-family: var(--q-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}


.desktop-nav a.active,
.desktop-nav a[aria-current="page"] {
  color: var(--q-cream);
}

.mobile-nav-links a span {
  display: none;
}

.mobile-nav-links a.mobile-nav-profile {
  font-family: var(--q-serif);
  font-size: 24px;
  color: var(--q-gold) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--q-hair);
}

.mobile-nav-links a.mobile-nav-profile span {
  display: inline-flex !important;
  align-items: center;
  font-family: inherit;
}

.mobile-nav-links a.mobile-nav-profile svg {
  display: inline-block !important;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Shared quiet pieces
   -------------------------------------------------------------------------- */
.q-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--q-pad-x);
}

.q-h2 {
  font-family: var(--q-serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--q-cream);
  margin: 0;
}

.q-lede {
  font-family: var(--q-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--q-cream-soft);
  margin: 18px 0 0;
  max-width: 34em;
}

.q-link {
  position: relative;
  display: inline-block;
  font-family: var(--q-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--q-cream);
  text-decoration: none;
  padding-bottom: 4px;
}

button.q-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 4px 0;
  margin: 0;
  text-align: inherit;
}

.q-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--q-gold);
  transform-origin: left;
  transform: scaleX(0.32);
  transition: transform 0.45s var(--q-ease);
}

.q-link:hover::after,
.q-link:focus-visible::after {
  transform: scaleX(1);
}

.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  font-family: var(--q-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--q-cream);
  background: transparent;
  border: 1px solid rgba(244, 238, 228, 0.42);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.q-btn:hover,
.q-btn:focus-visible {
  background: rgba(244, 238, 228, 0.06);
  border-color: var(--q-cream);
}

.q-btn-quiet {
  border-color: var(--q-hair);
}

.q-link:focus-visible,
.q-btn:focus-visible,
.q-five-index button:focus-visible,
.q-footer a:focus-visible,
.newsletter-btn:focus-visible,
.currency-trigger:focus-visible {
  outline: 1px solid var(--q-gold);
  outline-offset: 4px;
}


/* --------------------------------------------------------------------------
   Footer — slim
   -------------------------------------------------------------------------- */
.site-footer.q-footer {
  background: var(--q-deep);
  border-top: 1px solid var(--q-hair);
  padding: clamp(64px, 9vh, 96px) 0 32px;
  color: var(--q-cream-soft);
}

.q-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr) 1.6fr;
  gap: clamp(28px, 4vw, 56px);
}

.q-footer .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.q-footer .footer-wordmark {
  font-family: var(--q-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--q-cream);
}

.q-footer .footer-swan {
  width: 18px;
  height: auto;
}

.q-footer-brand p {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--q-cream-faint);
}

.q-footer h4 {
  margin: 0 0 16px;
  font-family: var(--q-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--q-cream);
}

.q-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.q-footer-col a {
  font-size: 13px;
  color: var(--q-cream-faint);
  text-decoration: none;
  transition: color 0.25s ease;
}

.q-footer-col a:hover {
  color: var(--q-cream);
}

.q-footer .newsletter-form-box {
  display: flex;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid rgba(244, 238, 228, 0.3);
  background: none;
  clip-path: none;
  padding: 0;
}

.q-footer .newsletter-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  clip-path: none;
  padding: 12px 0;
  font-family: var(--q-sans);
  font-size: 14px;
  color: var(--q-cream);
}

.q-footer .newsletter-input::placeholder {
  color: var(--q-cream-faint);
}

.q-footer .newsletter-input:focus {
  outline: none;
}

.q-footer .newsletter-form-box:focus-within {
  border-bottom-color: var(--q-gold);
}

.q-footer .newsletter-btn {
  width: auto;
  height: auto;
  background: none;
  border: 0;
  clip-path: none;
  padding: 0 0 0 16px;
  font-family: var(--q-sans);
  font-size: 13px;
  color: var(--q-cream);
  cursor: pointer;
}

.q-footer-feedback {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 12px;
}

.q-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(48px, 7vh, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--q-hair);
  font-size: 12px;
  color: var(--q-cream-faint);
}

/* currency switcher now lives in the footer and opens upward */
.q-footer .currency-dropdown {
  position: relative;
}

.q-footer .currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  clip-path: none;
  padding: 6px 0;
  font-family: var(--q-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--q-cream-soft);
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.q-footer .currency-trigger:hover {
  opacity: 0.85;
}

.q-footer .currency-trigger .chevron {
  width: 9px;
  transform: rotate(180deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.q-footer .currency-dropdown.open .currency-trigger .chevron {
  transform: rotate(0deg);
}

.q-footer .currency-menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  left: auto;
  clip-path: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
  pointer-events: none;
}

.q-footer .currency-dropdown.open .currency-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


@media (max-width: 1024px) {
  .q-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .q-footer-brand,
  .q-footer-news {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .site-header .header-inner,
  .site-header.scrolled .header-inner {
    height: 56px;
  }

  .site-header .brand-swan-emblem {
    margin-bottom: 1.5px;
  }

  .site-footer.q-footer {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .q-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  .q-footer-col:last-of-type {
    grid-column: 1 / -1;
  }

  .q-footer-news {
    margin-top: 4px;
  }

  .q-footer-feedback {
    min-height: 0;
    margin-top: 4px;
  }

  .q-footer-bottom {
    margin-top: 20px;
    padding-top: 16px;
  }
}

/* Off-canvas bag drawer: no shadow leaking onto the page while it is closed */
.discovery-bag-drawer:not(.active) {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Checkout messages
   -------------------------------------------------------------------------- */
.chk-payment-error {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 2px solid #c0634f;
  background: rgba(192, 99, 79, 0.1);
  font-size: 13px;
  line-height: 1.5;
  color: #f4d9d0;
}

.chk-pin-hint {
  margin: 6px 0 0;
  min-height: 1em;
  font-size: 12px;
  color: rgba(244, 238, 228, 0.7);
}

.chk-pin-hint[data-state="bad"] {
  color: #f0b4a6;
}

.chk-inr-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 238, 228, 0.66);
}


@media (prefers-reduced-motion: reduce) {
  .q-link::after {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Quieter labels everywhere: no forced capitals, gentle tracking
   -------------------------------------------------------------------------- */
[class*="kicker"],
[class*="eyebrow"],
[class*="-label"],
[class*="badge"],
[class*="pill"],
[class*="chip"],
[class*="tab-btn"],
[class*="-meta"],
[class*="caption"],
[class*="crumb"],
.btn-primary-coffee,
.btn-secondary-link,
.btn-outline-camel,
.btn-gold,
.btn-dark,
.maison-quote-cta-primary,
.maison-quote-cta-secondary,
.checkout-action-btn,
.checkout-primary-btn,
.add-to-bag-btn,
.drawer-header h3,
.checkout-section-heading,
label {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

.btn-primary-coffee,
.btn-secondary-link,
.maison-quote-cta-primary,
.maison-quote-cta-secondary,
.checkout-action-btn {
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.btn-primary-coffee:hover,
.maison-quote-cta-primary:hover,
.maison-quote-cta-secondary:hover {
  transform: none;
  box-shadow: none;
}

.pip,
.dock-pip,
.person-card-pip,
.ribbon-sep {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Returns on the tracking page
   -------------------------------------------------------------------------- */
.track-return {
  margin: 28px 0 8px;
  padding: 24px 0 0;
  border-top: 1px solid var(--q-hair);
}

.track-return[hidden],
.track-return-form[hidden] {
  display: none;
}

.track-return h4 {
  margin: 0 0 8px;
  font-family: var(--q-serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--q-cream);
}

.track-return-note {
  margin: 0 0 18px;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--q-cream-soft);
}

.track-return-form {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.track-return-form label {
  font-size: 13px;
  color: var(--q-cream-soft);
}

.track-return-form input,
.track-return-form select {
  padding: 12px 14px;
  background: rgba(244, 238, 228, 0.06);
  border: 1px solid var(--q-hair);
  color: var(--q-cream);
  font: inherit;
  font-size: 14px;
  clip-path: none;
}

.track-return-form button {
  margin-top: 10px;
  justify-self: start;
}

.track-return-msg {
  min-height: 1.4em;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--q-cream-soft);
}

/* One calm header motion everywhere (behaviour lives in quiet.js) */
.site-header {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}


/* Custom dropdowns: the native <select> stays hidden behind the styled one */
.darska-select-native,
.maison-form select.darska-select-native,
.chk-select-styled.darska-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
  appearance: none !important;
}

/* --------------------------------------------------------------------------
   Phones & tablets — shared safety rules
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  img, video, svg { max-width: 100%; }
  h1, h2, h3 { overflow-wrap: break-word; }

  /* Our story */
  .story-hero-title { font-size: clamp(40px, 11vw, 60px) !important; line-height: 1.04; }
  .story-hero-prologue-text { font-size: clamp(15px, 3.9vw, 17px) !important; line-height: 1.65 !important; }
  .story-chapter-heading { max-width: none !important; font-size: clamp(30px, 8.2vw, 44px) !important; line-height: 1.1; }
  .story-chapter-section > .page-container {
    width: auto !important;
    max-width: none !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .story-grid-asymmetric { gap: 28px !important; }
  .story-body-text { font-size: 16px !important; line-height: 1.7 !important; }

  /* Philosophy: chapter labels on light sections were too faint to read */

}

/* Philosophy: chapter labels on the light sections were too faint to read */
.philo-vs-section .philo-tag, .philo-framework-section .philo-tag { color: #8a6a35 !important; opacity: 1 !important; }

/* ==========================================================================
   TURN OFF INSPECT ELEMENT / LONG-PRESS CALLOUT
   ========================================================================== */
html, body {
  -webkit-touch-callout: none;
}

img {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.brand-link, .header-utility-btn, .mobile-panel {
  -webkit-touch-callout: none;
}
