/* CloudBSD theme for social.cloudbsd.ai (Mastodon 4.7 custom CSS).
   Palette and fonts: cloudbsd-brand skill and desktop.cloudbsd.ai site.css.
   Fonts are self-hosted under /fonts/cloudbsd/ (CSP font-src 'self'). */

@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/cloudbsd/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/cloudbsd/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(/fonts/cloudbsd/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/cloudbsd/outfit-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/cloudbsd/outfit-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Ramps: grey = the slate ramp of the site; indigo = brand blue #00529B,
   lightened toward white or darkened toward the navy ground. */
html, html[data-redesign=true] {
  --font-body: "Inter Variable", Inter, sans-serif;
  --font-heading: "Outfit Variable", sans-serif;
  --cloudbsd-blue: #00529B;
  --cloudbsd-cyan: #22d3ee;
  --cloudbsd-red: #D32F2F;
  --color-grey-50: #f8fafc;
  --color-grey-100: #f1f5f9;
  --color-grey-200: #e2e8f0;
  --color-grey-300: #cbd5e1;
  --color-grey-400: #94a3b8;
  --color-grey-500: #64748b;
  --color-grey-600: #475569;
  --color-grey-700: #334155;
  --color-grey-800: #1e293b;
  --color-grey-900: #0f172a;
  --color-grey-950: #020617;
  --color-indigo-50: color-mix(in oklab, #00529B 6%, #fff);
  --color-indigo-100: color-mix(in oklab, #00529B 12%, #fff);
  --color-indigo-200: color-mix(in oklab, #00529B 25%, #fff);
  --color-indigo-300: #60a5fa;
  --color-indigo-400: color-mix(in oklab, #60a5fa 70%, #00529B);
  --color-indigo-500: color-mix(in oklab, #00529B 50%, #60a5fa);
  --color-indigo-600: color-mix(in oklab, #00529B 80%, #60a5fa);
  --color-indigo-700: #00529B;
  --color-indigo-800: color-mix(in oklab, #00529B 80%, #0f172a);
  --color-indigo-900: color-mix(in oklab, #00529B 45%, #0f172a);
  --color-indigo-950: color-mix(in oklab, #00529B 25%, #0f172a);
}

/* Dark: navy ground, slate surfaces; cyan stays on the wordmark only */
[data-color-scheme='dark'], html:not([data-color-scheme]) {
  --color-bg-primary: #0f172a;
  --color-bg-secondary: #1e293b;
  --color-bg-tertiary: #334155;
  --color-bg-inverted: #f8fafc;
  --color-bg-brand-base: #00529B;
  --color-bg-brand-base-hover: color-mix(in oklab, #00529B 85%, #fff);
  --color-bg-brand-soft: color-mix(in oklab, #00529B 45%, #0f172a);
  --color-bg-brand-softest: color-mix(in oklab, #00529B 25%, #0f172a);
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-brand: #60a5fa;
  --color-text-on-brand-base: #fff;
  --color-text-status-links: #60a5fa;
  --color-border-primary: #334155;
  --color-border-brand: #60a5fa;
  --color-border-brand-soft: #00529B;
  --color-bg-error-base: #D32F2F;
}

/* Light: white ground, slate text, brand blue for links and fills */
[data-color-scheme='light'] {
  --color-bg-primary: #fff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-bg-inverted: #0f172a;
  --color-bg-brand-base: #00529B;
  --color-bg-brand-base-hover: color-mix(in oklab, #00529B 85%, #0f172a);
  --color-bg-brand-soft: color-mix(in oklab, #00529B 12%, #fff);
  --color-bg-brand-softest: color-mix(in oklab, #00529B 6%, #fff);
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-text-brand: #00529B;
  --color-text-on-brand-base: #fff;
  --color-text-status-links: #00529B;
  --color-border-primary: #e2e8f0;
  --color-border-brand: #00529B;
  --color-border-brand-soft: color-mix(in oklab, #00529B 25%, #fff);
  --color-bg-error-base: #D32F2F;
}

/* Display type: Outfit on headings */
.column-header__title, .about__header h1, .about__section__title, .column-title h1,
.sign-in-banner strong, .account__header__tabs__name h1, .form-container h1, .simple_form h1 {
  font-family: var(--font-heading);
  letter-spacing: .01em;
}

/* Wordmark: "Cloud" + cyan "BSD" in place of the Mastodon wordmark */
.column-link--logo .logo--wordmark, .logo-container a .logo--wordmark { display: none; }
.column-link--logo, .logo-container a {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; color: var(--color-text-primary);
}
.column-link--logo { font-size: 28px; line-height: 30px; gap: 0; width: fit-content; }
.logo-container a { font-size: 40px; line-height: 42px; }
.column-link--logo::before, .logo-container a::before { content: "Cloud"; }
.column-link--logo::after, .logo-container a::after { content: "BSD"; color: #22d3ee; }
/* cyan on white is unreadable: in light mode the wordmark keeps its navy bar */
[data-color-scheme='light'] .column-link--logo, [data-color-scheme='light'] .logo-container a {
  background: #0f172a; color: #fff; border-radius: 8px; padding-inline: 12px;
}
[data-color-scheme='light'] .logo-container a { padding-block: 6px; }
[data-color-scheme='light'] .column-link--logo { margin-inline-start: 16px; }

/* Form fields: edges at 3:1 or better against the ground in both schemes
   (#64748b: about 4.8:1 on white, about 3.7:1 on #0f172a) */
.search__input, .simple_form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.simple_form textarea, .simple_form select { border-color: #64748b; }

/* Mobile header: the CloudBSD icon in place of the Mastodon one
   (content on <img> works in Chromium and WebKit; Firefox keeps the stock icon) */
img.logo--icon { content: url(/apple-touch-icon.png); }
[data-color-scheme='light'] img.logo--icon { background: #0f172a; border-radius: 6px; padding: 2px; }

/* Registrations are closed server-side (registrations_mode "none");
   these only remove the sign-up buttons that would lead nowhere */
.sign-in-banner > button.button,
.ui__navigation-bar__sign-up > button.button,
.form-footer li:has(> a[href="https://joinmastodon.org/"]) { display: none; }


