/* ==========================================================================
   NonMori design system
   Anthracite · black · doré · marble. One radius family (6 px, like a plate
   corner), one display serif, one geometric sans.
   ========================================================================== */
:root {
  --basalt: #1a1c1e;
  --anthracite: #2a2d30;
  --slate: #474b50;
  --marble: #f0efec;
  --marble-2: #e5e4e0;
  --paper: #fbfbfa;
  --vein: #d3d3cf;
  --dore: #b08d57;
  --dore-deep: #8f7041;
  --dore-light: #d6b98a;
  --ink: #1f2224;
  --muted: #62676c;
  --muted-on-dark: #a9aba8;
  --line-on-dark: rgba(214, 185, 138, .22);
  --ok: #3f7457;
  --warn: #9a6423;
  --err: #a2433a;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --r: 6px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 24, .06), 0 12px 32px -12px rgba(20, 22, 24, .22);
  --shadow-lift: 0 30px 60px -24px rgba(10, 11, 12, .55);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em }
a:hover { text-decoration-color: currentColor }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .45em; text-wrap: balance }
h1 { font-size: clamp(2.7rem, 5.6vw, 5rem) }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem) }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem) }
p { margin: 0 0 1em; text-wrap: pretty }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 36em }
.small { font-size: .88rem }
.muted { color: var(--muted) }
.serif { font-family: var(--serif) }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
:focus-visible { outline: 2px solid var(--dore); outline-offset: 3px; border-radius: 3px }
::selection { background: var(--dore-light); color: var(--basalt) }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) }
.skip { position: absolute; left: 12px; top: -60px; background: var(--dore); color: var(--basalt); padding: 10px 16px; border-radius: var(--r); z-index: 100 }
.skip:focus { top: 12px }

/* ---------- Surfaces ---------- */
.on-dark { background: linear-gradient(rgba(26, 28, 30, .78), rgba(26, 28, 30, .86)), url(/images/marble-dark.webp) center/cover; background-color: var(--basalt); color: var(--marble) }
.on-dark .lede, .on-dark .muted { color: var(--muted-on-dark) }
.on-marble { background: linear-gradient(rgba(240, 239, 236, .72), rgba(240, 239, 236, .72)), url(/images/marble-light.webp) center/cover; background-color: var(--marble) }
.section { padding: clamp(72px, 10vw, 136px) 0 }
.section-tight { padding: clamp(48px, 6vw, 80px) 0 }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px) }
.section-head > div { max-width: 640px }
.section-head p { margin: 0; color: var(--muted) }
.on-dark .section-head p { color: var(--muted-on-dark) }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--dore), transparent); border: 0; opacity: .5; margin: 0 }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--basalt); --fg: var(--marble); --bd: var(--basalt);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 26px; border: 1px solid var(--bd); border-radius: var(--r);
  background: var(--bg); color: var(--fg); font: 500 .98rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { --bg: var(--anthracite); --bd: var(--anthracite) }
