/* ============================================================
   Maine Artists — New Design System (v2)
   Cormorant Garamond + Onest  |  paper / teal / violet / coral
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Onest:wght@400;500;600;700&display=swap');

/* ---- Tokens ---- */
:root {
  --ma-teal:        #1D4E4D;
  --ma-teal-mid:    #2F6F6D;
  --ma-teal-wash:   #E8EFEE;
  --ma-violet:      #7C3AED;
  --ma-violet-wash: #EFE9FB;
  --ma-coral:       #F9635E;
  --ma-coral-wash:  #FDE8E6;

  --ma-paper:       #FAF7F2;
  --ma-paper-deep:  #F1ECE2;
  --ma-paper-edge:  #E5DFD2;
  --ma-ink:         #1A1F1F;
  --ma-ink-soft:    #38423F;
  --ma-ink-mute:    #6E7572;

  --ma-display: 'Cormorant Garamond', Georgia, serif;
  --ma-body:    'Onest', system-ui, -apple-system, sans-serif;

  --ma-shadow-paper: 0 1px 0 rgba(26,31,31,.04), 0 8px 24px -12px rgba(26,31,31,.18);
  --ma-shadow-lift:  0 2px 0 rgba(26,31,31,.05), 0 18px 40px -16px rgba(26,31,31,.28);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ma-body);
  font-size: 16px;
  color: var(--ma-ink-soft);
  background: var(--ma-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ma-coral); color: var(--ma-paper); }

/* ---- Typography ---- */
.ma-kicker {
  font-family: var(--ma-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ma-teal);
}
.ma-display { font-family: var(--ma-display); font-weight: 500; color: var(--ma-ink); }
.ma-italic  { font-style: italic; font-weight: 400; }

/* ---- Buttons ---- */
.ma-btn {
  font-family: var(--ma-body);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
  white-space: nowrap;
}
.ma-btn-primary { background: var(--ma-teal); color: var(--ma-paper); }
.ma-btn-primary:hover { background: var(--ma-ink); }
.ma-btn-ghost {
  background: transparent;
  color: var(--ma-teal);
  border: 1.5px solid var(--ma-teal);
}
.ma-btn-ghost:hover { background: var(--ma-teal); color: var(--ma-paper); }
.ma-btn-coral { background: var(--ma-coral); color: var(--ma-paper); }
.ma-btn-coral:hover { background: #d64540; }
.ma-btn-white { background: var(--ma-paper); color: var(--ma-ink); }
.ma-btn-white:hover { background: var(--ma-paper-deep); }

/* ---- Layout helpers ---- */
.ma-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ma-container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ---- Grain overlay (reuse from old design) ---- */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.12  0 0 0 0 0.12  0 0 0 0.45 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.35'/></svg>");
  mix-blend-mode: multiply;
  opacity: .35;
}
.grain-light::after { opacity: .18; }

/* ===================================================================
   NAV
   =================================================================== */
.ma-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ma-paper-edge);
}
.ma-nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.ma-nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--ma-display);
  font-size: 20px;
  color: var(--ma-ink);
  font-weight: 500;
  letter-spacing: -.01em;
}
.ma-nav-brand img { height: 36px; width: auto; }
.ma-nav-links {
  display: flex; align-items: center; gap: 30px;
}
.ma-nav-link {
  font-family: var(--ma-body); font-size: 14px; font-weight: 500;
  color: var(--ma-ink); text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.ma-nav-link:hover, .ma-nav-link.active {
  color: var(--ma-teal);
  border-bottom-color: var(--ma-teal);
}
/* Mobile hamburger (kept from old nav pattern) */
.nav-toggle-input { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ma-ink); transition: transform .2s, opacity .2s; }

/* ===================================================================
   HERO — Gallery Wall
   =================================================================== */
