body { margin: 0; font-family: var(--font-sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5; }
.ma-row { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; padding: var(--space-4); }
.ma-num { font-variant-numeric: tabular-nums; }
@keyframes ma-breathe { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Mark */
.ma-mark { color: var(--ink); display: block; }
.ma-mark-dot { fill: var(--signal); }
.ma-mark-working .ma-mark-dot { animation: ma-breathe 2.4s ease-in-out infinite; }

/* Button */
.ma-btn { font: inherit; font-family: var(--font-sans); font-size: 16px; font-weight: 500; letter-spacing: -.005em; height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-0); border: var(--stroke-control) solid var(--ink); cursor: pointer; transition: background-color .16s, color .16s; }
.ma-btn-primary { background: var(--ink); color: var(--on-ink); }
.ma-btn-primary:hover { background: var(--ink-graphite); border-color: var(--ink-graphite); }
.ma-btn-secondary { background: transparent; color: var(--ink); }
.ma-btn-secondary:hover { background: var(--ink); color: var(--on-ink); }
.ma-btn-text { background: transparent; border-color: transparent; color: var(--ink); padding: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ma-btn-round { width: 88px; height: 88px; padding: 0; border-radius: var(--radius-full); font-size: 15px; }
.ma-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ma-btn:disabled { background: var(--stone-100); border-color: var(--stone-100); color: var(--ink-muted); cursor: default; }

/* StatusLight */
.ma-status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ma-status > span:last-child::before { content: '"'; } .ma-status > span:last-child::after { content: '"'; }
.ma-status-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--signal); }
.ma-status-working .ma-status-dot { animation: ma-breathe 2.4s ease-in-out infinite; }
.ma-status-idle .ma-status-dot { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-muted); }
.ma-status-live, .ma-status-working { color: var(--ink); }

/* Frame */
.ma-frame { margin: 0; box-sizing: border-box; padding: var(--stroke-frame); background: var(--frame-black); }
.ma-frame-oak { background: var(--frame-oak); }
.ma-frame-hung { box-shadow: var(--shadow-hang); }
.ma-frame-mat { background: var(--mat); padding: 14%; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); }
.ma-frame-art { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ma-frame-empty { background: #e7e5df; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #6b6a66; }

/* Caption */
.ma-caption { font-size: 13px; line-height: 1.4; color: var(--ink); display: grid; gap: 2px; max-width: 260px; }
.ma-caption-artist { font-weight: 500; }
.ma-caption-title em { font-style: italic; }
.ma-caption-meta { color: var(--ink-muted); }
.ma-caption-price { margin-top: var(--space-2); font-size: 24px; font-weight: 300; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* Nav */
.ma-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-5); border-bottom: var(--stroke-hairline) solid var(--line); background: var(--paper); }
.ma-nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.ma-wordmark { font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; }
.ma-wordmark b { font-weight: 700; } .ma-wordmark span { color: var(--ink-muted); }
.ma-nav-count { font-size: 13px; color: var(--ink-muted); }
.ma-nav-count .ma-num { color: var(--ink); font-weight: 500; }
.ma-nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.ma-link { color: var(--ink); font-size: 16px; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .16s; }
.ma-link:hover { background-size: 100% 1px; }
@media (max-width: 640px) { .ma-nav { padding: var(--space-3); } .ma-nav-count { display: none; } }
[hidden] { display: none !important; }

/* ==========================================================
   MAKEART.GALLERY — MASTER TYPOGRAPHY
   ========================================================== */

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

.ma-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.ma-wordmark b {
  font-weight: 700;
  color: var(--ink);
}

.ma-wordmark span {
  font-weight: 400;
  color: var(--ink-muted);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.ma-btn {
  font-family: var(--font-sans);
  font-weight: 500;
}

input,
textarea,
select {
  font-family: var(--font-sans);
}


.ma-btn-round{border-radius:0}

/* Keep header controls identical across page-specific box-sizing rules. */
.ma-nav .ma-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 48px; min-height: 48px; line-height: 1; white-space: nowrap; }
.ma-nav .ma-btn-primary:link, .ma-nav .ma-btn-primary:visited { color: var(--on-ink); }
.ma-nav .ma-nav-brand:link, .ma-nav .ma-nav-brand:visited, .ma-nav .ma-link:link, .ma-nav .ma-link:visited { color: var(--ink); }
a:not(.ma-btn):not(.ma-nav-brand):not(.ma-link):link,
a:not(.ma-btn):not(.ma-nav-brand):not(.ma-link):visited { color: var(--ink-muted); }

/* Shared page rhythm: consistent controls and headings. */
.ma-btn { box-sizing: border-box; }
body h1 { font-family: var(--font-display); font-size: clamp(60px, 7vw, 92px) !important; font-weight: 500 !important; letter-spacing: -.04em; }
@media (max-width: 640px) { body h1 { font-size: clamp(44px, 9vw, 60px) !important; } }
.order a[href="/bag.html"], .order a[href="/bag.html"]:visited { color: #86837f !important; }


/* unified one-line mobile navigation — 2026-10-03 */
@media (max-width: 640px) {
  .ma-nav {
    height: 64px !important;
    min-height: 64px !important;
    padding: 8px 12px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .ma-nav-brand {
    font-size: 15px !important;
    line-height: 1 !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
  .ma-nav-brand .ma-mark,
  .ma-nav-brand svg {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
  }
  .ma-wordmark {
    font-size: 15px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .ma-nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
    min-width: 0 !important;
  }
  .ma-nav-count,
  .ma-nav .ma-link {
    display: none !important;
  }
  .ma-nav-actions > a:not(.ma-btn) {
    margin-right: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .ma-nav .ma-btn {
    box-sizing: border-box !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }
}

/* plain-nav parity fix — 2026-10-03 */
@media (max-width: 640px) {
  .ma-nav-actions,
  .ma-nav > nav {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
    min-width: 0 !important;
  }
  .ma-nav-actions > a:not(.ma-btn),
  .ma-nav > nav > a:not(.ma-btn) {
    margin-right: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 640px) { .ma-nav { box-sizing: border-box !important; } }

/* Keep the shared navigation perfectly aligned across every page. */
.ma-nav > nav > a:not(.ma-btn) {
  display: flex;
  align-items: center;
  height: 24px;
  line-height: 24px;
}
