/* LOMM storefront. Tokens live in tokens.css. Mobile first. Sharp corners, no shadows. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.lang-th { font-size: 16px; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }
h1:lang(th), h2:lang(th), h3:lang(th) { line-height: 1.5; }
ul, ol { margin: 0; padding: 0; }
[role='list'] { list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:is(.announce, .site-header, .site-footer, .panel, .split-text) :focus-visible { outline-color: var(--paper); }
main:focus { outline: none; }
[id^='line-'] { scroll-margin-top: 96px; }

.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: 12px; z-index: 50; transform: translateY(-200%);
  background: var(--olive-deep); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { transform: none; }

/* Small labels: 11px, tracked, uppercase. Thai is never tracked and never forced into caps. */
.eyebrow, .site-nav a, .menu-panel a, .tabs a, .lang-switch, .btn, .status, .tag, .crumbs,
.announce p, .value-label, .pdp-notes dt, .ritual-word, .pdp-num {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
:is(.eyebrow, .site-nav a, .menu-panel a, .tabs a, .lang-switch, .btn, .status, .tag, .crumbs,
  .announce p, .value-label, .pdp-notes dt, .ritual-word, .pdp-num):lang(th) {
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
}
.muted { color: var(--ink-mute); }

.page-title { font-size: clamp(26px, 3vw, 34px); text-wrap: balance; }
.section-title { font-size: clamp(22px, 2.4vw, 30px); text-wrap: balance; }
.count { font-size: 13px; font-weight: 400; color: var(--ink-mute); margin-left: 8px; }
.lede { font-size: 17px; color: var(--ink-mute); max-width: 46ch; text-wrap: balance; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 12px 26px;
  border: 1px solid currentColor; border-radius: 0;
  background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--olive-deep); color: var(--paper); border-color: var(--olive-deep); }
.btn--solid { background: var(--olive-deep); color: var(--paper); border-color: var(--olive-deep); }
.btn--solid:hover { background: var(--olive); border-color: var(--olive); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled='true'] {
  background: transparent; color: var(--ink-mute); border-color: var(--line); cursor: not-allowed;
}

/* Brand marks. The wordmark is the brand SVG used as a mask so it takes currentColor. */
.wordmark {
  display: inline-block; width: 84px; aspect-ratio: 3.4 / 1;
  background: currentColor;
  -webkit-mask: url('/assets/img/logo-wordmark.svg') center / contain no-repeat;
  mask: url('/assets/img/logo-wordmark.svg') center / contain no-repeat;
}
.wordmark--md { width: 120px; }
.l-mark {
  display: block; width: 26px; aspect-ratio: 222 / 292;
  background: currentColor;
  -webkit-mask: url('/assets/img/logo-mark.svg') center / contain no-repeat;
  mask: url('/assets/img/logo-mark.svg') center / contain no-repeat;
}