.ma-hero {
  position: relative;
  overflow: hidden;
  background: var(--ma-paper);
  padding: 56px 0 80px;
}
.ma-hero-teal-wash {
  position: absolute;
  top: 200px; right: 0;
  width: 60%; height: 600px;
  background: var(--ma-teal-wash);
  z-index: 0;
}
.ma-hero-grid {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.ma-hero-left { padding-top: 40px; }
.ma-hero-logo { margin-bottom: 28px; }
.ma-hero-h1 {
  font-family: var(--ma-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 128px);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--ma-ink);
  margin: 20px 0 0;
}
.ma-hero-h1 em { font-style: italic; font-weight: 400; color: var(--ma-teal); }
.ma-hero-figures {
  margin-top: 28px; margin-bottom: 24px;
  display: flex; align-items: flex-end; gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--ma-paper-edge);
}
.ma-hero-figures img { height: 60px; width: auto; }
.ma-hero-lead {
  font-family: var(--ma-body); font-size: 18px; line-height: 1.55;
  color: var(--ma-ink-soft); max-width: 460px; margin: 0;
}
.ma-hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Gallery wall */
.ma-hero-wall {
  position: relative;
  height: 620px;
  min-width: 660px;
}
.ma-wall-frame {
  position: absolute;
  background: var(--ma-paper);
  padding: 8px;
  box-shadow: 0 1px 0 rgba(26,31,31,.04), 0 12px 32px -14px rgba(26,31,31,.32);
  border: 1px solid var(--ma-paper-edge);
  overflow: hidden;
}
.ma-wall-frame-inner {
  width: 100%; height: 100%; overflow: hidden; position: relative;
}
.ma-wall-frame-inner img {
  width: 100%; height: 100%; object-fit: cover;
}
.ma-wall-caption {
  position: absolute; bottom: -24px; right: 12px;
  font-family: var(--ma-body); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ma-ink-mute);
}

/* ===================================================================
   FEATURED MAKER
   =================================================================== */
.ma-featured {
  padding: 110px 0;
  background: var(--ma-paper-deep);
  position: relative;
}
.ma-featured-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}
.ma-featured-h2 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.0; letter-spacing: -.02em;
  color: var(--ma-ink); margin: 12px 0 0;
}
.ma-featured-h2 em { font-style: italic; font-weight: 400; color: var(--ma-teal); }
.ma-featured-link {
  font-family: var(--ma-body); font-size: 14px; font-weight: 500;
  color: var(--ma-teal); text-decoration: none;
  border-bottom: 1.5px solid var(--ma-teal); padding-bottom: 2px;
}
.ma-featured-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 56px; align-items: stretch;
}
.ma-featured-photo {
  position: relative; min-height: 420px;
  background: var(--ma-paper);
  border: 1px solid var(--ma-paper-edge);
  overflow: hidden;
}
.ma-featured-photo img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.ma-featured-figure {
  position: absolute; bottom: -20px; left: -20px;
}
.ma-featured-figure img { height: 120px; width: auto; }
.ma-featured-body {
  display: flex; flex-direction: column;
  justify-content: space-between; padding-top: 8px;
}
.ma-featured-lead {
  font-family: var(--ma-body); font-size: 18px; line-height: 1.55;
  color: var(--ma-ink-soft); margin: 0;
}
.ma-featured-quote {
  margin: 32px 0 0;
  padding-left: 24px;
  border-left: 3px solid var(--ma-violet);
}
.ma-featured-quote p {
  font-family: var(--ma-display); font-style: italic;
  font-size: 22px; line-height: 1.35; font-weight: 400;
  color: var(--ma-ink); margin: 0; letter-spacing: -.005em;
}
.ma-featured-meta {
  margin-top: 24px;
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--ma-paper-edge);
}
.ma-featured-meta-item { min-width: 100px; }
.ma-featured-meta-key {
  font-family: var(--ma-body); font-size: 10px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ma-ink-mute);
}
.ma-featured-meta-val {
  font-family: var(--ma-body); font-size: 14px; color: var(--ma-ink); margin-top: 3px;
}

/* ===================================================================
   BROWSE BY MEDIUM
   =================================================================== */
