/* MINIS64 — hand-painted 1:64 figures.
   Near-black type, one orange accent (the "64" in the logo), quiet light-grey page so the hand-held footage carries it.
   Orange #FF9600 is only for marks, borders and fills under black text: on white it is too light to read as text. */

:root {
  --mat: #111111;        /* solid buttons, current tabs */
  --mat-line: #ff9600;   /* hover borders */
  --accent: #ff9600;     /* the 64 orange: logo, rules, focus */
  --paper: #f5f5f3;
  --card: #ffffff;
  --ink: #111111;
  --primer: #5e5e5e;     /* secondary text */
  --rule: #dededb;
  --stamp: #c62d1f;      /* SOLD stamp red */
  --focus: #ff9600;
  --gutter: 16px;
  --display: "Sora", Arial, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- masthead ----------
   Pages without a photo (FAQ, returns, product pages): a slim white bar,
   small wordmark, thin rule underneath. Matches the white home banner. */
.masthead {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 18px max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))) 14px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  position: relative;
}
.masthead.has-lang { padding-inline-end: max(calc(var(--gutter) + 132px), calc((100% - 1180px) / 2 + var(--gutter) + 132px)); } /* room for the language switch */
.wordmark {
  font: 700 1.6rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
}
.promise {
  margin: 0;
  font-size: .9rem;
  color: var(--primer);
}
/* home banner keeps the big wordmark */
.masthead.has-hero { border-bottom: 0; padding-top: 40px; padding-bottom: 28px; gap: 0; }
.masthead.has-hero .wordmark { font-size: clamp(2.4rem, 9vw, 4.75rem); line-height: .92; max-width: 12ch; }
.masthead.has-hero .promise { margin-top: 14px; font-size: 1rem; max-width: 34ch; }

/* photo masthead (home page, optional).
   Desktop: wordmark on the photo, a white mist on the left keeps it readable. */
.masthead.has-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(340px, 42.86vw, 640px); /* 21:9, capped */
  background: var(--paper); color: var(--ink);
}
.masthead.has-hero .promise { color: var(--ink); }
.masthead-photo, .masthead-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.masthead-photo img { object-fit: cover; }
.masthead.has-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(245,245,243,.92) 0%, rgba(245,245,243,.7) 30%, rgba(245,245,243,0) 60%);
}
/* phones: wordmark on its own, the whole photo right under it, edges fading in a white mist */
@media (max-width: 699px) {
  .masthead.has-hero { min-height: 0; justify-content: flex-start; padding-bottom: 0; }
  .masthead.has-hero::before { display: none; }
  .masthead.has-hero .promise { color: var(--primer); }
  .masthead-photo { order: 1; position: relative; z-index: auto; height: auto; width: auto; margin: 20px calc(-1 * var(--gutter)) 0; }
  .masthead-photo img { position: static; height: auto; aspect-ratio: 21 / 9; }
  .masthead-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--paper) 0%, rgba(245,245,243,0) 35%, rgba(245,245,243,0) 80%, var(--paper) 100%);
  }
}

main { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- language switch (top corner of the masthead) ---------- */
.lang-switch {
  position: absolute; z-index: 5; top: 12px;
  inset-inline-end: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  font-size: .9rem;
}
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px;
  background: rgba(255,255,255,.85); color: var(--ink);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--mat-line); }
