/* ==========================================================================
   AURELIA BOTANICS. DEMONSTRATION SITE.

   A shop, not a brochure with a form bolted on. The structure is driven by a
   basket that holds state, a slide-in drawer and a checkout sheet.

   Kept structurally apart from the other demos on purpose: navigation splits
   either side of a centred wordmark rather than sitting beside a left logo,
   and the range is presented as full width alternating bands rather than a
   card grid, which is what every other demo already does.
   ========================================================================== */

:root {
  --linen: #f7f5f0;
  --paper: #ffffff;
  --moss: #3f4a38;
  --moss-2: #4a5741;
  --sage: #7d8f6d;
  --sage-pale: #dde3d5;
  --clay: #a8624a;
  --ink: #2f352c;
  --ink-soft: #555b50;
  --ink-faint: #71776b;
  --line: #ddd9d0;

  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--sans);
  background-color: var(--linen);
  color: var(--ink-soft);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body { line-height: 1.7; font-weight: 400; overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.skip {
  position: absolute; left: -9999px;
  background: var(--moss); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 {
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: lowercase;
}

.hold { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.hold-narrow { max-width: 760px; }
@media (min-width: 768px) { .hold { padding: 0 2rem; } }

.sect { padding: 3.5rem 0; }
@media (min-width: 768px) { .sect { padding: 5.5rem 0; } }
.sect-tint { background-color: var(--sage-pale); }

.sect-head { margin-bottom: 2.5rem; max-width: 40rem; }
.sect-head h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.6rem; }
.sect-head p { font-size: 0.9375rem; color: var(--ink-faint); }

.over {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9rem;
}

/* --------------------------------------------------------------------------
   Header: navigation split either side of a centred wordmark
   -------------------------------------------------------------------------- */
.head {
  background-color: var(--linen);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.head-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}
@media (min-width: 768px) { .head-rule { padding: 1.1rem 2rem; } }

.head-side { display: flex; align-items: center; gap: 1.5rem; }
.head-left { display: none; }
@media (min-width: 860px) { .head-left { display: flex; } }
.head-right { justify-content: flex-end; }

.head-side a, .head-help {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.head-side a:hover { color: var(--ink); border-bottom-color: var(--sage); }
.head-help { display: none; }
@media (min-width: 620px) { .head-help { display: inline-block; } }

.brand { text-align: center; grid-column: 2; }
.brand-name {
  display: block;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.42em;
  text-transform: lowercase;
  color: var(--sage);
  margin-top: 0.35rem;
}
@media (min-width: 768px) {
  .brand-name { font-size: 1.6rem; }
  .brand-sub { font-size: 0.6875rem; }
}

.head-promise {
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 0 1.25rem 0.75rem;
}

.basket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--moss);
  color: var(--moss);
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.basket-btn:hover { background-color: var(--moss); color: var(--paper); }
.basket-count {
  display: grid; place-items: center;
  min-width: 21px; height: 21px;
  padding: 0 0.3rem;
  background-color: var(--clay);
  color: var(--paper);
  border-radius: 11px;
  font-size: 0.6875rem;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  min-height: 48px;
  background-color: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.btn:hover { background-color: var(--moss-2); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-quiet { background: transparent; color: var(--moss); }
.btn-quiet:hover { background-color: var(--moss); color: var(--paper); }

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.intro { padding: 3.5rem 0 2.5rem; }
@media (min-width: 768px) { .intro { padding: 5.5rem 0 4rem; } }
.intro h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); margin-bottom: 1.25rem; max-width: 18ch; }
.intro h1 em { font-style: normal; color: var(--sage); }
.intro-text { font-size: 1.0625rem; max-width: 32rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Shop: alternating full width bands rather than a card grid
   -------------------------------------------------------------------------- */
.shop { padding-bottom: 3.5rem; }
.shop-lead { margin-bottom: 2.5rem; }
.shop-lead h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 0.5rem; }
.shop-lead p { font-size: 0.9375rem; color: var(--ink-faint); }

.band {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}
.band:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 780px) {
  .band { grid-template-columns: 1fr 1fr; }
  .band-flip .band-shot { order: 2; }
}

.band-shot {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--shot-a, #e6e9df) 0%, var(--shot-b, #cbd3bf) 100%);
}
@media (min-width: 780px) { .band-shot { aspect-ratio: 4 / 3; } }

/* Stand-in for product photography. Swap the whole block for an img when real
   shots exist. */
.vessel {
  width: 26%;
  min-width: 78px;
  aspect-ratio: 2 / 3.4;
  background-color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px 5px 3px 3px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(63, 74, 56, 0.14);
}
.vessel::before {
  content: "";
  position: absolute;
  top: -10%;
  width: 22%;
  height: 11%;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.vessel span {
  font-size: 0.5rem;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--moss);
}

.band-copy { padding: 2rem 1.25rem; }
@media (min-width: 780px) { .band-copy { padding: 2.5rem 3rem; } }
@media (min-width: 1160px) { .band-copy { padding: 3rem 4.5rem; } }

.band-ref {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 0.9rem;
}
.band-copy h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: 0.35rem; }
.band-size {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.band-note { font-size: 0.9375rem; color: var(--ink-soft); max-width: 30rem; margin-bottom: 1.75rem; }

.band-buy { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.band-price { font-size: 1.35rem; color: var(--ink); }
.add {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid var(--moss);
  color: var(--moss);
  padding: 0.85rem 1.5rem;
  min-height: 46px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.add:hover { background-color: var(--moss); color: var(--paper); }
.add.is-added { background-color: var(--sage); border-color: var(--sage); color: var(--paper); }

.goods-note { margin-top: 2.5rem; font-size: 0.8125rem; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   How it is made
   -------------------------------------------------------------------------- */
.made { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .made { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.made h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.made-body p { font-size: 1rem; }
.made-body p + p { margin-top: 1.1rem; }
.ticks { list-style: none; margin-top: 1.75rem; display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background-color: var(--sage);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Help. Native details and summary, so it works with JavaScript off.
   -------------------------------------------------------------------------- */
.ask { border-top: 1px solid var(--line); }
.ask details { border-bottom: 1px solid var(--line); }
.ask summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-size: 1rem;
  color: var(--ink);
  min-height: 44px;
}
.ask summary::-webkit-details-marker { display: none; }
.ask summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--sage);
}
.ask details[open] summary::after { content: "\2212"; }
.ask summary:hover { color: var(--moss); }
.ask-body { padding: 0 0 1.35rem; }
.ask-body p { font-size: 0.9375rem; }
.ask-body p + p { margin-top: 0.8rem; }
.ask-body a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Basket drawer
   -------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background-color: rgba(47, 53, 44, 0.45); z-index: 40; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(26rem, 100vw);
  background-color: var(--linen);
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(47, 53, 44, 0.2);
}
.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer-top h2 { font-size: 1.2rem; letter-spacing: 0.04em; }
.drawer-x {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
}
.drawer-x:hover { color: var(--ink); }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.drawer-empty { font-size: 0.9375rem; color: var(--ink-faint); text-align: center; padding: 2rem 0; }

.line { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line-name { font-size: 0.9375rem; color: var(--ink); }
.line-size { font-size: 0.75rem; color: var(--ink-faint); }
.line-cost { font-size: 0.9375rem; color: var(--ink); text-align: right; }
.line-tools { display: flex; align-items: center; gap: 0.5rem; grid-column: 1 / -1; }
.qty {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
}
.qty:hover { border-color: var(--moss); color: var(--moss); }
.qty-n { font-size: 0.875rem; min-width: 1.6rem; text-align: center; color: var(--ink); }
.line-bin {
  margin-left: auto;
  background: transparent; border: 0;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); cursor: pointer;
  padding: 0.5rem; min-height: 44px;
}
.line-bin:hover { color: var(--clay); }

.drawer-foot { border-top: 1px solid var(--line); padding: 1.25rem; background-color: var(--paper); }
.tally { margin-bottom: 0.85rem; }
.tally > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; padding: 0.2rem 0; }
.tally dt { color: var(--ink-faint); }
.tally dd { color: var(--ink); }
.tally-total { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.6rem !important; font-size: 1.0625rem !important; }
.tally-total dt, .tally-total dd { color: var(--ink) !important; }
.post-note { font-size: 0.75rem; color: var(--sage); margin-bottom: 0.85rem; }

/* --------------------------------------------------------------------------
   Checkout sheet
   -------------------------------------------------------------------------- */
.sheet {
  position: fixed; inset: 0;
  background-color: rgba(47, 53, 44, 0.55);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}
.sheet-card {
  position: relative;
  width: min(38rem, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background-color: var(--linen);
  margin: auto;
}
.sheet-body { overflow-y: auto; padding: 1.25rem; }
@media (min-width: 640px) { .sheet-body { padding: 1.75rem; } }

.order { list-style: none; margin-bottom: 0.75rem; }
.order li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.order-total { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0 1.5rem; font-size: 1.0625rem; color: var(--ink); }

.pair { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.fld { margin-bottom: 1.1rem; }
.fld label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.fld input, .fld textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.fld textarea { resize: vertical; line-height: 1.6; }
.fld input:focus, .fld textarea:focus { border-color: var(--sage); }

.pay-note {
  background-color: var(--sage-pale);
  border-left: 3px solid var(--sage);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.pay-note-h { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); margin-bottom: 0.5rem; }
.pay-note p { font-size: 0.8125rem; line-height: 1.7; color: var(--ink-soft); }
.pay-note p + p { margin-top: 0.6rem; }

.fine { margin-top: 0.85rem; font-size: 0.75rem; color: var(--ink-faint); text-align: center; }

.form-error {
  margin-bottom: 1rem;
  padding: 0.8rem 0.95rem;
  font-size: 0.875rem;
  color: #7d3030;
  background-color: #f3e2e2;
  border-left: 3px solid #a84a4a;
}
.form-error.hidden { display: none; }

.thanks {
  position: absolute; inset: 0;
  background-color: var(--linen);
  display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 2rem; gap: 0.4rem;
}
.thanks-tick { font-size: 1.75rem; color: var(--sage); }
.thanks h3 { font-size: 1.35rem; }
.thanks p { font-size: 0.9375rem; margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot { background-color: var(--moss); color: var(--sage-pale); padding: 3rem 0 2rem; text-align: center; }
.foot-brand {
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--paper);
  margin-bottom: 1rem;
}
.foot-brand span { color: var(--sage-pale); opacity: 0.7; }
.foot-line { font-size: 0.875rem; color: var(--sage-pale); }
.foot-line + .foot-line { margin-top: 0.4rem; }
.foot-line a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.foot-line a:hover { color: var(--paper); }
.foot-fine { margin-top: 2rem; font-size: 0.75rem; color: rgba(221, 227, 213, 0.65); }
.foot-fine a { text-decoration: underline; text-underline-offset: 2px; }
.foot-fine a:hover { color: var(--paper); }

/* --------------------------------------------------------------------------
   Mobile and motion
   -------------------------------------------------------------------------- */
h1, h2, h3, p, li, dt, dd { overflow-wrap: break-word; }
.btn, .add, .basket-btn, .qty, .ask summary { -webkit-tap-highlight-color: rgba(125, 143, 109, 0.25); }
body.is-locked { overflow: hidden; }

@media (hover: none) {
  .btn:hover { background-color: var(--moss); }
  .add:hover { background-color: transparent; color: var(--moss); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