.ma-browse {
  padding: 110px 0;
  background: var(--ma-paper);
}
.ma-browse-h2 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.0; letter-spacing: -.02em;
  color: var(--ma-ink); margin: 12px 0 0;
}
.ma-browse-h2 em { font-style: italic; font-weight: 400; color: var(--ma-teal); }
.ma-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ma-paper-edge);
}
.ma-chip {
  font-family: var(--ma-body); font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--ma-paper-edge);
  background: transparent; color: var(--ma-ink);
  cursor: pointer; transition: background 120ms, color 120ms, border-color 120ms;
}
.ma-chip:hover { border-color: var(--ma-teal); color: var(--ma-teal); }
.ma-chip.active {
  background: var(--ma-teal); color: var(--ma-paper);
  border-color: var(--ma-teal);
}
.ma-browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.ma-browse-card {
  text-decoration: none;
  background: var(--ma-paper);
  border: 1px solid var(--ma-paper-edge);
  display: flex; flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ma-browse-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ma-shadow-paper);
}
.ma-browse-card[data-hidden] { display: none; }
.ma-browse-card-art {
  aspect-ratio: 4 / 5;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--ma-paper-edge);
}
.ma-browse-card-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ma-browse-card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-browse-card-body { padding: 18px 16px 20px; }
.ma-browse-card-medium {
  font-family: var(--ma-body); font-size: 10px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.ma-browse-card-name {
  font-family: var(--ma-display); font-size: 22px; font-weight: 500;
  color: var(--ma-ink); letter-spacing: -.01em;
  margin-top: 8px; line-height: 1.15;
}
.ma-browse-card-meta {
  font-family: var(--ma-body); font-size: 13px; color: var(--ma-ink-mute); margin-top: 6px;
}
.ma-browse-more { margin-top: 44px; text-align: center; }

/* ===================================================================
   ABOUT SECTION
   =================================================================== */
.ma-about-section {
  padding: 110px 0;
  background: var(--ma-paper);
  position: relative;
}
.ma-about-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; text-align: center; }
.ma-about-h2 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(44px, 5.5vw, 88px);
  line-height: .96; letter-spacing: -.025em;
  color: var(--ma-ink); margin: 20px 0 0;
}
.ma-about-h2 em { font-style: italic; font-weight: 400; color: var(--ma-teal); }
.ma-about-figures {
  margin: 44px 0;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 10px;
}
.ma-about-figures img { height: 160px; width: auto; }
.ma-about-lead {
  font-family: var(--ma-body); font-size: 18px; line-height: 1.6;
  color: var(--ma-ink-soft); max-width: 680px; margin: 0 auto;
}
.ma-stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding-top: 40px; border-top: 1px solid var(--ma-paper-edge);
}
.ma-stat-num {
  font-family: var(--ma-display); font-weight: 500; font-size: 72px;
  line-height: 1; letter-spacing: -.04em; color: var(--ma-teal);
}
.ma-stat-label {
  font-family: var(--ma-body); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ma-ink-mute); margin-top: 10px;
}

/* ===================================================================
   JOIN CTA
   =================================================================== */