.lang-switch ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px 0; list-style: none;
  min-width: 168px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30,36,34,.12);
}
.lang-switch li a { display: block; padding: 8px 16px; text-decoration: none; text-align: start; }
.lang-switch li a:hover { background: var(--paper); }
.lang-switch a[aria-current] { font-weight: 600; color: var(--mat); }
/* "My orders" link next to the language switch: both sit in .masthead-tools */
.masthead-tools {
  position: absolute; z-index: 5; top: 12px;
  inset-inline-end: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  display: flex; gap: 8px; align-items: flex-start;
}
.masthead-tools .lang-switch { position: relative; top: auto; inset-inline-end: auto; }
.account-link {
  display: flex; align-items: center; gap: 6px; font-size: .9rem; text-decoration: none;
  min-height: 40px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px;
  background: rgba(255,255,255,.85); color: var(--ink); box-sizing: border-box;
}
.account-link:hover { border-color: var(--mat-line); }
.masthead.has-account { padding-inline-end: max(calc(var(--gutter) + 140px), calc((100% - 1180px) / 2 + var(--gutter) + 140px)); }
.masthead.has-account.has-lang { padding-inline-end: max(calc(var(--gutter) + 280px), calc((100% - 1180px) / 2 + var(--gutter) + 280px)); }
/* Text links from info pages marked "masthead: true" (Our Story), left of My orders */
.masthead-link {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px; font-size: .9rem;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.masthead-link:hover { text-decoration: underline; }
.masthead.has-links.has-account.has-lang { padding-inline-end: max(calc(var(--gutter) + 540px), calc((100% - 1180px) / 2 + var(--gutter) + 540px)); }
.masthead.has-links.has-account.has-lang.has-shop { padding-inline-end: max(calc(var(--gutter) + 640px), calc((100% - 1180px) / 2 + var(--gutter) + 640px)); }
/* Glass buttons: every top-corner tool (Home, Our Story, My orders, language) is a frosted pill,
   so it reads as something to tap. Lifts on hover, presses in on tap. */
.masthead-link, .account-link, .lang-switch summary {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; box-sizing: border-box;
  background: rgba(255,255,255,.55); color: var(--ink);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(30,36,34,.05), 0 0 0 .5px rgba(30,36,34,.14), 0 2px 10px rgba(30,36,34,.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  transition: background .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.masthead-link:hover, .account-link:hover, .lang-switch summary:hover, .lang-switch[open] summary {
  text-decoration: none; background: rgba(255,255,255,.8); border-color: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(30,36,34,.05), 0 0 0 .5px rgba(30,36,34,.2), 0 4px 14px rgba(30,36,34,.12);
}
.masthead-link:active, .account-link:active, .lang-switch summary:active { transform: scale(.96); background: rgba(255,255,255,.4); }
/* the page you're on: the same glass, just a little whiter (like a selected tab) */
.masthead-link[aria-current], .account-link[aria-current] { background: rgba(255,255,255,.85); }
/* phones: just the globe and the person icon, so the wordmark keeps its room */
@media (max-width: 699px) {
  .masthead.has-lang, .masthead.has-account { padding-inline-end: calc(var(--gutter) + 52px); }
  .masthead.has-account.has-lang { padding-inline-end: calc(var(--gutter) + 104px); }
  /* three tools don't fit beside the wordmark: they get their own row on top, the wordmark and photo keep the full width */
  .masthead.has-links, .masthead.has-links.has-account.has-lang, .masthead.has-links.has-account.has-lang.has-shop { padding-inline-end: var(--gutter); padding-top: 62px; }
  .masthead-tools { gap: 4px; }
  .masthead-link { font-size: .85rem; padding: 6px 10px; }
  .lang-switch summary { padding: 6px 10px; }
  /* icons only; the button for the page you're on keeps its label */
  .lang-switch .lang-name, .masthead-tools a:not([aria-current]) .tool-name { display: none; }
  .account-link { padding: 6px 10px; }
}

/* ---------- other scripts and right-to-left ----------
   The theme fonts only draw Latin letters; other scripts fall through to the phone's own fonts in this order. */
:root { --script: system-ui, sans-serif; }
:lang(ja) { --script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
:lang(ko) { --script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(zh-Hans) { --script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(ar) { --script: "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }
:lang(ru), :lang(ja), :lang(ko), :lang(zh), :lang(ar) {
  --display: "Barlow Condensed", var(--script);
  --text: "Barlow", var(--script);
}
:lang(ja) .detail h1, :lang(zh) .detail h1, :lang(ko) .detail h1 { line-break: strict; }
/* piece numbers and prices read left to right inside Arabic text */
[dir="rtl"] .no, [dir="rtl"] .price { unicode-bidi: isolate; }
[dir="rtl"] .masthead.has-hero::before { background: linear-gradient(270deg, rgba(245,245,243,.92) 0%, rgba(245,245,243,.7) 30%, rgba(245,245,243,0) 60%); }

/* ---------- feed ---------- */
.feed-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 28px 0 12px;
}
.feed-head h2 { font: 700 1.6rem/1 var(--display); margin: 0; }
.feed-head p { margin: 0; color: var(--primer); font-size: .95rem; }

.feed {
  list-style: none; margin: 0; padding: 0 0 48px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card a { display: block; text-decoration: none; background: var(--card); border-radius: 6px; overflow: hidden; }
.frame { position: relative; aspect-ratio: 4 / 5; background: #dfe3df; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.meta {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
  padding: 12px 14px 14px;
}
.meta .no { grid-column: 1 / -1; font: 700 1.5rem/1 var(--display); }
.meta .name { color: var(--primer); font-size: .95rem; margin-top: 4px; }
.meta .price { font-weight: 600; margin-top: 4px; }
.card a:hover .no { text-decoration: underline; text-underline-offset: 3px; }
.is-sold .frame img, .is-sold .frame video { filter: grayscale(.85); opacity: .75; }
.is-sold .price { color: var(--primer); font-weight: 400; }

/* the one loud thing */
.stamp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font: 700 2.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  color: var(--stamp); border: 4px solid var(--stamp); border-radius: 4px;
  padding: 4px 18px; background: rgba(255,255,255,.75);
}

/* ---------- shop: category chips and pages ----------
   Desktop: one row per group (Scale, Theme) with its name in front.
   Phones: every chip in one row that scrolls sideways and sticks to the top while scrolling. */
.cat-nav { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 20px; }
.cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-group { min-width: 64px; font-size: .85rem; color: var(--primer); }
.cat-all { padding-inline-start: 72px; } /* lines All up with the chips under it */
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; box-sizing: border-box;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink);
  font-size: .92rem; text-decoration: none; white-space: nowrap; transition: border-color .15s;
}
.cat-chip:hover { border-color: var(--mat-line); }
.cat-chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-n { font-size: .8rem; color: var(--primer); }
.cat-chip[aria-current] .cat-n { color: rgba(255,255,255,.7); }
[dir="rtl"] .cat-chip { unicode-bidi: isolate; }
.shop-head { padding: 28px 0 14px; }
.shop-head h1 { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1 var(--display); margin: 0; }
.shop-head p { margin: 8px 0 0; color: var(--primer); max-width: 60ch; }
.shop-count { margin: 0 0 12px; color: var(--primer); font-size: .92rem; }
.shop-feed { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 699px) {
  .cat-nav {
    position: sticky; top: 0; z-index: 4; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: rgba(245,245,243,.92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-row { display: contents; }
  .cat-group { display: none; }
  .cat-all { padding: 0; }
  .shop-head { padding: 20px 0 6px; }
  .shop-count { margin-top: 6px; }
  /* two pieces side by side, so a category with many pieces is quick to scan */
  .shop-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-feed .meta { padding: 8px 10px 10px; column-gap: 6px; }
  .shop-feed .meta .no { font-size: 1.15rem; }
  .shop-feed .meta .name { font-size: .82rem; line-height: 1.3; }
  .shop-feed .price { font-size: .9rem; }
  .shop-feed .stamp { font-size: 1.6rem; border-width: 3px; }
}

/* ---------- product page ---------- */
.piece { display: grid; gap: 20px; padding: 20px 0 56px; }
@media (min-width: 900px) {
  .piece { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .detail { position: sticky; top: 24px; }
}
.gallery { display: grid; gap: 12px; }
/* phones: swipe through the shots instead of scrolling past them */
@media (max-width: 899px) {
  .gallery {
    grid-auto-flow: column; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery.single { grid-auto-columns: 100%; } /* one photo: full width, no half-empty swipe strip */
  .shot { scroll-snap-align: center; }
  .shot img, .shot video { aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
}
.shot { margin: 0; background: #dfe3df; border-radius: 6px; overflow: hidden; }
.shot video, .shot img { width: 100%; }
.shot figcaption { font-size: .85rem; color: var(--primer); padding: 8px 12px; background: var(--card); }

.no.big { font: 700 clamp(3.5rem, 14vw, 6rem)/0.9 var(--display); margin: 0; }
.detail h1 { font: 500 1.35rem/1.3 var(--text); margin: 8px 0 0; max-width: 32ch; }
.price-line { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 20px; }
.price-line .price { font: 700 2rem/1 var(--display); }
.stock { color: var(--primer); }
.stock.sold { color: var(--stamp); font-weight: 600; }

.buy {
  display: block; text-align: center; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1.05rem;
  padding: 16px 20px; border-radius: 6px;
}
.buy:hover { background: var(--mat); }
.ship-note { color: var(--primer); font-size: .92rem; margin: -12px 0 18px; }
.buy-note { color: var(--primer); font-size: .92rem; margin: 10px 0 0; }
.desc { margin-top: 24px; max-width: 62ch; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; border: 1px solid var(--rule); background: var(--card); padding: 3px 10px; border-radius: 999px; }
.tags a { color: var(--ink); text-decoration: none; }
.tags li:has(a):hover { border-color: var(--mat-line); }
.truth { border-inline-start: 3px solid var(--mat); padding-inline-start: 12px; color: var(--primer); font-size: .92rem; margin-top: 24px; }
.back { display: inline-block; margin-top: 20px; font-weight: 500; }
.help-note { color: var(--primer); font-size: .92rem; margin-top: 16px; }

/* ---------- info pages: FAQ, returns ---------- */
.info { max-width: 68ch; padding: 28px 0 56px; }
.info h1 { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1 var(--display); margin: 0; }
.info .updated { color: var(--primer); font-size: .9rem; margin: 8px 0 20px; }
.info h2 { font: 700 1.5rem/1.1 var(--display); margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.info ul { padding-inline-start: 1.2em; }
.info li { margin-bottom: 6px; }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; list-style: none; font-weight: 600; padding-block: 12px; padding-inline: 0 28px; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 10px; font: 500 1.3rem/1 var(--text); color: var(--mat); }
.qa[open] summary::after { content: "\2212"; }
.qa .answer { padding: 0 0 12px; }
.qa .answer > :first-child { margin-top: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 24px var(--gutter) 40px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 1212px) { .foot { padding-inline: var(--gutter); } }
.foot p { margin: 0 0 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-bottom: 20px; }
.foot-col h2 { font: 600 .78rem/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--primer); margin: 0 0 8px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 6px; font-weight: 500; }
@media (max-width: 560px) { .foot-links { gap: 20px 32px; } .foot-col { min-width: 120px; } }
.foot .small { color: var(--primer); font-size: .88rem; max-width: 60ch; }
.empty { padding: 48px 0; color: var(--primer); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.info .translation-note { color: var(--primer); font-size: .88rem; margin: -8px 0 20px; padding: 8px 12px; background: var(--card); border-radius: 6px; }

/* ---------- cart (modules/checkout/cart.js) ---------- */
.add-cart {
  display: block; width: 100%; margin: 0 0 12px; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink);
  font: 600 1.05rem/1 var(--text); padding: 14px 20px; border-radius: 6px;
}
@media (hover: hover) { .add-cart:hover { background: var(--paper); } }
.add-cart.done { background: var(--mat); border-color: var(--mat); color: #fff; }
#cart-added { margin: -4px 0 12px; }
.add-cart[hidden], .cart-pill[hidden] { display: none; }
.cart-pill {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 20;
  background: var(--mat); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.cart-page { max-width: 720px; padding: 28px 0 56px; }
.cart-page h1 { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1 var(--display); margin: 0 0 20px; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.cart-row img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; grid-row: span 2; }
.cart-name { font-weight: 500; text-decoration: none; }
.cart-name .no { font: 700 1.05rem/1 var(--display); }
.cart-mid { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; }
.cart-qty button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); background: var(--card);
  font: 600 1.1rem/1 var(--text); cursor: pointer;
}
.cart-qty button:disabled { opacity: .35; cursor: default; }
.cart-line { font-weight: 600; text-align: end; }
.cart-remove { grid-column: 3; background: none; border: 0; color: var(--primer); text-decoration: underline; cursor: pointer; font-size: .9rem; padding: 0; justify-self: end; }
.cart-empty { color: var(--primer); }
.cart-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 20px 0; }
.cart-sum dt { color: var(--primer); }
.cart-sum dd { margin: 0; text-align: end; }
.cart-sum .total { font: 700 1.4rem/1.2 var(--display); color: var(--ink); padding-top: 8px; border-top: 1px solid var(--rule); }

/* ---------- My orders (modules/account) ---------- */
.account-page { max-width: 720px; padding: 28px 0 56px; }
.account-page h1 { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1 var(--display); margin: 0 0 16px; }
.account-intro { color: var(--primer); margin: 0 0 20px; }
#account { margin-bottom: 28px; }
.signin-google, .signin-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  border-radius: 6px; font: 600 1rem/1 var(--text); cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.signin-google { width: 100%; max-width: 360px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.signin-btn { background: var(--mat); color: #fff; border: 1px solid var(--mat); }
.signin-btn:disabled { opacity: .6; cursor: default; }
.signin-or { color: var(--primer); margin: 14px 0; }
.signin-email form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; max-width: 520px; }
.signin-email label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; font-size: .9rem; color: var(--primer); }
.signin-email input { font: 400 1rem/1.2 var(--text); padding: 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); min-height: 48px; box-sizing: border-box; }
.signin-again { background: none; border: 0; padding: 0; color: var(--primer); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.signin-email .signin-again { margin-top: 12px; }
.account-msg { color: var(--primer); margin: 12px 0; }
.account-msg.error { color: var(--ink); font-weight: 500; }
.account-who { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.orders { list-style: none; margin: 0; padding: 0; }
.order { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.order-top { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; font-size: .9rem; color: var(--primer); }
.order-no { word-break: break-all; }
.order-lines { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; }
.order-lines a { text-decoration: none; font-weight: 500; }
.order-lines .no { font: 700 1.05rem/1 var(--display); }
.order-qty { color: var(--primer); white-space: nowrap; }
.order-total { display: flex; justify-content: space-between; font-weight: 600; }

/* ---------- Back office /admin/ (modules/admin) ---------- */
body.admin { font-size: 16px; }
.admin-head, .admin-tabs, .admin-main { max-width: 860px; margin: 0 auto; padding-inline: var(--gutter); }
.admin-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.admin-head h1 { font: 700 2rem/1 var(--display); margin: 0; }
.admin-who { display: flex; gap: 12px; color: var(--primer); font-size: .9rem; word-break: break-all; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.admin-tabs a { flex: none; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; background: var(--card); }
.admin-tabs a[aria-current] { background: var(--mat); border-color: var(--mat); color: #fff; }
.admin-main { padding-top: 12px; padding-bottom: 56px; }
.admin-main h2 { font: 700 1.4rem/1.1 var(--display); margin: 28px 0 8px; }
.admin-msg { color: var(--primer); margin: 10px 0; }
.admin-msg.error { color: var(--stamp); font-weight: 500; }
.admin-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-order { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; }
.admin-order.is-shipped { opacity: .8; }
.admin-order-top { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; font-size: .9rem; color: var(--primer); }
.admin-order-top strong { color: var(--ink); word-break: break-all; }
.admin-lines { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.admin-lines li, .admin-row { display: flex; justify-content: space-between; gap: 12px; }
.admin-row { padding: 4px 0; }
.admin-label { color: var(--primer); font-size: .9rem; }
.admin-ship { margin: 8px 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.admin-address { font: inherit; white-space: pre-wrap; margin: 6px 0 8px; user-select: all; }
.admin-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.admin-act input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 8px; }
.admin-done { flex-basis: 100%; color: var(--mat); font-weight: 500; }
.admin-btn { font: 500 .95rem/1 var(--text); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--mat); background: var(--mat); color: #fff; cursor: pointer; }
.admin-btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.admin-btn:disabled { opacity: .5; }
.admin-scroll { overflow-x: auto; }
.admin-stock { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; }
.admin-stock th, .admin-stock td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: start; white-space: nowrap; }
.admin-stock th { color: var(--primer); font-weight: 500; }
.admin-stock td:first-child { white-space: normal; }
.admin-stock td:nth-child(n+2), .admin-stock th:nth-child(n+2) { text-align: end; }
@media (max-width: 560px) { .admin-stock th, .admin-stock td { padding: 8px 5px; font-size: .88rem; } }
.admin-stock tr.is-out td { color: var(--primer); }
.order-shipped { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--mat); font-weight: 500; font-size: .95rem; margin: 6px 0; }
.order-tracking { color: var(--ink); font-weight: 400; user-select: all; }

/* ---------- guides (modules/guides): 16:9 banner covers ---------- */
.guides { padding: 28px 0 56px; }
.guides h1, .guide-head h1 { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1 var(--display); margin: 0; }
.guides-intro { color: var(--primer); max-width: 60ch; margin: 10px 0 24px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.guide-card a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--card); border-radius: 6px; overflow: hidden; }
.guide-cover { aspect-ratio: 16 / 9; background: #dfe3df; }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-meta { display: grid; gap: 6px; padding: 14px 16px 18px; }
.guide-title { font: 700 1.3rem/1.2 var(--display); }
.guide-desc { color: var(--primer); font-size: .92rem; }
.guide-card a:hover .guide-title { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 699px) { .guide-list { grid-template-columns: 1fr; gap: 16px; } }
.guide-head { max-width: 68ch; padding: 28px 0 20px; }
.guide-head .updated { color: var(--primer); font-size: .9rem; margin: 8px 0 0; }
.guide-hero { margin: 0 0 8px; }
.guide-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #dfe3df; }
.guide-body { padding-top: 12px; }
.guide h3 { font: 600 1.1rem/1.3 var(--text); margin: 24px 0 6px; }
.guide ol { padding-inline-start: 1.4em; }
.guide ol li { margin-bottom: 6px; }
.guide-photo { margin: 20px 0; }
.guide-photo img { width: 100%; height: auto; border-radius: 6px; background: #dfe3df; }
.guide-related { padding-top: 8px; }
.guide-related h2 { font: 700 1.5rem/1.1 var(--display); margin: 0 0 14px; }
.guide-related .feed { padding-bottom: 12px; }
.guide-back { margin: 0 0 48px; }
.guide-cover { position: relative; }
.ai-badge { position: absolute; inset-inline-start: 10px; bottom: 10px; background: rgba(17,17,17,.72); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; }
.guide-hero .ai-note { color: var(--primer); font-size: .85rem; margin-top: 8px; }

/* ---------- MINIS64 ---------- */
.wordmark-logo { display: block; height: 26px; width: auto; }
.masthead.has-hero .wordmark { max-width: none; }
.masthead.has-hero .wordmark-logo { height: clamp(36px, 7vw, 64px); }
h1, h2, .wordmark { letter-spacing: -0.02em; }
.buy:hover { background: var(--accent); color: var(--ink); }
.truth { border-inline-start-color: var(--accent); }
.add-cart.done { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.no.big { font-size: clamp(2.8rem, 11vw, 4.8rem); }
