/* =====================================================================
   ANEVLE — shared stylesheet
   Design tokens per design_handoff_anevle_website/README.md (Direction A
   "Ivory & Rose"). Change the :root block to swap the whole palette.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Jost:wght@300;400;500&family=IBM+Plex+Mono:wght@400&display=swap');

:root {
  --bg: #FAF6F2;
  --panel: #FFFDFB;
  --ink: #241C1A;
  --muted: #8B7C74;
  --line: #E6DCD3;
  --accent: #C08B87;
  --accent-ink: #FFFFFF;
  --gold: #B99A5B;
  --gold-on-dark: #EFDCB4;
  --ph: #E9E0D7;
  --ph-line: rgba(36, 28, 26, 0.055);

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 300; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* -------------------- placeholder imagery -------------------- */
.ph {
  position: relative;
  background: repeating-linear-gradient(45deg, var(--ph) 0 12px, #F3ECE4 12px 24px);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.ph::after {
  content: attr(data-caption);
  display: block; width: 100%;
  background: rgba(36,28,26,0.72);
  color: #FFFCF9;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  line-height: 1.4;
}

/* -------------------- eyebrow / labels -------------------- */
.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); font-weight: 400;
}
.eyebrow.on-dark { color: var(--gold-on-dark); }
.eyebrow.dot { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 500;
  padding: 16px 34px; transition: background .15s, border-color .15s, filter .15s, opacity .15s;
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: #FFFCF9; }
.btn-ink:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.07); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: rgba(255,253,251,.14); border-color: rgba(255,253,251,.55); color: #FFFCF9; }
.btn-outline-light:hover { background: rgba(255,253,251,.24); }
.btn-sm { padding: 11px 22px; font-size: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.text-btn {
  background: none; border: none; padding: 0; font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-decoration: underline;
}
.text-btn:hover { color: var(--ink); }

/* -------------------- pills / selects -------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-size: 12px; padding: 9px 16px; transition: all .15s;
}
.pill.selected, .pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFCF9; }
.pill:hover:not(.selected) { border-color: var(--ink); }

/* -------------------- announcement bar -------------------- */
.announce {
  background: var(--ink); color: #F6EFE7;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  padding: 9px 16px; display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap; text-align: center;
}
.announce .sep { color: var(--gold); }

/* -------------------- header -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,253,251,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: nowrap;
}
.wordmark {
  font-family: var(--font-display); font-size: 24px; letter-spacing: 0.26em;
  text-transform: uppercase; flex: 0 0 auto; font-weight: 300;
}
.primary-nav { display: flex; gap: 18px; margin: 0 auto; align-items: center; }
.primary-nav a {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--muted); white-space: nowrap; transition: color .15s;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.accent { color: var(--accent); }
.primary-nav a.dotted { display: inline-flex; align-items: center; gap: 6px; }
.primary-nav a.dotted::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.utilities { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.utilities .u-text { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.utilities .u-text:hover { color: var(--ink); }
.bag-pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
}
.bag-pill:hover { border-color: var(--ink); }
.menu-btn { display: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; background: none; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 1180px) { .search-link { display: none; } }
@media (max-width: 1060px) {
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .utilities [data-account-link] { display: none; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: 14px;
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 20px 24px 26px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.mobile-menu a.accent { color: var(--accent); }

/* -------------------- footer -------------------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); padding: 56px 28px 32px; }
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 36px;
}
.footer-grid h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 500;}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: var(--ink); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .wordmark { font-size: 22px; letter-spacing: .30em; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 230px; margin-top: 14px; }
.footer-bottom {
  max-width: var(--max); margin: 44px auto 0; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted);
}
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--ink); }

/* -------------------- sections / typography scale -------------------- */
section { padding: 64px 0; }
@media (max-width: 640px) { section { padding: 44px 0; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
h1.page { font-size: 52px; line-height: 1.05; }
h2.section-title { font-size: 34px; }
@media (max-width: 640px) { h1.page { font-size: 34px; } h2.section-title { font-size: 26px; } }
.lede { font-family: var(--font-display); font-size: 21px; line-height: 1.5; }
.muted { color: var(--muted); }
.body-16 { font-size: 16px; line-height: 1.7; }

/* -------------------- cards / grids -------------------- */
.grid { display: grid; gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.card-pad { padding: 24px; }

/* -------------------- toast -------------------- */
.toast {
  position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #FFFCF9; font-size: 13px;
  padding: 14px 26px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------------------- mini-cart drawer -------------------- */
.scrim {
  position: fixed; inset: 0; background: rgba(36,28,26,.4); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 88vw;
  background: var(--panel); z-index: 61; padding: 28px;
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer-head h3 { font-size: 26px; }
.close-x { background: none; border: none; font-size: 22px; line-height: 1; color: var(--muted); }
.drawer-empty { color: var(--muted); font-size: 14px; padding: 40px 0; }
.drawer-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.drawer-item { display: flex; gap: 12px; }
.drawer-item .thumb { width: 60px; height: 74px; border-radius: 6px; flex: 0 0 auto; }
.drawer-item .info { flex: 1; min-width: 0; }
.drawer-item .name { font-family: var(--font-display); font-size: 16px; }
.drawer-item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.drawer-item .price { font-size: 13px; margin-top: 6px; }
.drawer-foot { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.drawer-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.drawer-row.points { color: var(--gold); }
.drawer-row.shipping-note { color: var(--muted); font-size: 12px; }

/* -------------------- modal -------------------- */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(36,28,26,.45); z-index: 70;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-scrim.open { display: flex; }
.modal-card { background: var(--panel); border-radius: 20px; max-width: 520px; width: 100%; padding: 36px; animation: fadeUp .3s ease; }
.modal-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dotted var(--line); font-size: 14px; }
.modal-row:last-child { border-bottom: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.fade-up { animation: fadeUp .5s ease; }

/* -------------------- form controls -------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  font-size: 15px; background: var(--panel); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); border-radius: 5px; }

/* -------------------- misc utility -------------------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; }
.hr-line { border: none; border-top: 1px solid var(--line); margin: 0; }
.badge {
  display: inline-flex; align-items: center; background: var(--ink); color: #FFFCF9;
  font-size: 9px; text-transform: uppercase; letter-spacing: .14em; padding: 5px 10px; border-radius: 999px;
}
.badge-light { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