.ma-join {
  background: var(--ma-teal); color: var(--ma-paper);
  padding: 110px 0; position: relative; overflow: hidden;
}
.ma-join-figure {
  position: absolute; right: 80px; top: 40px; opacity: .85; pointer-events: none;
}
.ma-join-figure img { height: 280px; width: auto; }
.ma-join-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.ma-join-content { max-width: 680px; }
.ma-join-h2 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(44px, 6vw, 96px);
  line-height: .96; letter-spacing: -.025em;
  color: var(--ma-paper); margin: 18px 0 0;
}
.ma-join-h2 em { font-style: italic; font-weight: 400; opacity: .85; }
.ma-join-lead {
  font-family: var(--ma-body); font-size: 18px; line-height: 1.6;
  color: rgba(250,247,242,.78); max-width: 520px; margin: 24px 0 0;
}
.ma-join-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.ma-join-sub {
  font-family: var(--ma-body); font-size: 13px;
  color: rgba(250,247,242,.55); margin-top: 16px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.ma-footer {
  background: var(--ma-ink); color: #c4c9c7;
  padding-top: 72px; padding-bottom: 32px;
  position: relative;
}
.ma-footer-wave {
  position: absolute; top: -1px; left: 0;
  width: 100%; height: 48px; display: block;
}
.ma-footer-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 16px 32px 0;
}
.ma-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; align-items: start;
}
.ma-footer-brand-name {
  font-family: var(--ma-display); font-size: 28px; font-weight: 500;
  color: var(--ma-coral); line-height: 1.05; letter-spacing: -.01em; margin: 0;
}
.ma-footer-brand-desc {
  font-family: var(--ma-body); font-size: 14px; line-height: 1.6;
  color: #9098a0; max-width: 300px; margin: 16px 0 0;
}
.ma-footer-tagline {
  font-family: var(--ma-body); font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ma-coral); margin-top: 20px;
}
.ma-footer-col-title {
  font-family: var(--ma-body); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ma-paper); margin-bottom: 14px;
}
.ma-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ma-footer-col li { margin-bottom: 9px; }
.ma-footer-col a {
  font-family: var(--ma-body); font-size: 14px;
  color: #c4c9c7; text-decoration: none;
}
.ma-footer-col a:hover { color: var(--ma-paper); }
.ma-footer-meta {
  margin-top: 64px; padding-top: 20px;
  border-top: 1px solid rgba(196,201,199,.14);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ma-body); font-size: 12px; color: #6e7572;
  flex-wrap: wrap; gap: 12px;
}
.ma-footer-meta a { color: #9098a0; text-decoration: none; }
.ma-footer-meta a:hover { color: var(--ma-paper); }
.ma-footer-meta-links { display: flex; gap: 20px; }

/* ===================================================================
   ARTISTS INDEX — new design
   =================================================================== */
.ma-artists-header {
  padding: 56px 0 40px;
  background: var(--ma-paper);
  border-bottom: 1px solid var(--ma-paper-edge);
}
.ma-artists-header-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
}
.ma-artists-h1 {
  font-family: var(--ma-display); font-weight: 400;
  font-size: clamp(52px, 7vw, 112px);
  line-height: .92; letter-spacing: -.025em;
  margin: 0; color: var(--ma-ink);
}
.ma-artists-h1 em { font-style: italic; color: var(--ma-violet); font-weight: 400; }
.ma-artists-handnote {
  font-family: Georgia, serif; font-style: italic;
  color: var(--ma-coral); font-size: 22px;
  max-width: 260px; padding-bottom: 8px;
}
.ma-filter-bar {
  margin-top: 40px; display: flex; align-items: center;
  flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
.ma-filter-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ma-filter-label {
  font-family: var(--ma-body); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ma-ink-mute);
  margin-right: 4px;
}
.ma-layout-switcher {
  display: flex; gap: 3px; align-items: center;
  border: 1.5px solid var(--ma-paper-edge); border-radius: 999px; padding: 3px;
}
.ma-layout-btn {
  font-family: var(--ma-body); font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 999px; border: none;
  background: transparent; color: var(--ma-ink-mute);
  cursor: pointer; transition: background 100ms, color 100ms;
}
.ma-layout-btn.active {
  background: var(--ma-ink); color: var(--ma-paper);
}

/* Index layout */
.ma-index-section { padding: 40px 0 80px; background: var(--ma-paper); }
.ma-index-group {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 48px; padding-block: 44px;
  border-top: 1px solid var(--ma-paper-edge);
}
.ma-index-group:first-child { border-top: 2px solid var(--ma-ink); }
.ma-index-letter-col { position: sticky; top: 80px; height: fit-content; }
.ma-index-letter {
  font-family: var(--ma-display); font-size: 120px;
  line-height: .85; color: var(--ma-violet); letter-spacing: -.04em;
}
.ma-index-count {
  font-family: var(--ma-body); font-size: 11px; color: var(--ma-ink-mute);
  letter-spacing: .14em; text-transform: uppercase; margin-top: 4px;
}
.ma-index-rows { display: flex; flex-direction: column; gap: 0; }
.ma-index-row {
  display: grid;
  grid-template-columns: 1fr 1fr .7fr 80px;
  align-items: center; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--ma-paper-edge);
  text-decoration: none; color: inherit; position: relative;
  transition: background 120ms;
}
.ma-index-row:hover .ma-index-row-name { color: var(--ma-violet); }
.ma-index-row-name {
  font-family: var(--ma-display); font-size: 32px;
  line-height: 1; letter-spacing: -.01em; color: var(--ma-ink);
  transition: color 120ms;
}
.ma-index-row-medium {
  font-family: var(--ma-body); font-size: 13px; font-weight: 500; color: var(--ma-teal);
}
.ma-index-row-tagline {
  font-family: Georgia, serif; font-style: italic; font-size: 13px; color: var(--ma-ink-mute);
  margin-top: 2px;
}
.ma-index-row-loc {
  font-family: var(--ma-body); font-size: 12px; color: var(--ma-coral);
  letter-spacing: .06em; text-transform: uppercase;
}
.ma-index-row-thumb {
  width: 64px; height: 64px; overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 2px 2px 0 var(--ma-paper-edge);
}
.ma-index-row:hover .ma-index-row-thumb {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 4px 4px 0 var(--ma-ink);
}
.ma-index-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ma-index-row-thumb svg { width: 100%; height: 100%; }

