/* Jesmira Glow Chamber: "AM / PM Routine". One switch turns the whole chamber from blush morning sun to burnt-umber evening lamplight. Products sit on the layers of the routine they belong to, drawn as a cross-section of skin. */
:root {
  --bg: #faf0ea;
  --bg-2: #f4e2d6;
  --card: #fffaf6;
  --ink: #3a1f14;
  --muted: #7a5a4c;
  --line: rgba(58, 31, 20, .14);
  --line-strong: rgba(58, 31, 20, .3);
  --accent: #c4572b;
  --accent-ink: #a8441d;
  --accent-soft: #f6d8c6;
  --on-accent: #fff8f3;
  --glow: rgba(255, 196, 120, .55);
  --l1: #fbe9dd; --l2: #f7dbc9; --l3: #f2c9b1; --l4: #eab598; --l5: #e09f80;
  --sky-a: #ffe3c4; --sky-b: #f7b98f;
  --error: #a3261b;
  --display: 'Josefin Sans', 'Century Gothic', 'Futura', system-ui, sans-serif;
  --text: 'Kumbh Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-mode="pm"] {
  --bg: #2a1610;
  --bg-2: #341c13;
  --card: #3f2318;
  --ink: #f6e6da;
  --muted: #d1b4a3;
  --line: rgba(246, 230, 218, .14);
  --line-strong: rgba(246, 230, 218, .3);
  --accent: #e8915f;
  --accent-ink: #f2a77a;
  --accent-soft: #4f2c1e;
  --on-accent: #2a1610;
  --glow: rgba(255, 170, 90, .28);
  --l1: #3a2016; --l2: #44251a; --l3: #4e2b1e; --l4: #5a3222; --l5: #673a27;
  --sky-a: #3b2a52; --sky-b: #1d1426;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 86px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); overflow-x: clip; transition: background-color .7s ease, color .7s ease; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--on-accent); padding: .7rem 1rem; font-weight: 600; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
[hidden] { display: none !important; }

/* Mode-only text */
:root[data-mode="am"] .t-pm, :root[data-mode="pm"] .t-am, :root:not([data-mode]) .t-pm { display: none; }

/* Type */
.kicker { font: 600 .74rem/1.4 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
h1, h2 { font-family: var(--display); font-weight: 200; line-height: 1.05; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--accent-ink); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.lede { font-size: 1.12rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); text-decoration: none; font: 600 .95rem/1.2 var(--text); letter-spacing: .02em; transition: background-color .3s, color .3s, border-color .3s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

/* Header: solid, unfiltered and untransformed so the fixed mobile menu is never trapped */
.header { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .7s ease; }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.mark { display: block; width: 40px; height: 38px; flex: none; background: var(--accent); -webkit-mask: url(../image/site/mark.webp) center / contain no-repeat; mask: url(../image/site/mark.webp) center / contain no-repeat; transition: background-color .7s; }
.word { display: flex; flex-direction: column; line-height: 1; }
.word span:first-child { font: 300 1.2rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); margin-right: -.2em; }
.word span:last-child { font: 600 .58rem/1 var(--text); letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }
.nav-list { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.7rem); }
.nav-link { font: 500 .92rem/1 var(--text); text-decoration: none; padding: .6rem 0; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .25s; }
.nav-link:hover { background-size: 100% 1px; }
.nav-close-li { display: none; }
.back-link { margin-left: auto; font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* The AM / PM switch: the sun sets behind the horizon and the moon rises */
.mode { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .3rem .85rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); transition: background-color .7s, border-color .7s; }
.mode-sky { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: linear-gradient(180deg, var(--sky-a), var(--sky-b)); transition: background .9s; }
.mode-sun, .mode-moon { position: absolute; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .9s; }
.mode-sun { top: 9px; background: #ffb347; box-shadow: 0 0 10px 3px rgba(255, 180, 70, .6); }
.mode-moon { top: 9px; background: transparent; box-shadow: inset -5px 3px 0 0 #fbe7c8; transform: translateY(30px); opacity: 0; }
.mode-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: var(--accent); opacity: .85; }
:root[data-mode="pm"] .mode-sun { transform: translateY(26px); opacity: 0; }
:root[data-mode="pm"] .mode-moon { transform: none; opacity: 1; }
.mode-label { position: relative; display: grid; font: 400 1rem/1 var(--display); letter-spacing: .14em; }
.mode-label span { grid-area: 1 / 1; transition: opacity .5s, transform .5s; }
.ml-pm { opacity: 0; transform: translateY(6px); }
:root[data-mode="pm"] .ml-am { opacity: 0; transform: translateY(-6px); }
:root[data-mode="pm"] .ml-pm { opacity: 1; transform: none; }

.cart-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .3rem .35rem .3rem 1rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); border: 0; font: 600 .9rem/1 var(--text); }
.cart-btn:hover { background: var(--accent-ink); }
.cart-count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .4rem; border-radius: 999px; background: var(--on-accent); color: var(--accent-ink); font-weight: 700; }
.cart-btn.pop { animation: pulse .6s ease; }
@keyframes pulse { 40% { box-shadow: 0 0 0 8px var(--glow); } }
.nav-toggle, .nav-close { display: none; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong); }