/* Announcement and header. Mobile: menu, logo, tools. Desktop: logo, nav, tools. */
.announce {
  background: var(--olive-deep); color: var(--paper); text-align: center;
  padding: 9px var(--gutter); border-bottom: 1px solid rgba(250, 247, 242, 0.14);
}
.announce p { font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 64px; padding: 0 var(--gutter);
  background: var(--olive-deep); color: var(--paper);
  transition: background-color 0.3s ease;
}
.site-header--over { position: absolute; left: 0; right: 0; background: transparent; }
.js .site-header--over { position: sticky; margin-bottom: -64px; }
.js .site-header--over.is-solid, .site-header:has(.menu[open]) { background: var(--olive-deep); }
.site-header a { text-decoration: none; }
.site-nav { display: none; }
.menu { grid-column: 1; justify-self: start; }
.brand { grid-column: 2; display: block; padding: 8px 0; }
.brand .wordmark { width: 72px; }
.site-tools { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px;
  list-style: none; cursor: pointer;
}
.menu-btn::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; padding: 4px var(--gutter) 20px;
  background: var(--olive-deep); border-top: 1px solid rgba(250, 247, 242, 0.18);
}
.menu-panel a { padding: 14px 0; border-bottom: 1px solid rgba(250, 247, 242, 0.14); }
.lang-switch, .cart-link { padding: 10px 0; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count { font-size: 12px; font-weight: 500; letter-spacing: 0; min-width: 1ch; }
:is(.site-nav, .menu-panel, .site-tools) a:hover,
:is(.site-nav, .menu-panel, .site-tools) a[aria-current='page'] { text-decoration: underline; }
@media (min-width: 1000px) {
  .menu { display: none; }
  .brand { grid-column: 1; justify-self: start; }
  .brand .wordmark { width: 84px; }
  .site-nav { grid-column: 2; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
  .site-nav a { padding: 10px 0; white-space: nowrap; }
}

/* Panels: a full-bleed photo with text over it, bottom left. The scrim keeps the text readable on a light photo. */
.panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(480px, 72vh, 720px);
  background: var(--olive-deep); color: var(--white);
}
.panel--hero { min-height: max(560px, 100svh); }
.panel-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.panel::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(57, 56, 43, 0.88) 0, rgba(57, 56, 43, 0.78) 50%, rgba(57, 56, 43, 0) 95%);
}
.panel--hero::after {
  background:
    linear-gradient(to bottom, rgba(57, 56, 43, 0.5) 0, rgba(57, 56, 43, 0) 24%),
    linear-gradient(to top, rgba(57, 56, 43, 0.88) 0, rgba(57, 56, 43, 0.78) 50%, rgba(57, 56, 43, 0) 95%);
}
.panel-text {
  display: grid; gap: 14px; justify-items: start; max-width: 640px;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
}
.panel-title { font-size: clamp(26px, 3vw, 34px); text-wrap: balance; }
.panel-title--hero { font-size: clamp(30px, 4.2vw, 52px); }
.panel-body { max-width: 46ch; font-size: 16px; }
.panel .btn { margin-top: 8px; color: var(--white); }
.panel .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.mark-lockup { display: flex; align-items: flex-end; gap: 16px; }
.mark-l { width: 36px; }

/* Collection and the product grid: edge to edge, hairline cells */
.collection, .related { background: var(--white); overflow: hidden; padding-top: clamp(48px, 6vw, 88px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  padding: 0 var(--gutter) clamp(24px, 3vw, 40px);
}
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.tabs a { padding: 6px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.tabs a:hover { border-bottom-color: currentColor; }
.section-foot { display: grid; justify-items: center; padding: clamp(32px, 4vw, 56px) var(--gutter); }

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-right: -1px; border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card { background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center; padding: 12%;
  background: var(--paper);
}
.card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 0; left: 0; z-index: 1;
  padding: 4px 10px; background: var(--olive-deep); color: var(--paper);
}
.card-meta { display: grid; gap: 2px; padding: 16px 12px 24px; text-align: center; }
.card-name { font-size: 14px; font-weight: 400; line-height: 1.5; }
.card-desc { font-size: 13px; color: var(--ink-mute); }
.card-price { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-size: 13px; }
.price { font-size: 13px; white-space: nowrap; }
.price--lg { font-size: 18px; font-weight: 500; }
.status { color: var(--ink-mute); white-space: nowrap; }
.status--lg { font-size: 11px; color: var(--ink); }

/* Story and ritual: photo half, text half */
.split { display: grid; }
.split-img { position: relative; min-height: 360px; background: var(--paper-warm); }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text {
  display: grid; gap: 18px; align-content: center;
  padding: clamp(48px, 7vw, 112px) var(--gutter);
  background: var(--olive-deep); color: var(--paper);
}
.split-text .eyebrow { color: var(--mist); }
.split--light .split-text { background: var(--white); color: var(--ink); justify-items: start; }
.split--light .split-text .eyebrow { color: var(--ink-mute); }
.split--light .split-text :focus-visible { outline-color: var(--ink); }
.split-body { max-width: 46ch; }
.split-text .btn { margin-top: 8px; }
.ritual-steps { list-style: none; max-width: 420px; margin-top: 8px; }
.ritual-steps li {
  display: grid; grid-template-columns: 40px 1fr; align-items: baseline;
  padding: 14px 0; border-top: 1px solid rgba(250, 247, 242, 0.18);
}
.ritual-n { font-size: 13px; color: var(--mist); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: clamp(560px, 80vh, 820px); }
  .split:not(.split--light) .split-text { padding-left: clamp(40px, 6vw, 96px); }
}