/* Grid layout */
.ma-grid-section { padding: 40px 0 80px; background: var(--ma-paper); }
.ma-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}
.ma-grid-card {
  text-decoration: none; background: var(--ma-paper);
  border: 1px solid var(--ma-paper-edge);
  display: flex; flex-direction: column;
  box-shadow: 3px 3px 0 var(--ma-paper-edge);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.ma-grid-card:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 var(--ma-ink);
}
.ma-grid-card-art { aspect-ratio: 1; overflow: hidden; position: relative; }
.ma-grid-card-art img { width: 100%; height: 100%; object-fit: cover; }
.ma-grid-card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-grid-card-body { padding: 14px 14px 16px; }
.ma-grid-card-name {
  font-family: var(--ma-display); font-size: 20px; font-weight: 500;
  color: var(--ma-ink); letter-spacing: -.01em; line-height: 1.1;
}
.ma-grid-card-medium {
  font-family: var(--ma-body); font-size: 12px; font-weight: 500;
  color: var(--ma-teal); margin-top: 4px;
}
.ma-grid-card-loc {
  font-family: var(--ma-body); font-size: 11px; color: var(--ma-coral);
  letter-spacing: .04em; text-transform: uppercase; margin-top: 2px;
}

/* Wall layout */
.ma-wall-section { padding: 40px 0 80px; background: var(--ma-paper-deep); }
.ma-wall-masonry { columns: 4; column-gap: 28px; }
.ma-wall-item { break-inside: avoid; margin-bottom: 40px; display: flex; justify-content: center; }
.ma-wall-card {
  text-decoration: none; background: var(--ma-paper);
  padding: 8px; box-shadow: 4px 4px 0 var(--ma-ink);
  display: flex; flex-direction: column;
  transition: transform 140ms ease;
}
.ma-wall-card:hover { transform: translate(-2px,-2px); }
.ma-wall-card-art { width: 200px; height: 220px; overflow: hidden; position: relative; }
.ma-wall-card-art img { width: 100%; height: 100%; object-fit: cover; }
.ma-wall-card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-wall-card-name {
  font-family: var(--ma-display); font-size: 18px; font-weight: 500;
  color: var(--ma-ink); margin: 10px 0 0;
}
.ma-wall-card-medium {
  font-family: var(--ma-body); font-size: 12px; color: var(--ma-ink-mute); margin-top: 2px;
}

/* List layout */
.ma-list-section { padding: 0 0 80px; background: var(--ma-paper); }
.ma-list-table { width: 100%; border-collapse: collapse; }
.ma-list-thead th {
  text-align: left; padding: 16px 12px;
  font-family: var(--ma-body); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ma-ink-mute);
  border-bottom: 2px solid var(--ma-ink);
}
.ma-list-tbody tr { border-bottom: 1px solid var(--ma-paper-edge); }
.ma-list-tbody tr:hover { background: var(--ma-paper-deep); }
.ma-list-td { padding: 18px 12px; vertical-align: middle; }
.ma-list-td a { text-decoration: none; }
.ma-list-name {
  font-family: var(--ma-display); font-size: 24px;
  color: var(--ma-ink); letter-spacing: -.01em; font-weight: 400;
}
.ma-list-medium { font-family: var(--ma-body); font-size: 14px; color: var(--ma-teal); font-weight: 500; }
.ma-list-tagline { font-family: Georgia, serif; font-style: italic; font-size: 13px; color: var(--ma-ink-mute); }
.ma-list-loc {
  font-family: var(--ma-body); font-size: 12px; color: var(--ma-coral);
  letter-spacing: .06em; text-transform: uppercase;
}

/* Layout sections visibility */
.ma-layout-section { display: none; }
.ma-layout-section.visible { display: block; }

/* ===================================================================
   ARTIST DETAIL
   =================================================================== */