.btn:active { transform: translateY(1px) }
.btn[disabled], .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; pointer-events: none }
.btn-gold { --bg: var(--dore); --fg: #16130e; --bd: var(--dore) }
.btn-gold:hover { --bg: var(--dore-light); --bd: var(--dore-light) }
.btn-ghost { --bg: transparent; --fg: currentColor; --bd: color-mix(in srgb, currentColor 35%, transparent) }
.btn-ghost:hover { --bg: color-mix(in srgb, currentColor 8%, transparent); --bd: currentColor }
.btn-quiet { --bg: transparent; --bd: transparent; --fg: currentColor; padding: 0 10px; min-height: 40px }
.btn-quiet:hover { --bg: color-mix(in srgb, currentColor 8%, transparent); --bd: transparent }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 1.04rem }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem }
.btn-block { width: 100% }
.btn-danger { --bg: transparent; --fg: var(--err); --bd: color-mix(in srgb, var(--err) 40%, transparent) }
.btn-danger:hover { --bg: var(--err); --fg: #fff; --bd: var(--err) }
.btn svg { width: 18px; height: 18px; flex: none }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(26, 28, 30, .94); backdrop-filter: saturate(140%) blur(10px); color: var(--marble); border-bottom: 1px solid var(--line-on-dark) }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--marble) }
.brand-mark { width: 26px; height: 26px; flex: none }
.brand-word { font: 600 1.55rem/1 var(--serif); letter-spacing: .06em }
.brand-word span { color: var(--dore-light) }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto }
.nav a, .nav button { color: #d9d8d4; text-decoration: none; font: 400 .95rem var(--sans); padding: 10px 14px; border-radius: var(--r); background: none; border: 0; cursor: pointer }
.nav a:hover, .nav button:hover { color: #fff; background: rgba(255, 255, 255, .06) }
.nav a[aria-current=page] { color: var(--dore-light) }
.nav .btn { margin-left: 10px; color: #16130e; background: var(--bg); padding: 0 20px; min-height: 42px }
.nav .btn:hover { color: #16130e; background: var(--dore-light) }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--dore); color: #16130e; font-size: .74rem; font-weight: 600 }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r) }
.lang a { font: 500 .76rem var(--sans); letter-spacing: .06em; padding: 5px 8px; border-radius: 4px; text-decoration: none; color: #bdbcb8 }
.lang a[aria-current=true] { background: var(--marble); color: var(--basalt) }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .18); color: var(--marble); border-radius: var(--r); width: 44px; height: 44px; cursor: pointer }
.menu-toggle svg { margin: auto }
@media (max-width: 960px) {
  .menu-toggle { display: grid }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px; background: var(--basalt); border-bottom: 1px solid var(--line-on-dark); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease }
  .nav.open { transform: none; opacity: 1; visibility: visible }
  .nav a, .nav button { padding: 14px 8px; font-size: 1.05rem; text-align: left }
  .nav .btn { margin: 10px 0 0; justify-content: center }
  .lang { order: 3; align-self: start; margin-top: 10px }
}

/* ---------- Flash messages ---------- */
.flash { max-width: var(--wrap); margin: 20px auto 0; padding: 0 var(--gutter) }
.flash > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); border: 1px solid; font-size: .95rem }
.flash .ok { background: #eef4f0; border-color: #c6dccd; color: #24503a }
.flash .bad { background: #f8eeec; border-color: #e8c9c4; color: #7d2f27 }
.flash p { margin: 0 }

/* ---------- Forms ---------- */
.field { display: block; margin: 0 0 20px }
.field > span, .label { display: block; font: 500 .9rem var(--sans); margin-bottom: 7px; color: var(--ink) }
.field small, .hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted) }
.input, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfcfca; border-radius: var(--r);
  background: #fff; color: var(--ink); font: 400 1rem var(--sans); transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea { min-height: 110px; line-height: 1.55; resize: vertical }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23474b50' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px }
input:hover, select:hover, textarea:hover { border-color: #aeaea8 }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dore); box-shadow: 0 0 0 3px rgba(176, 141, 87, .22) }
input::placeholder, textarea::placeholder { color: #9a9d9f }
.field-error input, .field-error textarea, .field-error select { border-color: var(--err) }
.field-error small { color: var(--err) }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; margin: 0 0 14px }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid #b9b9b3; border-radius: 4px; background: #fff; display: grid; place-items: center; cursor: pointer }
.check input:checked { background: var(--basalt); border-color: var(--basalt) }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--dore-light); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) }
.check small { display: block; color: var(--muted); font-size: .84rem }
.counter { float: right; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums }

/* ---------- Cards & panels ---------- */
.panel { background: #fff; border: 1px solid #e3e2de; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px) }
.panel + .panel { margin-top: 20px }
.panel h2 { font-size: clamp(1.6rem, 2.4vw, 2rem) }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 500 .78rem var(--sans); background: var(--marble-2); color: var(--slate); white-space: nowrap }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8 }
.badge.ok { background: #e7f1ea; color: var(--ok) }
.badge.warn { background: #f6ecdf; color: var(--warn) }
.badge.gold { background: #f3ead9; color: var(--dore-deep) }

/* ---------- Footer ---------- */
.site-footer { background: var(--basalt); color: var(--muted-on-dark); font-size: .92rem; padding: 72px 0 28px; border-top: 1px solid var(--line-on-dark) }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px }
.site-footer h4 { font: 500 .95rem var(--sans); color: var(--marble); margin: 0 0 14px }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.site-footer a { text-decoration: none }
.site-footer a:hover { color: var(--marble) }
.site-footer .brand { margin-bottom: 16px }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08) }
.pay-chips span { font: 500 .76rem var(--sans); letter-spacing: .03em; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; color: #cfceca }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: .84rem }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr } .footer-grid > :first-child { grid-column: 1 / -1 } }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; background: var(--basalt); color: var(--marble); border: 1px solid var(--line-on-dark); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-lift) }
.consent p { font-size: .9rem; color: #cfcfca; margin: 0 0 14px }
.consent div { display: flex; gap: 10px; flex-wrap: wrap }
.consent .btn { min-height: 42px; flex: 1 }
.consent .btn-ghost { color: var(--marble) }

/* ---------- Plaque component ---------- */
.plaque-svg { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .42)) drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); overflow: visible }
[data-plaque] { display: block }

/* Stone the plaque is mounted on */
.stone {
  position: relative; border-radius: 48% 48% 8px 8px / 26% 26% 8px 8px; aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 70% at 30% 10%, rgba(255, 255, 255, .16), transparent 55%),
    url(/images/marble-dark.webp) center/260% auto,
    linear-gradient(160deg, #55595d, #2d3033 55%, #1d1f21);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -30px 60px rgba(0, 0, 0, .35), 0 40px 70px -30px rgba(0, 0, 0, .8);
  display: grid; place-items: center;
}
.stone::after { content: ''; position: absolute; left: 12%; right: 12%; top: 16%; height: 1px; background: rgba(255, 255, 255, .14) }
.stone .stone-plaque { width: 46%; transform: translateY(8%) }
.stone .stone-text { position: absolute; top: 20%; left: 0; right: 0; text-align: center; font: 500 clamp(1rem, 1.7vw, 1.5rem)/1.2 var(--serif); letter-spacing: .12em; color: rgba(236, 232, 222, .75); text-shadow: 0 -1px 0 rgba(0, 0, 0, .6) }

/* ---------- Phone frame ---------- */
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 19; border-radius: 44px; padding: 11px; background: #0d0e0f; box-shadow: inset 0 0 0 2px #3a3d41, 0 40px 80px -30px rgba(0, 0, 0, .6) }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #000; z-index: 3 }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000 }
.phone-viewport { position: absolute; top: 0; left: 0; width: 390px; height: calc(100% / var(--k)); transform: scale(var(--k)); transform-origin: 0 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none }
.phone-viewport::-webkit-scrollbar { display: none }

/* ---------- Upload drop zone ---------- */
.drop { display: grid; place-items: center; gap: 6px; padding: 32px 20px; border: 1.5px dashed #c9c8c2; border-radius: 10px; background: #fafaf8; text-align: center; cursor: pointer; transition: border-color .15s, background .15s }
.drop:hover, .drop.over { border-color: var(--dore); background: #fbf8f2 }
.drop strong { font-weight: 500 }
.drop span { font-size: .86rem; color: var(--muted) }
.drop { position: relative }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer }
.drop svg { color: var(--dore-deep) }
.upload-list { display: grid; gap: 8px; margin: 14px 0 }
.upload-list div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 8px 12px; background: #f4f4f1; border-radius: 6px }
.upload-list .ok { color: var(--ok) }
.note { padding: 14px 16px; border-radius: 8px; background: #f6f1e7; color: #6d5530; font-size: .92rem }

/* ---------- Utility ---------- */
.stack > * + * { margin-top: 16px }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center }
.center { text-align: center }
.nowrap { white-space: nowrap }
.num { font-variant-numeric: tabular-nums lining-nums }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important } }
