/* Eons store base parts (Theo, step 5). Uses tokens.css only. Sections may use these classes; they never restyle them. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 var(--t-m)/var(--lh-read) var(--font-read); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* frame */
.e-wrap { max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.e-shop { padding-block: var(--gap-shop); }
.e-airy { padding-block: var(--gap-airy); }
.e-dark { background: var(--deep-night); color: var(--paper); }
.e-night { background: var(--night); color: var(--paper); }

/* type */
.e-h1 { font: 800 var(--t-xxl)/1.05 var(--font-display); letter-spacing: -0.02em; }
.e-h2 { font: 800 var(--t-xl)/var(--lh-tight) var(--font-display); letter-spacing: -0.01em; }
.e-h3 { font: 700 var(--t-l)/var(--lh-tight) var(--font-read); }
.e-lead { font-size: var(--t-l); line-height: 1.4; }
.e-small { font-size: var(--t-s); color: var(--ink-soft); }
.e-eyebrow { font: 500 var(--t-xs)/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.e-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.e-struck { text-decoration: line-through; color: var(--ink-soft); }

/* buttons: one primary, one outline, one quiet */
.e-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: var(--tap); padding: 0 var(--s3);
  border-radius: var(--r-pill); border: var(--bw) solid var(--ink); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform var(--d-control) var(--ease), box-shadow var(--d-control) var(--ease), background var(--d-control) var(--ease); }
.e-btn--main { background: var(--amber); color: var(--ink); box-shadow: var(--shadow-hard); }
.e-btn--main:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.e-btn--main:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.e-btn--main[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.e-btn--line { background: transparent; }
.e-btn--quiet { border-color: transparent; background: transparent; text-decoration: underline; padding: 0 var(--s1); }
.e-btn--full { width: 100%; }

/* chips and pills */
.e-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: var(--bw) solid var(--line); font-size: var(--t-s); }
.e-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); background: var(--night); color: var(--paper); font: 500 var(--t-xs)/1.2 var(--font-mono); letter-spacing: .06em; }

/* boxes */
.e-card { background: #fff; border: var(--bw) solid var(--line); border-radius: var(--r); }
.e-stars { color: var(--amber); letter-spacing: 2px; }

/* product card: one repeated card everywhere (METHOD-LEDGER: a product always sits in one repeated card) */
.e-pcard { display: flex; flex-direction: column; gap: var(--s1); text-decoration: none; }
.e-pcard__ph { aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--sand-2); border: var(--bw) solid var(--line); overflow: hidden; position: relative; }
.e-pcard__ph img { width: 100%; height: 100%; object-fit: cover; }
.e-pcard__name { font-weight: 700; }
.e-pcard__price { font-family: var(--font-mono); }

/* slots: picture and film holes for Leo; the label lives in data-status only, never shown as words */
[data-slot] { background: var(--sand-2); }
.e-dark [data-slot], .e-night [data-slot] { background: #1d1726; }

/* scroll reveal (motion22) */
.e-reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out); }
.e-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .e-reveal { opacity: 1; transform: none; } }

.e-sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
table.e-sr { display: block; }

/* Leo's files fill their slot (step 7) */
[data-slot] > .e-pic { display: block; width: 100%; height: 100%; }
.e-pic--cover { object-fit: cover; }
.e-pic--contain { object-fit: contain; }

/* gallery thumbnail picture (copied from its slide) */
.pg-thumb > .pg-thumb__pic { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