.ma-detail { padding: 64px 0; }
.ma-detail-hero {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 56px; align-items: start;
}
.ma-detail-photo {
  aspect-ratio: 3 / 4; overflow: hidden; position: relative;
  border: 1px solid var(--ma-paper-edge);
  box-shadow: var(--ma-shadow-lift);
}
.ma-detail-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ma-detail-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; position: absolute; inset: 0;
  font-family: var(--ma-display); font-size: 96px; color: var(--ma-violet);
  background: var(--ma-violet-wash);
}
.ma-detail-eyebrow {
  font-family: var(--ma-body); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ma-ink-mute);
}
.ma-detail-name {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(40px, 5vw, 72px); line-height: 1.0;
  letter-spacing: -.02em; color: var(--ma-ink); margin: 8px 0;
}
.ma-detail-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ma-detail-pill {
  font-family: var(--ma-body); font-size: 13px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--ma-paper-deep); color: var(--ma-ink-soft);
  border: 1px solid var(--ma-paper-edge);
}
.ma-detail-pill-accent { background: var(--ma-violet-wash); color: var(--ma-violet); border-color: var(--ma-violet-wash); }
.ma-detail-quote {
  font-family: var(--ma-display); font-style: italic;
  font-size: 22px; line-height: 1.4; color: var(--ma-teal);
  margin-bottom: 18px;
}
.ma-detail-bio {
  font-family: var(--ma-body); font-size: 17px; line-height: 1.65; color: var(--ma-ink-soft);
}
.ma-products-head { margin: 56px 0 24px; }
.ma-products-head h2 {
  font-family: var(--ma-display); font-size: 36px; font-weight: 500;
  color: var(--ma-ink); margin: 0;
}
.ma-product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px;
}
.ma-product-card {
  border: 1px solid var(--ma-paper-edge);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.ma-product-card:hover {
  transform: translateY(-2px); box-shadow: var(--ma-shadow-paper);
}
.ma-product-card a { text-decoration: none; display: block; color: inherit; }
.ma-product-art { aspect-ratio: 1; overflow: hidden; }
.ma-product-art img { width: 100%; height: 100%; object-fit: cover; }
.ma-product-body { padding: 14px; }
.ma-product-title { font-family: var(--ma-display); font-size: 18px; color: var(--ma-ink); font-weight: 500; }
.ma-product-price {
  font-family: var(--ma-body); font-size: 14px; color: var(--ma-ink-mute); margin-top: 4px;
}
.ma-product-action {
  font-family: var(--ma-body); font-size: 13px; font-weight: 500; color: var(--ma-teal);
  margin-top: 6px;
}
.ma-product-soldout { color: var(--ma-ink-mute); font-family: var(--ma-body); font-size: 13px; margin-top: 6px; }

/* ===================================================================
   COMING SOON
   =================================================================== */
.ma-coming-soon {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 32px;
  background: var(--ma-paper);
}
.ma-cs-inner { max-width: 560px; }
.ma-cs-kicker {
  font-family: var(--ma-body); font-size: 11px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ma-teal);
}
.ma-cs-h1 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .96; letter-spacing: -.02em;
  color: var(--ma-ink); margin: 20px 0 0;
}
.ma-cs-h1 em { font-style: italic; font-weight: 400; color: var(--ma-teal); }
.ma-cs-accent {
  font-family: var(--ma-body); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ma-coral); margin-top: 24px;
}
.ma-cs-locs {
  font-family: var(--ma-body); font-size: 14px; color: var(--ma-ink-mute);
  margin-top: 10px; letter-spacing: .04em;
}
.ma-cs-figures {
  margin-top: 44px; display: flex; align-items: flex-end;
  justify-content: center; gap: 6px;
}
.ma-cs-figures img { height: 80px; width: auto; }

/* ===================================================================
   SKIP LINK + misc
   =================================================================== */
.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ma-teal); color: var(--ma-paper);
  padding: 8px 16px; border-radius: 4px;
  font-family: var(--ma-body); font-size: 14px; text-decoration: none; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1180px) {
  .ma-hero-grid { grid-template-columns: 1fr !important; }
  .ma-hero-wall { display: none; }
  .ma-featured-grid { grid-template-columns: 1fr; }
  .ma-browse-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ma-detail-hero { grid-template-columns: 1fr; }
  .ma-index-group { grid-template-columns: 80px 1fr; gap: 24px; }
  .ma-index-letter { font-size: 72px; }
  .ma-wall-masonry { columns: 2; }
}

