/* Link-in-bio base styles. Themes override the custom properties below. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1c1f;
  --muted: #55555c;
  --accent: #2f5bd3;
  --on-accent: #ffffff;
  --btn-bg: #ffffff;
  --btn-text: #1c1c1f;
  --btn-border: #d9d8d3;
  --btn-hover: #f0efea;
  --focus: #1c1c1f;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --maxw: 560px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 18px 28px;
}
.card { position: relative; }

/* ---- header ---- */
.hero { text-align: center; padding: 8px 0 24px; }
.hero__logo { display: block; width: 128px; height: 128px; margin: 0 auto 16px; }
.hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -0.01em;
}
.hero__tagline { margin-top: 6px; color: var(--muted); font-size: 1.05rem; }

.notice {
  display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .92rem;
}
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--text); background: var(--btn-bg); border: 1px solid var(--btn-border);
  transition: transform .15s ease, background-color .15s ease;
}
.social .icon { width: 22px; height: 22px; }
.social:hover { background: var(--btn-hover); transform: translateY(-1px); }

/* ---- link buttons ---- */
.link-list { display: grid; gap: 12px; }
.btn {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 12px 14px 12px 16px;
  background: var(--btn-bg); color: var(--btn-text);
  border: 1px solid var(--btn-border); border-radius: var(--radius);
  text-decoration: none; font-weight: 650; font-size: 1.04rem; line-height: 1.25;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; }
.btn__icon .icon { width: 22px; height: 22px; }
.btn__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.btn__title { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.btn__sub { font-weight: 450; font-size: .88rem; color: var(--muted); }
.btn__chev { flex: none; opacity: .7; }
.btn__chev .icon { width: 18px; height: 18px; }
.badge {
  display: inline-block; flex: none;
  padding: 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  background: var(--accent); color: var(--on-accent);
}
.btn--featured, .btn--promo { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn--featured .btn__sub, .btn--promo .btn__title { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.btn__sub { color: inherit; opacity: .9; }
.btn--featured .badge, .btn--promo .badge { background: var(--on-accent); color: var(--accent); }
.btn--featured:hover, .btn--promo:hover { background: var(--accent); filter: brightness(1.05); }

/* ---- support resources ---- */
.support { margin-top: 36px; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--btn-border); }
.support__h { font-size: 1.25rem; line-height: 1.3; }
.support__intro { margin-top: 6px; color: var(--muted); }
.support__note { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.support .res-list { display: grid; gap: 14px; margin-top: 18px; }
.res { padding-top: 14px; border-top: 1px solid var(--btn-border); }
.res:first-child { border-top: 0; padding-top: 0; }
.res__name { font-size: 1.02rem; line-height: 1.3; }
.res__desc { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.res__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-text);
  font-weight: 650; font-size: .95rem; text-decoration: none;
}
.chip .icon { width: 18px; height: 18px; }
.chip:hover { background: var(--btn-hover); }
.chip--primary { background: var(--text); color: var(--bg); border-color: transparent; }
.chip--primary:hover { background: var(--text); filter: brightness(1.2); }

/* ---- footer ---- */
.foot { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 32px; }
.foot__note { margin-top: 4px; font-size: .82rem; }

@media (min-width: 768px) {
  .page { padding-top: 56px; }
  .hero__logo { width: 152px; height: 152px; }
}

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

@media (forced-colors: active) {
  .btn, .chip, .social { border: 2px solid ButtonText; }
}

/* ---- theme: inclusivethought ---- */
/* Inclusive Thought: warm, calm, soft. Colors from the logo (pink #ff2e8b, black, rainbow ring). */
.theme-inclusivethought {
  --bg: #fbf6f1;
  --surface: #ffffff;
  --text: #1f1a1d;
  --muted: #5b5257;
  --accent: #ff2e8b;
  --on-accent: #14090f;
  --btn-bg: #ffffff;
  --btn-text: #1f1a1d;
  --btn-border: #ece2da;
  --btn-hover: #fff3f8;
  --focus: #1f1a1d;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -10%, #ffe6f1 0%, transparent 60%),
    radial-gradient(800px 600px at 110% 30%, #efeafb 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.theme-inclusivethought::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 6px; z-index: 5;
  background: linear-gradient(90deg, #ff2600, #ff8a00, #ffd400, #3ad900, #0066ff, #7a1fff, #e100ff);
}
.theme-inclusivethought .hero__logo { filter: drop-shadow(0 8px 18px rgba(31, 26, 29, .18)); }
.theme-inclusivethought .btn {
  box-shadow: 0 1px 2px rgba(31, 26, 29, .05), 0 4px 14px rgba(31, 26, 29, .05);
}
.theme-inclusivethought .btn__icon { border-radius: 12px; background: #fff0f6; color: #b0005a; }
.theme-inclusivethought .btn--featured { box-shadow: 0 6px 20px rgba(255, 46, 139, .28); }
.theme-inclusivethought .btn--featured .btn__icon { background: rgba(255, 255, 255, .45); color: var(--on-accent); }
.theme-inclusivethought .btn--featured:focus-visible { outline-color: var(--text); }
.theme-inclusivethought .badge { background: #1f1a1d; color: #fff; }
.theme-inclusivethought .social { box-shadow: 0 2px 8px rgba(31, 26, 29, .06); }

/* calm support section */
.theme-inclusivethought .support {
  margin-top: 40px;
  background: #f3f0fa;
  border-color: #e0d9f0;
  --btn-border: #ddd5ee;
  --btn-hover: #ebe6f7;
  padding: 24px 20px;
}
.theme-inclusivethought .support__h { font-family: var(--font-display); color: #2b2545; }
.theme-inclusivethought .support__intro,
.theme-inclusivethought .res__desc,
.theme-inclusivethought .support__note { color: #4c4566; }
.theme-inclusivethought .res { border-top-color: #e0d9f0; }
.theme-inclusivethought .res__name { color: #2b2545; }
.theme-inclusivethought .chip { background: #ffffff; color: #2b2545; }
.theme-inclusivethought .chip--primary { background: #3b3260; color: #ffffff; }
.theme-inclusivethought .chip--primary:hover { background: #2e2650; filter: none; }

@media (min-width: 768px) {
  .theme-inclusivethought .page { padding-top: 64px; }
  .theme-inclusivethought .support { padding: 28px 26px; }
}
