/* ==========================================================================
   Daya — styles
   Palette: burgundy wine, deep wine ink, warm cream paper. Signature: the arch.
   ========================================================================== */

:root {
  --ink: #2A1A1D;          /* text + dark surfaces */
  --ink-soft: #6A5558;     /* muted text */
  --berry: #7A2E3B;        /* primary (burgundy wine) */
  --berry-deep: #5E222D;   /* hover shade of the primary */
  --paper: #FAF5F2;        /* page background */
  --lilac: #F1E3DE;        /* tinted sections */
  --white: #FFFBF9;        /* cards + light text */
  --line: #E3D2CB;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --arch: 50% 50% 14px 14px / 30% 30% 14px 14px;
  --arch-card: 50% 50% 12px 12px / 14% 14% 12px 12px;

  --gutter: 20px;
  --max: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry-deep); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
h1, h2, h3, p, ul { margin-top: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, .logo, .foot-logo, .drawer-title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 14px; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 6px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--berry); color: var(--white); }
.btn-primary:hover { background: var(--berry-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-gold { background: var(--white); color: var(--ink); }
.btn-gold:hover { background: var(--lilac); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Affirmation bar ---------- */
.affirm { background: var(--berry); color: var(--white); text-align: center; padding: 9px var(--gutter); }
.affirm p { margin: 0 auto; max-width: 70ch; font-weight: 600; font-size: .98rem; line-height: 1.4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding-inline: var(--gutter);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.menu-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px 8px 10px; background: none;
  border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700;
}
.menu-btn:hover { background: var(--ink); color: var(--white); }
.logo { font-size: 2rem; color: var(--ink); text-decoration: none; justify-self: center; line-height: 1; }
.logo:hover { color: var(--berry); }
.header-right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.top-links { display: none; gap: 4px; }
.top-links a { padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.top-links a:hover { color: var(--berry); }
.bag-btn {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; background: none; border: 0; border-radius: 50%; color: var(--ink);
}
.bag-btn:hover { background: var(--lilac); }
.bag-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--berry); color: var(--white); font-size: .75rem; font-weight: 800; line-height: 1;
}
.bag-btn.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.18); } }

/* ---------- Drawers ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(42, 26, 29, .5); opacity: 0; transition: opacity .25s; }
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 60; width: min(90vw, 390px);
  display: flex; flex-direction: column; background: var(--paper);
  visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s;
}
.drawer-left { left: 0; transform: translateX(-100%); border-radius: 0 28px 28px 0; }
.drawer-right { right: 0; transform: translateX(100%); border-radius: 28px 0 0 28px; }
.drawer.open { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px 24px; }
.drawer-title { font-size: 1.6rem; margin: 0; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; }
.icon-btn:hover { background: var(--lilac); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 24px 24px; }
.drawer-foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); }

.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; font-family: var(--font-display); font-size: 1.3rem; cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.acc[open] summary::after { transform: rotate(-135deg); }
.acc-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.acc-list a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.acc-list a:hover { background: var(--lilac); color: var(--berry-deep); }
.drawer-link {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.3rem; text-decoration: none; color: var(--ink);
}
.drawer-link:hover { color: var(--berry); }
.drawer-link.sub { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; min-height: 46px; border: 0; color: var(--ink-soft); }
.drawer-rule { border: 0; border-top: 2px solid var(--berry); margin: 22px 0 10px; width: 48px; }

.bag-empty { padding: 20px 0; }
.bag-empty-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.bag-empty p { color: var(--ink-soft); }
.bag-items { list-style: none; margin: 0; padding: 0; }
.bag-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 72px; height: 96px; object-fit: cover; border-radius: 36px 36px 8px 8px / 20px 20px 8px 8px; background: var(--lilac); }
.bag-item-name { font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.bag-item-price { margin: 0 0 6px; color: var(--ink-soft); }
.bag-item-links { margin: 0; display: flex; gap: 16px; font-size: .95rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--berry); }

/* ---------- One-on-one strip (under the header, every page) ---------- */
.styling-strip { background: var(--lilac); text-align: center; padding: 9px var(--gutter); border-bottom: 1px solid var(--line); }
.styling-strip a { color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; }
.styling-strip a:hover { color: var(--berry); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: 18px; }
.hero .lede { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; max-width: 320px; width: 100%; justify-self: center; padding: 0 0 18px 18px; }
.hero-art::before {
  content: ""; position: absolute; inset: 22px 0 0 36px; background: var(--lilac); border-radius: var(--arch);
}
.hero-art img { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 60vh; object-fit: cover; object-position: center top; border-radius: var(--arch); background: var(--lilac); }