@media (max-width: 768px) {
  .ma-nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-toggle-input:checked ~ header .ma-nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ma-paper); padding: 16px 24px 24px;
    border-bottom: 1px solid var(--ma-paper-edge);
  }
  .ma-hero { padding: 32px 0 56px; }
  .ma-hero-h1 { font-size: clamp(44px, 12vw, 72px); }
  .ma-featured { padding: 64px 0; }
  .ma-browse { padding: 64px 0; }
  .ma-browse-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ma-about-section { padding: 72px 0; }
  .ma-about-figures img { height: 100px; }
  .ma-stats { grid-template-columns: 1fr 1fr; }
  .ma-join { padding: 72px 0; }
  .ma-join-figure { display: none; }
  .ma-footer-grid { grid-template-columns: 1fr; }
  .ma-index-group { grid-template-columns: 1fr; }
  .ma-index-letter-col { position: static; }
  .ma-index-letter { font-size: 56px; }
  .ma-index-row { grid-template-columns: 1fr 1fr; }
  .ma-index-row-loc, .ma-index-row-thumb { display: none; }
  .ma-wall-masonry { columns: 2; }
  .ma-container-wide { padding: 0 16px; }
  .ma-nav-inner { padding: 12px 16px; }
}

/* ===================================================================
   MAC (Maine Artist Collective) — site-specific components
   =================================================================== */

/* MAC hero */
.mac-hero {
  background: var(--ma-ink); color: var(--ma-paper);
  padding: 72px 0 80px; position: relative; overflow: hidden;
}
.mac-hero-inner { position: relative; z-index: 2; }
.mac-hero-kicker {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--ma-body); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ma-coral);
  margin-bottom: 48px;
}
.mac-hero-kicker-rule { flex: 0 0 40px; height: 1px; background: currentColor; opacity: .4; }
.mac-hero-heading-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.mac-hero-logo { margin-bottom: 28px; }
.mac-hero-h1 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(64px, 10vw, 112px);
  line-height: .92; letter-spacing: -.025em; color: var(--ma-paper);
  margin: 0 0 32px;
}
.mac-hero-h1 em { font-style: italic; font-weight: 400; color: var(--ma-coral); }
.mac-hero-sub-text p {
  font-family: var(--ma-body); font-size: 18px; line-height: 1.55;
  color: rgba(250,247,242,.72); margin: 0 0 28px;
}
.mac-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.mac-btn-ghost-light {
  font-family: var(--ma-body); font-weight: 500; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  background: transparent; color: var(--ma-paper);
  border: 1.5px solid rgba(250,247,242,.4);
  text-decoration: none; display: inline-flex; align-items: center;
  transition: border-color 140ms, background 140ms;
}
.mac-btn-ghost-light:hover { border-color: var(--ma-paper); background: rgba(250,247,242,.08); }
.mac-hero-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  align-self: center;
}
.mac-hero-tile {
  text-decoration: none; color: var(--ma-paper);
  display: flex; flex-direction: column;
}
.mac-hero-tile-art {
  aspect-ratio: 1; position: relative; overflow: hidden;
  border-radius: 4px;
}
.mac-hero-tile-name {
  font-family: var(--ma-body); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 6px; opacity: .6; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* MAC shop CTA strip */
.mac-shop-strip {
  background: var(--ma-violet); color: var(--ma-paper);
  padding: 56px 0;
}
.mac-shop-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.mac-shop-strip-h2 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.05;
  letter-spacing: -.02em; margin: 10px 0 0;
}
.mac-shop-strip-h2 em { font-style: italic; font-weight: 400; color: var(--ma-coral); }

