/* HALCIE shared styles: tokens, type, header, bag, buttons, forms, footer. */
:root {
  --milk: #fbf8f4;
  --porcelain: #f2eae1;
  --sand: #e4d6c8;
  --sand-2: #d3c0ad;
  --apricot: #e7a985;
  --clay: #9a553a;
  --ink: #2a1f1a;
  --ink-2: #66554b;
  --cocoa: #1c1512;
  --dew: #b9c4bf;
  --line: rgba(42, 31, 26, .14);
  --r: 22px;
  --gut: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --slow: cubic-bezier(.6, 0, .2, 1);
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans: 'Albert Sans', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--milk); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.55; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--apricot); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--milk); padding: 10px 16px; border-radius: 99px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gut); }
.on-dark { color: var(--milk); background: var(--cocoa); }

/* type */
.d { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; line-height: .95; letter-spacing: -.025em; margin: 0; }
.d em { font-style: italic; font-weight: 400; }
.d-xl { font-size: clamp(54px, 9.6vw, 176px); }
.d-l { font-size: clamp(42px, 6.2vw, 108px); }
.d-m { font-size: clamp(32px, 3.8vw, 62px); }
.d-s { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.05; }
.k { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink-2); }
.on-dark .k { color: #e3cdb9; }
.lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; max-width: 34em; margin: 0; color: var(--ink-2); }
.on-dark .lede { color: #eadbcd; }
.num { font-variant-numeric: tabular-nums; }
.pct { font-family: var(--serif); font-style: italic; }

/* buttons */
.btn {
  --bg: var(--ink); --fg: var(--milk);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 99px;
  background: var(--bg); color: var(--fg); border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(42, 31, 26, .6); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-milk { --bg: var(--milk); --fg: var(--ink); }
.btn-clay { --bg: var(--clay); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-glass { --bg: rgba(251, 248, 244, .2); --fg: var(--milk); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-wide { width: 100%; }
.link { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; border: 0; border-bottom: 1.5px solid currentColor; padding: 0 0 3px; background: none; cursor: pointer; }
.link::after { content: '\2192'; transition: transform .3s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* header: wordmark left, frosted glass pill right (the reference's spirit) */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: 84px; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gut); color: var(--milk); pointer-events: none; transition: color .35s; }
.top > * { pointer-events: auto; }
.top.dark, .solid-top .top { color: var(--ink); }
.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; line-height: 1; }
.logo b { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: .14em; }
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); display: inline-block; transform: translateY(-14px); }
.pill { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px; background: rgba(251, 248, 244, .16); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 10px 30px -18px rgba(0, 0, 0, .4); transition: background-color .35s, box-shadow .35s; }
.top.dark .pill, .solid-top .top .pill { background: rgba(251, 248, 244, .8); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(42, 31, 26, .35); }
.pill a, .pill button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 99px; text-decoration: none; font-size: 14px; font-weight: 600; background: none; border: 0; cursor: pointer; transition: background-color .25s; }
.pill a:hover, .pill button:hover, .pill a[aria-current="page"] { background: rgba(255, 255, 255, .22); }
.top.dark .pill a:hover, .solid-top .top .pill a:hover, .top.dark .pill a[aria-current="page"], .solid-top .pill a[aria-current="page"] { background: rgba(42, 31, 26, .07); }
.pill svg { width: 18px; height: 18px; }
.pill .bag-btn { background: var(--milk); color: var(--ink); }
.top.dark .pill .bag-btn, .solid-top .pill .bag-btn { background: var(--ink); color: var(--milk); }
.bag-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--apricot); color: var(--ink); font-size: 11.5px; display: inline-grid; place-items: center; }
.bag-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
.menu-btn { display: none !important; }
@media (max-width: 960px) {
  .pill .nav-x { display: none; }
  .menu-btn { display: inline-flex !important; }
  .logo b { font-size: 25px; }
  .top { height: 72px; }
}
.drawer-nav { position: fixed; inset: 0; z-index: 70; background: var(--porcelain); color: var(--ink); padding: 96px var(--gut) 40px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-102%); transition: transform .55s var(--slow); visibility: hidden; }
.drawer-nav.open { transform: none; visibility: visible; }
.drawer-nav a { font-family: var(--serif); font-size: clamp(34px, 9vw, 54px); text-decoration: none; line-height: 1.15; }
.drawer-nav .x { position: absolute; top: 16px; right: var(--gut); }