/* ---------- Why Daya ---------- */
.why-grid { display: grid; gap: 18px; }
.why { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.why-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--berry); }
.why h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.why p { margin: 0; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.tint { background: var(--lilac); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.see-all { font-weight: 700; white-space: nowrap; }

/* ---------- Look cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; }
.card-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: var(--arch-card); background: var(--lilac); }
.deal-badge {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: .85rem; font-weight: 800;
}
.save {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--white); border: 0; border-radius: 50%; color: var(--ink); box-shadow: 0 2px 10px rgba(42,26,29,.18);
  transition: background-color .2s, color .2s, transform .2s;
}
.save:hover { transform: scale(1.06); color: var(--berry); }
.save.is-saved { background: var(--berry); color: var(--white); }
.save.is-saved .bag-body, .bag-btn .bag-body { fill: none; }
.save.is-saved .bag-body { fill: currentColor; }
.card-body { padding-top: 12px; }
.card-meta { margin: 0 0 2px; font-size: .9rem; color: var(--ink-soft); }
.card-title { font-size: 1.12rem; line-height: 1.25; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.card-price { margin: 0 0 6px; }
.card-price .now { font-weight: 800; }
.card-price .was { color: var(--ink-soft); margin-left: 6px; font-size: .95rem; }
.card-link { font-weight: 600; font-size: .95rem; }

/* ---------- Journal ---------- */
.posts { display: grid; gap: 28px; }
.post { background: var(--white); border-radius: 22px; padding: 24px; }
.section.tint .post { background: var(--paper); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.post-meta { margin: 0 0 8px; font-size: .92rem; color: var(--ink-soft); }
.post-title { font-size: 1.4rem; margin-bottom: 10px; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--berry); text-decoration: underline; }
.post-excerpt { margin: 0; color: var(--ink-soft); }

.article-wrap { max-width: 720px; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; object-position: center top; border-radius: 22px; margin: 24px 0; }
.prose { margin-top: 28px; }
.prose p { font-size: 1.12rem; line-height: 1.75; margin-bottom: 1.1em; max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.back { margin-top: 36px; font-weight: 700; }

/* ---------- Occasion and body type steps ---------- */
.steps { display: grid; gap: 26px; margin: 12px 0 28px; }
.step-title { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--berry); color: var(--white); font-family: var(--font-body); font-size: .95rem; font-weight: 800;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); font: inherit; font-weight: 700;
}
.chip:hover { background: var(--lilac); }
.chip[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: var(--white); }
.step-note { margin: 14px 0 0; }
.step-prompt { margin: 0; color: var(--ink-soft); font-weight: 600; }
.step-prompt:empty { display: none; }

/* ---------- Page headers + filters ---------- */
.page-head { padding: 44px 0 20px; }
.filters {
  display: grid; gap: 12px; padding: 18px; margin: 12px 0 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
select, input, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
}
textarea { min-height: 110px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--berry); outline: 3px solid rgba(122,46,59,.2); outline-offset: 0; }
.result-count { margin: 0 0 18px; color: var(--ink-soft); font-weight: 600; }
.empty { text-align: center; padding: 48px 20px; background: var(--white); border-radius: 22px; }
.empty h2 { font-size: 1.6rem; }
.empty p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