/* Values strip, above the footer on every page */
.values { background: var(--white); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 72px) var(--gutter); }
.values ul {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px;
  max-width: 880px; margin: 0 auto; text-align: center;
}
.values li { display: grid; justify-items: center; align-content: start; gap: 14px; }
.value-mark { color: var(--olive); }
.value-label { font-weight: 600; }

/* Footer */
.site-footer { background: var(--olive-deep); color: var(--paper); padding: clamp(48px, 6vw, 88px) var(--gutter) 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .eyebrow { font-weight: 600; margin-bottom: 14px; }
.footer-top { display: grid; gap: 40px; max-width: 1440px; margin: 0 auto 48px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-mark { width: 26px; color: var(--paper); }
.footer-tagline { font-size: 18px; font-weight: 600; line-height: 1.4; max-width: 20ch; text-wrap: balance; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: 1440px; margin: 0 auto; padding-top: 18px; border-top: 1px solid rgba(250, 247, 242, 0.18);
  font-size: 12.5px; color: var(--mist);
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 5fr 7fr; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Inner page heads */
.page-head {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 56px);
}
.page-head--narrow { padding-bottom: clamp(24px, 3vw, 40px); }
.page-sub { font-size: 14px; color: var(--ink-mute); }

/* Shop lines */
.line { overflow: hidden; padding-top: clamp(32px, 4vw, 56px); }
.line-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px;
  padding: 0 var(--gutter) clamp(20px, 2.4vw, 32px);
}
.line-note { color: var(--ink-mute); max-width: 52ch; }
.line:last-child { padding-bottom: clamp(56px, 7vw, 104px); }

/* Product page */
.pdp { display: grid; background: var(--white); }
.pdp-media { background: var(--paper); }
.pdp-main { aspect-ratio: 4 / 5; overflow: hidden; }
.pdp-main > img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main--art { display: grid; place-items: center; aspect-ratio: auto; padding: clamp(32px, 8vw, 96px); }
.pdp-main--art svg { max-width: 480px; }
.pdp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 1px; }
.pdp-gallery img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.pdp-info {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(32px, 5vw, 72px) var(--gutter); background: var(--white);
}
.crumbs { display: flex; gap: 10px; color: var(--ink-mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp-num { color: var(--ink-mute); margin-top: 10px; }
.pdp-name { font-size: clamp(20px, 2vw, 24px); }
.pdp-desc { color: var(--ink-mute); }
.pdp-blurb { max-width: 46ch; }
.buy { display: grid; gap: 12px; padding: 20px 0; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy-price { display: flex; align-items: baseline; gap: 14px; }
.buy-size { font-size: 14px; color: var(--ink-mute); }
.buy-fine, .cart-fine { font-size: 13px; color: var(--ink-mute); }
.buy-note { color: var(--ink-mute); max-width: 40ch; }
.buy-added { min-height: 1.7em; font-size: 14px; }
.buy-added a { margin-left: 8px; }
.pdp-notes { display: grid; gap: 28px; margin: 8px 0 0; }
.pdp-notes dt { display: inline-block; margin-bottom: 12px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 600; }
.pdp-notes dd { margin: 0; max-width: 52ch; }
.pdp-notes dd p + p { margin-top: 0.8em; }
@media (min-width: 960px) {
  .pdp { grid-template-columns: 7fr 5fr; }
  .pdp-media { position: sticky; top: 64px; align-self: start; }
  .pdp-info { padding-top: clamp(48px, 6vw, 96px); }
}
.related { margin-top: clamp(40px, 6vw, 96px); }

/* About */
.about-intro { display: grid; }
.about-text { display: grid; gap: 20px; align-content: center; padding: clamp(48px, 7vw, 112px) var(--gutter); }
.about-body { max-width: 56ch; }
.about-img { position: relative; min-height: 420px; background: var(--paper-warm); }
.about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .about-intro { grid-template-columns: 1fr 1fr; min-height: clamp(520px, 78vh, 760px); }
}

/* Cart */
.cart { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 8vw, 120px); }
.cart-loading { text-align: center; color: var(--ink-mute); }
.cart-empty { display: grid; justify-items: center; gap: 24px; text-align: center; padding: 32px 0 24px; }
.cart-empty p { font-size: 17px; }
.cart-body { display: grid; gap: 40px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 6px 18px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { grid-row: span 2; width: 76px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.cart-thumb img, .cart-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-size: 15px; font-weight: 500; text-decoration: none; }
.cart-name:hover { text-decoration: underline; }
.cart-size { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.cart-amount { text-align: right; white-space: nowrap; }
.cart-controls { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 17px; }
.qty button:disabled { color: var(--line); cursor: default; }
.qty output { min-width: 24px; text-align: center; font-size: 15px; }
.cart-remove { border: 0; background: none; padding: 8px 0; cursor: pointer; font-size: 13px; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 0.25em; }
.cart-line--gone { opacity: 0.6; }
.cart-problem { grid-column: 2 / -1; font-size: 14px; color: #8a4b2f; }
.cart-summary { display: grid; gap: 18px; align-content: start; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.cart-dest { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.cart-dest legend { margin-bottom: 8px; }
.cart-dest label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cart-dest input { accent-color: var(--olive); width: 16px; height: 16px; }
.cart-sums { display: grid; gap: 8px; margin: 0; }
.cart-sums div { display: flex; justify-content: space-between; gap: 16px; }
.cart-sums dd { margin: 0; }
.cart-total { padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.cart-msg { font-size: 14px; padding: 12px 14px; background: var(--paper); border-left: 2px solid var(--sage); }
@media (min-width: 900px) {
  .cart-body { grid-template-columns: 1fr 360px; align-items: start; }
  .cart-summary { position: sticky; top: 88px; }
}

/* Notes: success, cancelled, 404 */
.note-page {
  display: grid; justify-items: center; gap: 20px; text-align: center;
  min-height: 62vh; align-content: center;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.note-mark { width: 30px; }
.receipt { width: min(440px, 100%); display: grid; gap: 8px; padding: 28px; margin: 12px 0; background: var(--white); border: 1px solid var(--line); text-align: left; }
.receipt-id { font-size: 15px; word-break: break-all; margin-bottom: 14px; }
.receipt-items { list-style: none; display: grid; gap: 6px; }
.receipt-items li { display: flex; justify-content: space-between; gap: 16px; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 104px) var(--gutter); }
.legal .page-title { margin-bottom: 32px; }
.prose { display: grid; gap: 1em; }
.prose :is(h2, h3) { font-size: 15px; margin-top: 1.4em; }
.prose :is(ul, ol) { padding-left: 1.3em; display: grid; gap: 0.4em; }

/* Label art and images that fail to load: the placeholder underneath shows instead. */
.label-art { width: 100%; height: auto; }
img.img-missing { visibility: hidden; }

/* Reveal: only elements below the fold at load are held back, so nothing above it flickers. */
.reveal-pending { opacity: 0; transform: translateY(12px); }
[data-reveal] { transition: opacity 0.8s ease, transform 0.9s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* Thai has no spaces between words, so balanced wrapping is what keeps a lone syllable off the last line. */
.footer-tagline, .page-sub, .panel-body, .buy-note { text-wrap: balance; }
.phrase { white-space: nowrap; }