@media (max-width: 1023px) {
  .nav-toggle { display: grid; flex: 0 0 auto; }
  .nav-list { display: none; }
  .nav-list.open { display: flex; position: fixed; inset: 0; z-index: 200; height: 100dvh; overflow-y: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; padding: 6rem 2rem 3rem; background: var(--bg); }
  .nav-list.open .nav-link { font: 200 2.5rem/1.2 var(--display); }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 14px; right: 16px; }
  .nav-close { display: grid; }
}
@media (max-width: 520px) {
  .nav { gap: .45rem; min-height: 66px; }
  .word span:first-child { font-size: .98rem; letter-spacing: .12em; margin-right: -.12em; }
  .word span:last-child { letter-spacing: .26em; }
  .mark { width: 32px; height: 30px; }
  .cart-word, .mode-label { display: none; }
  .mode { padding: .3rem; }
  .cart-btn { padding: .3rem; }
}

/* Hero */
.hero { position: relative; overflow: clip; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); background: radial-gradient(70% 60% at 85% 20%, var(--glow), transparent 70%), var(--bg); transition: background-color .7s; }
.hero-ghost { position: absolute; left: -1.5vw; bottom: -5vw; font: 200 clamp(9rem, 26vw, 22rem)/.8 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none; display: grid; }
.hero-ghost span { grid-area: 1 / 1; transition: opacity .8s, transform .9s cubic-bezier(.5, 0, .2, 1); }
.g-pm { opacity: 0; transform: translateY(12%); }
:root[data-mode="pm"] .g-am { opacity: 0; transform: translateY(-12%); }
:root[data-mode="pm"] .g-pm { opacity: 1; transform: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.4rem; align-items: center; }
.hero-time { font: 600 .82rem/1.5 var(--text); letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; margin-bottom: 1.4rem; }
.hero h1 em { display: block; }
.hero .lede { max-width: 34rem; color: var(--muted); }
.tagalog { margin-top: 1.1rem; font: italic 300 1.35rem/1.35 var(--display); color: var(--accent-ink); }
.hero-window { position: relative; justify-self: center; width: min(560px, 100%); padding: 14px; border-radius: 280px 280px 24px 24px; background: var(--card); box-shadow: 0 40px 80px -40px rgba(58, 31, 20, .45); transition: background-color .7s; }
.hero-sky { position: absolute; inset: 14px; border-radius: 266px 266px 14px 14px; background: linear-gradient(180deg, var(--sky-a), var(--sky-b)); transition: background .9s; }
.hero-window img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 266px 266px 14px 14px; mix-blend-mode: normal; }
:root[data-mode="pm"] .hero-window img { filter: brightness(.82) sepia(.15); }
.hero-window img { transition: filter .9s; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } }

/* Shop: the routine as a cross-section of skin */
.shop { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem); background: var(--bg); transition: background-color .7s; }
.shop-head { display: grid; gap: 1rem; align-items: end; }
.shop-head > p { color: var(--muted); max-width: 36rem; }
@media (min-width: 900px) { .shop-head { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.views { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.view-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .45rem 1.1rem .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.view-btn:hover { border-color: var(--accent); }
.view-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vb-n { font-size: .78rem; opacity: .7; }
.vb-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.vb-sun { background: #ffb347; box-shadow: 0 0 6px 1px rgba(255, 179, 71, .7); }
.vb-moon { background: transparent; box-shadow: inset -4px 2px 0 0 #c9a487; }
.view-btn[aria-pressed="true"] .vb-moon { box-shadow: inset -4px 2px 0 0 #fbe7c8; }

.routines { margin-top: 2.4rem; display: grid; gap: 3.5rem; }
.routines[data-view="am"] .routine--pm, .routines[data-view="pm"] .routine--am { display: none; }
.routine-head { display: grid; gap: .3rem; margin-bottom: 1.4rem; }
.routine-tag { font: 300 2.6rem/1 var(--display); letter-spacing: .14em; color: var(--accent); }
.routine-head h3 { font: 300 1.7rem/1.2 var(--display); }
.routine-head p:last-child { color: var(--muted); }
.strata { counter-reset: none; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.layer { position: relative; display: grid; gap: 1rem; padding: 1.6rem clamp(1rem, 3vw, 2rem) 1.8rem; background: var(--l1); transition: background-color .7s; }
.layer--2 { background: var(--l2); } .layer--3 { background: var(--l3); } .layer--4 { background: var(--l4); } .layer--5 { background: var(--l5); }
/* the wavy top edge of each layer, like a skin cross-section */
.layer + .layer::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 20px; background: inherit; -webkit-mask: radial-gradient(14px 10px at 50% 10px, #000 99%, transparent) 0 0 / 36px 20px repeat-x; mask: radial-gradient(14px 10px at 50% 10px, #000 99%, transparent) 0 0 / 36px 20px repeat-x; }
.layer-key { display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; align-items: baseline; }
.layer-no { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong); font: 300 1.4rem/1 var(--display); color: var(--accent-ink); }
.layer-name { font: 400 1.35rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.layer-why { color: var(--muted); font-size: .95rem; }
.layer-items { display: grid; gap: .8rem; }
@media (min-width: 700px) { .layer-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .layer { grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: center; }
  .layer-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A product on its layer: a horizontal label */
.product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .7rem; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: background-color .7s, box-shadow .3s, border-color .3s; }
.product-card.in-cart { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.item-photo { border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.item-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.item-step { font: 600 .7rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.item-body h4 { font: 400 1.12rem/1.25 var(--display); margin-top: .2rem; }
.item-desc { margin-top: .25rem; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; }
.item-price, .price { font: 600 1.05rem/1 var(--text); }
.cur { margin-right: .04em; }
.add-btn { min-height: 44px; padding: .5rem .95rem; border-radius: 999px; background: transparent; color: var(--accent-ink); border: 1px solid var(--accent); font: 600 .84rem/1 var(--text); transition: background-color .2s, color .2s; }
.add-btn:hover { background: var(--accent); color: var(--on-accent); }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent-soft); }
.stepper button, .qty button { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: var(--ink); }
.stepper button:hover, .qty button:hover { background: rgba(196, 87, 43, .16); }
.stepper button:disabled, .qty button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; }
.stock { margin-top: .4rem; font-size: .76rem; color: var(--muted); }
@media (max-width: 420px) {
  .product-card { grid-template-columns: 92px minmax(0, 1fr); gap: .75rem; }
  .buy { flex-direction: column; align-items: stretch; }
  .add-btn { width: 100%; }
  .stepper { justify-content: space-between; }
}

/* The chamber: story with a product-label panel */
.chamber { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--bg-2); transition: background-color .7s; }
.chamber-grid { display: grid; gap: 2.6rem; align-items: center; }
.chamber-photo { border-radius: 24px 24px 200px 24px; overflow: hidden; }
.chamber-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.chamber-copy h2 { margin-bottom: 1.3rem; }
.chamber-copy > p + p { margin-top: 1rem; color: var(--muted); }
.label-panel { margin-top: 2rem; padding: 1.4rem 1.5rem 1.5rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line-strong); transition: background-color .7s; }
.lp-head { font: 600 .72rem/1.3 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.lp-head--dir { margin-top: 1.2rem; }
.lp-list div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px dotted var(--line-strong); }
.lp-list dt { font: 400 1.05rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.lp-list dd { color: var(--muted); font-size: .95rem; }
.lp-dir { padding-top: .7rem; font: italic 300 1.2rem/1.45 var(--display); }
@media (max-width: 480px) { .lp-list div { grid-template-columns: 1fr; gap: .1rem; } }
@media (min-width: 900px) { .chamber-grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); } }

/* Glow notes */
.notes { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.notes-grid { display: grid; gap: 1.4rem; }
.note { position: relative; padding: 2rem 1.8rem 1.6rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.2rem; overflow: hidden; transition: background-color .7s; }
.note::before { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); }
.note blockquote p { position: relative; font: 300 clamp(1.25rem, 2.2vw, 1.55rem)/1.4 var(--display); }
.note figcaption { margin-top: auto; font-weight: 600; color: var(--accent-ink); }
@media (min-width: 860px) { .notes-grid { grid-template-columns: 1fr 1.2fr 1.2fr; align-items: stretch; gap: 1.6rem; } }

/* Skin questions */
.questions { padding: 0 0 clamp(4.5rem, 9vw, 7rem); }
.questions-grid { display: grid; gap: 2.4rem; align-items: start; }
.questions-photo { border-radius: 24px; overflow: hidden; }
.questions-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.questions h2 { margin-bottom: 1.4rem; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 58px; padding: 1rem 0; cursor: pointer; list-style: none; font: 400 1.2rem/1.3 var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--accent); transition: transform .25s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { padding: 0 2.5rem 1.2rem 0; color: var(--muted); }
@media (min-width: 900px) { .questions-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } .questions-photo { position: sticky; top: 100px; } }

/* Visit */
.visit { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--bg-2); transition: background-color .7s; }
.visit-grid { display: grid; gap: 2.6rem; align-items: center; }
.visit h2 { margin-bottom: 1rem; }
.open-now { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.6rem; font-weight: 600; color: var(--muted); }
.open-now::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open-now.is-open { color: var(--ink); }
.open-now.is-open::before { background: #3c9a5f; box-shadow: 0 0 0 4px rgba(60, 154, 95, .2); }
.visit-list { font-style: normal; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.visit-list > div { padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: background-color .7s; }
.visit-list h3 { font: 600 .74rem/1.3 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .45rem; }
.visit-list p, .visit-list a { overflow-wrap: anywhere; }
.visit-list a { font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.visit-list > div > a { display: inline-block; margin-top: .6rem; }
.policy-links { margin-top: 1.8rem; display: grid; gap: .9rem; }
.policy-links li { display: grid; gap: .2rem; }
.policy-links a { font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.policy-links span { font-size: .9rem; color: var(--muted); }
.visit-photo { border-radius: 200px 200px 24px 24px; overflow: hidden; max-width: 440px; justify-self: center; }
.visit-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (min-width: 640px) { .visit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .visit-list .wide { grid-column: 1 / -1; } }
@media (min-width: 960px) { .visit-grid { grid-template-columns: 1.3fr 1fr; gap: 4.5rem; } }

/* Footer */
.footer { padding: 4rem 0 2rem; background: var(--ink); color: var(--bg); transition: background-color .7s, color .7s; }
.footer-top { display: grid; gap: 2.4rem; }
.footer-line { display: flex; align-items: center; gap: 1.1rem; font: 200 1.9rem/1.15 var(--display); }
.footer-line em { font-style: italic; font-weight: 300; color: var(--accent-soft); }
.foot-ampm { display: inline-flex; flex-direction: column; font: 300 1rem/1.1 var(--display); letter-spacing: .2em; padding: .5rem .7rem; border: 1px solid currentColor; border-radius: 12px; }
.footer h2 { font: 600 .72rem/1.3 var(--text); letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-bottom: .9rem; }
.footer li + li { margin-top: .45rem; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(250, 240, 234, .2); font-size: .85rem; opacity: .8; }
:root[data-mode="pm"] .footer-bottom { border-top-color: rgba(42, 22, 16, .2); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.6fr repeat(3, 1fr); } }

/* Cart drawer: the printed routine card */
.cart-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(42, 22, 16, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(430px, 100%); display: flex; flex-direction: column; background: var(--card); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s, background-color .7s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 2px solid var(--ink); }
.cart-head h2 { font: 300 1.7rem/1.1 var(--display); }
.cart-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: none; border: 1px solid var(--line-strong); }
.cart-items { flex: 1; overflow-y: auto; padding: .4rem 1.3rem; counter-reset: step; }
.cart-item { counter-increment: step; position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1rem 0 1rem 2.2rem; border-bottom: 1px dotted var(--line-strong); }
.cart-item::before { content: counter(step); position: absolute; left: 0; top: 1.1rem; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-ink); font: 400 .9rem/1 var(--display); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-item h3 { font: 400 1rem/1.25 var(--display); }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent-soft); }
.qty button { width: 40px; height: 40px; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }
.cart-item-sub { font-weight: 600; }
.cart-remove { margin-top: .35rem; padding: .3rem 0; background: none; border: 0; font-size: .84rem; color: var(--muted); text-decoration: underline; }
.cart-empty { padding: 3rem 0; text-align: center; }
.cart-empty p { font: 300 1.4rem/1.3 var(--display); margin-bottom: 1.2rem; }
.cart-foot { padding: 1.2rem 1.3rem 1.4rem; border-top: 2px solid var(--ink); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total .price { font-size: 1.3rem; }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin-top: .8rem; font-size: .84rem; color: var(--muted); text-align: center; }

/* Order page */
.order-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.order-intro { max-width: 40rem; margin-bottom: 2.2rem; }
.order-intro h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: .9rem; }
.order-intro .lede { color: var(--muted); }
.order { display: grid; gap: 2rem; align-items: start; }
.order-form { background: var(--card); border-radius: 22px; border: 1px solid var(--line); padding: 2rem clamp(1.1rem, 4vw, 2.2rem); }
.order-form h2, .summary h2 { font-size: 1.9rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .95rem; font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-hint { margin-top: .35rem; font-size: .84rem; color: var(--muted); }
.field-error { margin-top: .35rem; font-size: .88rem; font-weight: 600; color: var(--error); }
:root[data-mode="pm"] .field-error { color: #ff9c8a; }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: .6rem; }
.summary { background: var(--ink); color: var(--bg); border-radius: 22px; padding: 2rem clamp(1.1rem, 4vw, 2rem); }
.summary h2 { color: var(--bg); }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .8rem 0; border-bottom: 1px dotted rgba(250, 240, 234, .3); vertical-align: top; }
:root[data-mode="pm"] .summary td { border-bottom-color: rgba(42, 22, 16, .3); }
.summary td small { display: block; margin-top: .2rem; opacity: .75; font-size: .84rem; }
.summary td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; }
.summary-total .price { font-size: 1.5rem; }
.summary-note { margin-top: 1.2rem; }
.summary-note a { text-underline-offset: 4px; }
.sent { max-width: 44rem; background: var(--card); border-radius: 22px; border: 1px solid var(--line); padding: 2.4rem clamp(1.1rem, 4vw, 2.4rem); }
.sent h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 1rem; }
.sent-copy { margin-top: 2rem; }
.sent-copy pre { margin-top: 1rem; padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; }
@media (min-width: 900px) { .order { grid-template-columns: 1.4fr 1fr; gap: 3rem; } .summary { position: sticky; top: 96px; } }

/* Legal pages */
.legal-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.5rem); background: var(--bg-2); transition: background-color .7s; }
.legal-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.legal-body { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.7rem; margin: 2.2rem 0 .7rem; }
.legal p + p { margin-top: .9rem; }
.legal ul, .legal ol { padding-left: 1.3rem; list-style: disc; margin-top: .6rem; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
