:root {
    --bg: #f7f2ec;
    --surface: #fffdf9;
    --ink: #2b2420;
    --muted: #7a6e66;
    --line: #e8dfd5;
    --accent: #b4583c;
    --accent-ink: #ffffff;
    --tile-skincare: #ecdccf;
    --tile-makeup: #efd6d4;
    --tile-haircare: #e8dccb;
    --tile-clothes: #dcdfd0;
    --tile-teens: #d9e2e6;
    --tile-ink: rgba(43, 36, 32, 0.55);
    --gold: #c9a25a;
    --gold-text: #8a6626;
    --gold-soft: #f1e6cc;
    --gold-line: rgba(201, 162, 90, 0.5);
    --gold-sheen: linear-gradient(135deg, #e6c987 0%, #c9a25a 50%, #a8823f 100%);
    --radius: 18px;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1a1614; --surface: #241f1c; --ink: #f2ebe4; --muted: #a89b91;
      --line: #3a322d; --accent: #e08a6b; --accent-ink: #1a1614;
      --tile-skincare: #3b302a; --tile-makeup: #3d2c2c; --tile-haircare: #3a3128; --tile-clothes: #2f3229; --tile-teens: #2b3337;
      --tile-ink: rgba(242, 235, 228, 0.5);
      --gold: #d9b56a; --gold-text: #e0c07e; --gold-soft: #3a3020;
      --gold-line: rgba(217, 181, 106, 0.4);
    }
  }
  :root[data-theme="dark"] {
    --bg: #1a1614; --surface: #241f1c; --ink: #f2ebe4; --muted: #a89b91;
    --line: #3a322d; --accent: #e08a6b; --accent-ink: #1a1614;
    --tile-skincare: #3b302a; --tile-makeup: #3d2c2c; --tile-haircare: #3a3128; --tile-clothes: #2f3229; --tile-teens: #2b3337;
    --tile-ink: rgba(242, 235, 228, 0.5);
    --gold: #d9b56a; --gold-text: #e0c07e; --gold-soft: #3a3020;
    --gold-line: rgba(217, 181, 106, 0.4);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

  /* Nav */
  .nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold-line); }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
  .logo { font-family: var(--serif); font-size: 24px; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
  .logo { display: flex; align-items: center; }
  .logo-mark img { display: block; height: 48px; width: auto; }
  .nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
  .nav ul a { text-decoration: none; color: var(--muted); }
  .nav ul a:hover { color: var(--ink); }
  .nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }

  /* Hero */
  .hero { padding: 72px 0 56px; }
  .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--gold-text); margin: 0 0 14px;
    display: flex; align-items: center; gap: 12px; }
  .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
  .hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 64px); line-height: 1.05;
    letter-spacing: -0.02em; margin: 0 0 18px; max-width: 14ch; }
  .hero h1 em { color: var(--accent); }
  .hero p.lede { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
  .definition { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); margin: -8px 0 28px;
    padding: 4px 0 4px 14px; border-left: 2px solid var(--gold); }
  .definition strong { font-style: normal; font-weight: 600; color: var(--gold-text); }
  .btn { display: inline-block; background: var(--gold-sheen); color: #2b2420; text-decoration: none;
    font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
    box-shadow: 0 6px 18px -8px rgba(168, 130, 63, 0.6); transition: filter .2s, box-shadow .2s; }
  .btn:hover { filter: brightness(1.06); box-shadow: 0 8px 22px -8px rgba(168, 130, 63, 0.75); }

  /* Section heads */
  section.block { padding: 48px 0; border-top: 1px solid var(--line); }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
  .section-head h1, .section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; margin: 0; }
  .section-head h1::after, .section-head h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 10px; background: var(--gold-sheen); border-radius: 2px; }

  /* Controls */
  .controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
  .chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip { font: 500 14px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
    padding: 8px 16px; border-radius: 999px; cursor: pointer; }
  .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .search { flex: 1 1 220px; max-width: 320px; margin-left: auto; font: 15px var(--sans); color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
  .search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
  .chip:hover { border-color: var(--gold); }

  /* Grid + cards */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
  .card:hover { border-color: var(--gold-line); transform: translateY(-2px); box-shadow: 0 10px 28px -14px rgba(168, 130, 63, 0.45); }
  .tile { aspect-ratio: 4 / 3.4; display: grid; place-items: center; position: relative; text-decoration: none; }
  .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px;
    filter: drop-shadow(0 8px 14px rgba(43, 36, 32, 0.22)); }
  .tile[data-cat="books"] img { padding: 22px 0 18px; }
  .tile .art { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14% 0 6%;
    filter: drop-shadow(0 8px 12px rgba(43, 36, 32, 0.16)); transition: transform .25s; }
  .card:hover .tile .art { transform: translateY(-3px) rotate(-1.5deg); }
  .tile .initial { font-family: var(--serif); font-style: italic; font-size: 72px; color: var(--tile-ink); }
  .tile[data-cat="skincare"] { background: var(--tile-skincare); }
  .tile[data-cat="makeup"] { background: var(--tile-makeup); }
  .tile[data-cat="haircare"] { background: var(--tile-haircare); }
  .tile[data-cat="teens"] { background: var(--tile-teens); }
  .tile[data-cat="clothes"] { background: var(--tile-clothes); }
  .tile[data-cat="books"], .tile[data-cat="giftcards"] { background: var(--gold-soft); }
  .group-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 18px 0 2px;
    font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--muted); }
  .group-head:first-child { margin-top: 0; }
  .cat-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--gold-line);
    font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.01em; }
  .cat-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .cat-count { font: 600 13px var(--sans); color: var(--gold-text); background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap; }
  .cat-count:hover { color: var(--ink); }
  .cat-head + .group-head { margin-top: 0; }
  .grid.grouped .badge:not(.fav) { display: none; }
  .group-head::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
  .badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; background: var(--surface); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
  .badge.fav { left: auto; right: 12px; background: var(--gold-sheen); color: #2b2420; box-shadow: 0 2px 8px -2px rgba(168, 130, 63, 0.5); }
  .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .brand { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
  .card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; margin: 0; }
  .desc { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; }
  .note { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; }
  .note::before { content: "\201C"; color: var(--gold); } .note::after { content: "\201D"; color: var(--gold); }
  .card .shop { margin-top: auto; padding-top: 14px; }
  .shop a { display: flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
    font-size: 14px; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 14px; }
  .shop a:hover { background: var(--ink); color: var(--bg); }
  .empty { text-align: center; color: var(--muted); padding: 48px 0; display: none; }

  /* Routine */
  .routine { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .routine-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
  .routine-col h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 14px; }
  .routine-col ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
  .routine-col li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
  .routine-col li:first-child { border-top: 0; }
  .routine-col li::before { content: counter(step); font-family: var(--serif); font-size: 20px; color: var(--gold-text); }
  .routine-col li a { display: block; font-weight: 600; text-decoration: none; line-height: 1.35; }
  .routine-col li a em { font-style: normal; font-weight: 500; color: var(--muted); }
  .routine-col li a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
  .routine-col li .step-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-text); font-weight: 600; margin-bottom: 3px; }
  .routine-col li .offsite { display: block; font-weight: 600; line-height: 1.35; }
  .routine-col li .tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
  .routine-col li .plus { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin: 2px 0; }

  /* About */
  .about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
  .about-photo { display: block; width: 100%; max-width: 250px; aspect-ratio: 1; height: auto; object-fit: cover;
    border-radius: 50%; padding: 6px; background: var(--gold-sheen);
    box-shadow: 0 18px 40px -22px rgba(168, 130, 63, 0.6); }
  .about p { color: var(--muted); font-size: 17px; margin: 0 0 14px; max-width: 56ch; }

  /* Footer */
  footer { border-top: 1px solid var(--gold-line); padding: 32px 0 48px; font-size: 13px; color: var(--muted); }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
  footer p { margin: 0; }
  .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
  .foot-links a { color: var(--muted); text-decoration: none; }
  .foot-links a:hover { color: var(--ink); }

  /* Contact pop-up */
  .modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
    background: rgba(26, 22, 20, 0.45); backdrop-filter: blur(3px); }
  .modal[hidden] { display: none; }
  .modal-box { position: relative; width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--gold-line);
    border-radius: var(--radius); padding: 28px 26px 24px; box-shadow: 0 24px 60px -24px rgba(43, 36, 32, 0.45); }
  .modal-box h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 6px; }
  .modal-desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
  .modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none;
    font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
  .modal-close:hover { color: var(--ink); background: var(--bg); }
  #contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
  #contact-form input, #contact-form textarea { display: block; width: 100%; margin-top: 6px; font: 15px var(--sans);
    color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; }
  #contact-form input:focus, #contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
  #contact-form .btn { width: 100%; margin-top: 4px; }
  #contact-form .btn:disabled { opacity: .7; cursor: default; }
  .form-result { font-size: 14px; color: var(--gold-text); margin: 12px 0 0; min-height: 1em; }

  @media (max-width: 720px) {
    .nav ul { gap: 14px; }
    .nav .wrap { height: 68px; }
    .logo-mark img { height: 38px; }
    .hero { padding: 48px 0 40px; }
    .routine, .about { grid-template-columns: 1fr; }
    .about-photo { max-width: 200px; }
    .search { max-width: none; margin-left: 0; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .card h3 { font-size: 17px; }
    .shop a { font-size: 13px; padding: 9px 8px; gap: 6px; white-space: nowrap; }
    .card-body { padding: 14px 12px 14px; }
    .tile .initial { font-size: 56px; }
  }

  section[id] { scroll-margin-top: 80px; }

  /* Inner pages */
  .page-head { padding: 56px 0 8px; }
  .page-head .lede { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 0; }
  section.block.flush { border-top: 0; padding-top: 28px; }
  .about-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
  .btn.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
  .btn.ghost:hover { background: var(--ink); color: var(--bg); filter: none; }
  @media (max-width: 720px) { .page-head { padding: 40px 0 4px; } }