/* ---------- Size chart + guide ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 22px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption { text-align: left; padding: 16px 18px 6px; color: var(--ink-soft); font-size: .95rem; }
th, td { padding: 12px 18px; text-align: left; }
thead th { background: var(--ink); color: var(--white); font-weight: 700; font-size: .95rem; }
tbody tr:nth-child(even) { background: var(--paper); }
tbody th { font-weight: 800; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: .6em; max-width: 64ch; }
.guide { display: grid; gap: 14px; }
.guide-item { background: var(--white); border-radius: 18px; padding: 18px 20px; }
.guide-item h3 { font-size: 1.3rem; margin-bottom: 4px; }
.guide-item h3 a { color: var(--ink); text-decoration: none; }
.guide-item h3 a:hover { color: var(--berry); text-decoration: underline; }
.guide-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Calculator + forms ---------- */
.two-col { display: grid; gap: 28px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.form-grid { display: grid; gap: 16px; }
.row-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.row-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.hint { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.error { margin: 0; padding: 12px 16px; background: #F1E3DE; color: #5E222D; border-radius: 12px; font-weight: 600; }
.notice { margin: 0 0 16px; padding: 12px 16px; background: var(--lilac); border-radius: 12px; }
.result { background: var(--ink); color: var(--white); border-radius: 26px; padding: 28px; }
.result a:not(.btn) { color: var(--lilac); }
.result-label { margin: 0; font-size: .95rem; color: var(--lilac); font-weight: 700; }
.result-size { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; margin: 2px 0 8px; }
.result-alt { margin: 0 0 12px; color: #EBD5D2; }
.result-note { margin: 16px 0 0; padding: 12px 14px; background: rgba(255,255,255,.1); border-radius: 12px; font-size: .98rem; }
.result-rule { border: 0; border-top: 1px solid rgba(255,255,255,.25); margin: 22px 0; }
.result-fine { margin: 20px 0 0; font-size: .9rem; color: #E0C9C6; }
.result-placeholder { background: var(--lilac); color: var(--ink-soft); border-radius: 26px; padding: 28px; }
.result-placeholder p { margin: 0; }

/* ---------- Stylist band (every page) ---------- */
.stylist-band { background: var(--berry); color: var(--white); padding: 52px 0; margin-top: 40px; }
.band-inner { display: grid; gap: 24px; align-items: center; }
.stylist-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 8px; }
.stylist-band p { margin: 0; max-width: 52ch; color: #F3E1DD; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E0C9C6; padding: 36px 0 44px; }
.foot-inner { display: grid; gap: 10px; }
.foot-logo { font-size: 2rem; color: var(--white); margin: 0; }
.foot-tag { margin: 0 0 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { color: var(--white); text-decoration: none; padding: 6px 0; }
.foot-nav a:hover { color: var(--lilac); text-decoration: underline; }


/* ---------- Single look page ---------- */
.card-img-link { display: block; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--berry); text-decoration: underline; }
.look-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 0 20px; align-items: start; }
.look-media { position: relative; max-width: 360px; width: 100%; justify-self: center; }
.look-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: var(--arch); background: var(--lilac); }
.look-price { font-size: 1.3rem; font-weight: 800; margin: 0 0 18px; }
.look-price .was { font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.look-fact { margin: 0 0 8px; }
.look-fact strong { display: inline-block; min-width: 64px; }
.look-sub { font-size: 1.3rem; margin: 22px 0 6px; }
.look-note { margin: 0 0 6px; max-width: 52ch; }
.look-copy { margin: 0 0 14px; }
.look-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
@media (min-width: 720px) {
  .look-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 48px; padding-top: 48px; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .top-links { display: flex; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
  .posts { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); align-items: end; }
  .filters .field-search { grid-column: 1 / -1; }
  .filters .field-reset { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .guide { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1.4fr 1fr; }
  .band-actions { justify-content: flex-end; }
}
@media (min-width: 960px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 56px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 72px 0; }
}

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