/* bag drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(28, 21, 18, .45); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.scrim.open { opacity: 1; visibility: visible; }
.bag { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(460px, 100%); background: var(--milk); display: flex; flex-direction: column; transform: translateX(104%); visibility: hidden; transition: transform .5s var(--slow), visibility .5s; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .35); }
.bag.open { transform: none; visibility: visible; }
.bag > header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.bag h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; }
.ship { padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ship .bar { height: 4px; border-radius: 4px; background: var(--sand); margin-top: 8px; overflow: hidden; }
.ship .bar i { display: block; height: 100%; background: var(--clay); transition: width .5s var(--ease); }
.bag .lines { flex: 1; overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 76px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--porcelain); }
.line h3 { margin: 0 0 2px; font-size: 15.5px; font-weight: 600; }
.line p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.line .pr { font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; }
.qty button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.bag > footer { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.fine { font-size: 13px; color: var(--ink-2); margin: 0; }
.empty { padding: 40px 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: var(--milk); padding: 14px 18px 14px 22px; border-radius: 99px; font-size: 14.5px; display: flex; gap: 16px; align-items: center; transition: transform .45s var(--ease), visibility .45s; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast button { background: none; border: 0; color: var(--apricot); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* product card */
.card { position: relative; display: flex; flex-direction: column; background: var(--porcelain); border-radius: var(--r); overflow: hidden; text-decoration: none; }
.card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .6s; }
.card .ph img.tx { position: absolute; inset: 0; opacity: 0; }
.card:hover .ph img.tx, .card:focus-within .ph img.tx { opacity: 1; }
.card:hover .ph img { transform: scale(1.035); }
.card .no { position: absolute; top: 14px; left: 16px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); }
.card .tag { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(251, 248, 244, .85); padding: 5px 10px; border-radius: 99px; }
.card .bd { padding: 16px 18px 18px; display: grid; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card .kind { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.card .keys { font-size: 13px; color: var(--ink-2); margin: 0; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.card .row b { font-weight: 600; }
.card .add { position: relative; z-index: 2; min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.stars { color: var(--clay); letter-spacing: 1px; font-size: 13px; }

/* media helpers */
.media { position: relative; overflow: hidden; background: var(--sand); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 10px; bottom: 8px; margin: 0; font-size: 10.5px; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); z-index: 2; }

/* reveals: only elements registered by JS ever get hidden */
.rv-wait { opacity: 0; transform: translateY(26px); }
.rv-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

/* forms */
.field { display: grid; gap: 6px; }
.field label, .field .lab { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 16px; border: 1px solid var(--sand-2); border-radius: 14px; background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.err { color: #9b2c1f; font-size: 13px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--sand-2); background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); color: var(--milk); border-color: var(--ink); }
.on-dark .chip { border-color: rgba(251, 248, 244, .35); }
.on-dark .chip[aria-pressed="true"], .on-dark .chip[aria-checked="true"] { background: var(--milk); color: var(--ink); border-color: var(--milk); }

/* footer */
.ft { background: var(--cocoa); color: var(--milk); padding: clamp(64px, 8vw, 120px) 0 0; overflow: hidden; position: relative; }
.ft-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; }
.ft-news p { color: #e3d3c4; max-width: 26em; }
.ft-news form { display: flex; gap: 8px; margin-top: 18px; max-width: 440px; }
.ft-news input { flex: 1; min-width: 0; min-height: 50px; border-radius: 99px; border: 1px solid rgba(251, 248, 244, .3); background: transparent; color: var(--milk); padding: 0 20px; }
.ft-news input::placeholder { color: #cdbcae; }
.ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft h2 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: #e3cdb9; margin: 0 0 14px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft ul a { text-decoration: none; color: #f3e9df; }
.ft ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(251, 248, 244, .16); margin-top: 56px; padding-top: 22px; }
.ft-note { font-size: 13.5px; color: #d9c8b9; margin: 0; max-width: 60em; }
.ft-note a { color: var(--milk); }
.ft-big { font-family: var(--serif); font-weight: 400; letter-spacing: .1em; line-height: .78; margin: 28px 0 -.06em; white-space: nowrap; color: #3a2d26; text-align: center; font-size: 22vw; }
@media (max-width: 860px) {
  .ft-top { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
@media (max-width: 480px) {
  .pill { gap: 2px; padding: 5px; }
  .pill a, .pill button { padding: 0 12px; min-height: 38px; font-size: 13.5px; }
  .pill .bag-btn span { display: none; }
  .logo b { font-size: 22px; letter-spacing: .12em; }
}
