/* showmelove — shared design system
   Neo-brutalist: thick ink borders, hard offset shadows, cream dot-grid. */
:root {
  --brand: #FF5A36;
  --ink: #1C1714;
  --bg: #EFE6D3;
  --gold: #F4A93C;
  --green: #3FA46B;
  /* Body text on light surfaces — darkened for stronger contrast against the bold UI. */
  --muted: #574D3B;
  --muted-2: #6F6452;
  --muted-3: #8E8268;
}

* { box-sizing: border-box; }
/* Base font + a real sans-serif fallback stack, so if the web font is slow or
   blocked, text degrades to the system sans — never the UA serif (Times). */
body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
}
/* The `hidden` attribute must win over component `display` rules
   (e.g. .stage-center/.support-state use display:flex, which would otherwise
   override the UA [hidden]{display:none} at equal specificity). */
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(rgba(28,23,20,0.035) 1px, transparent 1px);
  background-size: 5px 5px;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
}

/* ---- Brand lockup ---- */
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--brand);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
  flex: none;
}
.brand-name {
  font: 800 21px 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.03em;
}

/* ---- Buttons ---- */
.btn-primary {
  height: 54px; padding: 0 30px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--brand); color: #fff;
  font: 700 15px 'Hanken Grotesk', sans-serif;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-outline {
  height: 54px; padding: 0 28px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: #fff;
  font: 700 15px 'Hanken Grotesk', sans-serif;
  color: var(--ink); cursor: pointer;
}
.btn-pop {
  height: 46px; padding: 0 20px;
  border: 2px solid var(--ink); border-radius: 11px;
  background: #fff;
  font: 700 14px 'Hanken Grotesk', sans-serif;
  color: var(--ink); cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-pop:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-pill {
  height: 42px; padding: 0 20px;
  background: var(--ink); color: #fff;
  border: none; border-radius: 999px;
  font: 600 14px 'Hanken Grotesk', sans-serif;
  cursor: pointer;
}

/* ---- Badges ---- */
.badge {
  font: 700 11px 'Hanken Grotesk', sans-serif;
  padding: 4px 11px; border-radius: 999px;
  border: 1.5px solid var(--ink); white-space: nowrap;
}
.badge-brand { background: var(--brand); color: #fff; }
.badge-muted { background: #F2ECE0; color: var(--muted); }

/* ---- Avatar initial ---- */
.avatar {
  border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  color: #fff; border: 2px solid var(--ink);
}

/* ---- Striped progress bar ---- */
.bar-fill {
  height: 100%;
  background: repeating-linear-gradient(45deg,
    var(--brand), var(--brand) 8px,
    color-mix(in srgb, var(--brand) 82%, #fff) 8px,
    color-mix(in srgb, var(--brand) 82%, #fff) 16px);
}

/* ---- Account menu ---- */
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 12px 0 8px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  font: 700 14px 'Hanken Grotesk', sans-serif; color: var(--ink);
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.acct-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border: 1.5px solid var(--ink);
  font: 800 13px 'Bricolage Grotesque', sans-serif;
}
.acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 200px;
  background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink); padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.acct-menu[hidden] { display: none; }
.acct-menu a, .acct-signout {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 9px;
  font: 600 14px 'Hanken Grotesk', sans-serif; color: var(--ink);
  background: none; border: none; cursor: pointer;
}
.acct-menu a:hover, .acct-signout:hover { background: #F2ECE0; }
.acct-signout { color: #C0392B; border-top: 1.5px solid var(--bg); border-radius: 0 0 9px 9px; margin-top: 2px; }
.acct-menu form { margin: 0; }

.side-signout {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--ink); border-radius: 9px;
  cursor: pointer; padding: 0;
}
.side-signout:active { transform: translate(1px,1px); }

/* ---- Brand color picker (shared, floating) ---- */
.theme-dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--ink);
  border-radius: 999px; padding: 9px 14px;
  box-shadow: 3px 3px 0 var(--ink);
}
.theme-dock-label {
  font: 700 11px 'Hanken Grotesk', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-2);
}
.theme-swatches { display: flex; gap: 7px; }
.theme-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink); cursor: pointer; padding: 0;
  transition: transform .1s;
}
.theme-swatch:hover { transform: scale(1.12); }
.theme-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

@media (max-width: 760px) {
  .theme-dock { right: 10px; bottom: 10px; padding: 7px 10px; }
  .theme-dock-label { display: none; }
}