/* MAC shop page */
.mac-shop-header { padding: 72px 0 48px; background: var(--ma-paper); }
.mac-shop-h1 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(44px, 6vw, 80px); line-height: .96;
  letter-spacing: -.025em; color: var(--ma-ink); margin: 12px 0 36px;
}
.mac-shop-h1 em { font-style: italic; font-weight: 400; color: var(--ma-violet); }
.mac-shop-filter { margin-top: 24px; }
.mac-shop-grid-section { padding: 40px 0 80px; background: var(--ma-paper); }
.mac-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}
.mac-shop-card { display: flex; flex-direction: column; }
.mac-shop-card-img-link { display: block; text-decoration: none; }
.mac-shop-card-art {
  aspect-ratio: 1; position: relative; overflow: hidden;
  border-radius: 4px; background: var(--ma-paper-deep);
  border: 1px solid var(--ma-paper-edge);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.mac-shop-card-art:hover {
  transform: translateY(-2px); box-shadow: var(--ma-shadow-lift);
}
.mac-shop-card-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mac-shop-card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mac-shop-card-body { padding: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.mac-shop-card-vendor {
  font-family: var(--ma-body); font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ma-violet);
}
.mac-shop-card-title {
  font-family: var(--ma-display); font-size: 20px; font-weight: 500;
  color: var(--ma-ink); line-height: 1.15; letter-spacing: -.01em;
}
.mac-shop-card-price {
  font-family: var(--ma-body); font-size: 15px; font-weight: 600; color: var(--ma-coral);
}
.mac-shop-card-btn { margin-top: 10px; font-size: 13px; padding: 8px 18px; }
.mac-shop-empty {
  text-align: center; padding: 80px 0;
  font-family: var(--ma-body); font-size: 17px; color: var(--ma-ink-mute);
}

/* MAC artist detail — products-first */
.mac-detail-header {
  padding: 60px 0 48px; background: var(--ma-paper);
  border-bottom: 1px solid var(--ma-paper-edge);
}
.mac-detail-header-inner {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px; align-items: start;
}
.mac-detail-header-photo {
  aspect-ratio: 3 / 4; overflow: hidden; position: relative;
  border-radius: 4px; border: 1px solid var(--ma-paper-edge);
  box-shadow: var(--ma-shadow-lift);
}
.mac-detail-header-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mac-detail-eyebrow { margin-bottom: 10px; }
.mac-detail-name {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px); line-height: 1.0;
  letter-spacing: -.02em; color: var(--ma-ink); margin: 8px 0 16px;
}
.mac-detail-quote {
  font-family: var(--ma-display); font-style: italic;
  font-size: 20px; line-height: 1.4; color: var(--ma-violet);
  margin: 16px 0; padding-left: 20px; border-left: 3px solid var(--ma-violet);
}
.mac-detail-shop {
  padding: 56px 0 48px; background: var(--ma-paper);
}
.mac-detail-shop-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.mac-detail-shop-h2 {
  font-family: var(--ma-display); font-weight: 500;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.0;
  letter-spacing: -.02em; color: var(--ma-ink); margin: 0;
}
.mac-detail-shop-count {
  font-family: var(--ma-body); font-size: 13px; color: var(--ma-ink-mute);
}
.mac-detail-bio { padding: 48px 0 64px; background: var(--ma-paper-deep); }
.mac-detail-bio-inner { max-width: 680px; }
.mac-detail-bio-text {
  font-family: var(--ma-body); font-size: 18px; line-height: 1.65;
  color: var(--ma-ink-soft); margin: 16px 0 0;
}
.mac-detail-badge {
  display: inline-block; margin-top: 20px;
  font-family: var(--ma-body); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ma-teal);
  padding: 6px 14px; border: 1.5px solid var(--ma-teal);
  border-radius: 999px;
}

/* MAC coming soon variant */
[data-site="mac"] .ma-coming-soon {
  background: var(--ma-ink); color: var(--ma-paper);
}
[data-site="mac"] .ma-cs-h1 { color: var(--ma-paper); }
[data-site="mac"] .ma-cs-h1 em { color: var(--ma-coral); }
[data-site="mac"] .ma-cs-kicker { color: var(--ma-coral); }
[data-site="mac"] .ma-cs-locs { color: rgba(250,247,242,.5); }

/* MAC nav override — logo on dark page scroll */
[data-site="mac"] .ma-nav {
  background: rgba(26,31,31,.94);
  border-bottom-color: rgba(250,247,242,.08);
}
[data-site="mac"] .ma-nav-link,
[data-site="mac"] .ma-nav-brand { color: var(--ma-paper); }
[data-site="mac"] .ma-nav-link:hover,
[data-site="mac"] .ma-nav-link.active {
  color: var(--ma-coral); border-bottom-color: var(--ma-coral);
}

/* MAC responsive */
@media (max-width: 960px) {
  .mac-hero-heading-row { grid-template-columns: 1fr; }
  .mac-hero-tiles { grid-template-columns: repeat(4, 1fr); }
  .mac-detail-header-inner { grid-template-columns: 220px 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .mac-hero { padding: 48px 0 56px; }
  .mac-hero-h1 { font-size: clamp(48px, 12vw, 72px); }
  .mac-hero-tiles { grid-template-columns: repeat(3, 1fr); }
  .mac-detail-header-inner { grid-template-columns: 1fr; }
  .mac-detail-header-photo { aspect-ratio: 4 / 3; }
  .mac-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .mac-shop-strip-inner { flex-direction: column; align-items: flex-start; }
}
