/* suicidesupports.org shared layer: tokens, nav, crisis bar, buttons.
   Palette and type from the original Kalgoorlie page; buttons from
   ics.ceo/library/docs/best-button (Marrs green, gold trim). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --fg-light: #777;
  --bg: #fafaf8;
  --bg-alt: #f0efeb;
  --line: #e5e3de;
  --card: #fff;
  --marrs: #008c8c;
  --marrs-hover: #007979;
  --marrs-active: #006666;
  --marrs-tint: #e3f2f1;
  --gold-trim: linear-gradient(135deg, #f5e4b3 0%, #d4af37 45%, #a87d15 80%, #f7e9be 100%);
  --gold: #b8912a;
  --glass: rgba(255, 255, 255, 0.55);
  --radius: 8px;
  --max-w: 1100px;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.7; font-size: 17px; }
a { color: var(--marrs); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; margin: 0 auto; }

/* Crisis bar: on every page, always first */
.crisis {
  background: #14302f; color: #e8f1f0; font-size: 14px; line-height: 1.5;
  padding: 10px 24px; text-align: center;
}
.crisis a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.crisis a:hover { text-decoration: underline; }
.crisis .sep { opacity: .45; margin: 0 8px; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--marrs); padding: 2px; box-shadow: 0 0 0 2px #d4af37; }
.nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.nav ul a { color: var(--fg-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--fg); }

/* Marrs button: gold-trim wrapper, green face, acrylic gloss */
.mbtn {
  position: relative; display: inline-flex; border-radius: 999px; padding: 2.5px;
  background: var(--gold-trim); border: 0; cursor: pointer; text-decoration: none; user-select: none;
  box-shadow: 10px 18px 28px -4px rgba(0,40,40,.28), 4px 8px 12px -2px rgba(0,30,30,.18), 0 0 0 1px rgba(184,134,11,.3);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  font: inherit;
}
.mbtn > span {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: inherit; background: var(--marrs); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .025em; text-transform: uppercase;
  padding: 14px 30px; transition: background-color .2s ease; width: 100%;
}
.mbtn > span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.08) 40%, rgba(255,255,255,0) 60%);
}
.mbtn:hover { transform: translateY(-3px) scale(1.01); box-shadow: 14px 24px 36px -4px rgba(0,40,40,.32), 6px 12px 16px -2px rgba(0,30,30,.22), 0 0 14px rgba(212,175,55,.45); }
.mbtn:hover > span { background: var(--marrs-hover); }
.mbtn:active { transform: translateY(3px) scale(.98); box-shadow: 3px 6px 10px -2px rgba(0,40,40,.25), 1px 2px 4px -1px rgba(0,30,30,.15); }
.mbtn:active > span { background: var(--marrs-active); }
.mbtn:focus-visible { outline: 3px solid var(--marrs); outline-offset: 4px; }
.mbtn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.mbtn.big > span { font-size: 19px; padding: 20px 40px; }
.mbtn.round { border-radius: 50%; }
.mbtn.round > span { width: 220px; height: 220px; padding: 0; flex-direction: column; gap: 8px; font-size: 20px; }
/* Every button is the library one: no plain or white variants. */
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: ripple .55s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.5); opacity: 0; } }

/* Shared type */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); border: 1px solid #ccc; border-radius: 100px; padding: 6px 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 24px; color: var(--fg-muted); font-size: 14px; text-align: center; }
.foot a { color: var(--fg-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
