/* GENERATED by scripts/generate.mts from registry/tro/theme/registry.json.
 * Do not edit by hand. */
/* TRO design system: tokens, base typography and components as plain CSS.
 * Use it anywhere: Astro, Svelte, plain HTML, prototypes and artifacts.
 *   <link rel="stylesheet" href="https://ui.tro.de/tro.css">
 * Dark mode: add class="dark" to <html>. React + Tailwind projects should use
 * the shadcn registry instead: npx shadcn@latest add @tro/theme */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("https://ui.tro.de/fonts/poppins-latin-200-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://ui.tro.de/fonts/poppins-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://ui.tro.de/fonts/poppins-latin-500-normal.woff2") format("woff2");
}

:root {
  --font-heading: var(--font-sans);
  --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --tro-space-xs: 10px;
  --tro-space-sm: 25px;
  --tro-space-md: 40px;
  --tro-space-lg: 75px;
  --radius: 1.125rem;
  --background: #F5F5F3;
  --foreground: #1E1E1E;
  --card: #F5F5F3;
  --card-foreground: #1E1E1E;
  --popover: #F5F5F3;
  --popover-foreground: #1E1E1E;
  --primary: #1E1E1E;
  --primary-foreground: #F5F5F3;
  --secondary: rgb(30 30 30 / 0.05);
  --secondary-foreground: #1E1E1E;
  --muted: rgb(30 30 30 / 0.05);
  --muted-foreground: #6B6B69;
  --accent: rgb(30 30 30 / 0.1);
  --accent-foreground: #1E1E1E;
  --destructive: #C83C0A;
  --border: #1E1E1E;
  --input: #1E1E1E;
  --ring: #1E1E1E;
  --chart-1: #1E1E1E;
  --chart-2: #FFC832;
  --chart-3: #6B6B69;
  --chart-4: #A3A3A0;
  --chart-5: #D4D4D0;
  --sidebar: #F5F5F3;
  --sidebar-foreground: #1E1E1E;
  --sidebar-primary: #1E1E1E;
  --sidebar-primary-foreground: #F5F5F3;
  --sidebar-accent: rgb(30 30 30 / 0.1);
  --sidebar-accent-foreground: #1E1E1E;
  --sidebar-border: #1E1E1E;
  --sidebar-ring: #1E1E1E;
  --tro-charcoal: #1E1E1E;
  --tro-off-white: #F5F5F3;
  --tro-yellow: #FFC832;
  --tro-red: #FA5A19;
  --tro-lavender: #DCC3FA;
  --tro-light-blue: #A0DCFF;
}

.dark {
  --background: #1E1E1E;
  --foreground: #F5F5F3;
  --card: #1E1E1E;
  --card-foreground: #F5F5F3;
  --popover: #1E1E1E;
  --popover-foreground: #F5F5F3;
  --primary: #F5F5F3;
  --primary-foreground: #1E1E1E;
  --secondary: rgb(245 245 243 / 0.05);
  --secondary-foreground: #F5F5F3;
  --muted: rgb(245 245 243 / 0.05);
  --muted-foreground: #A3A3A0;
  --accent: rgb(245 245 243 / 0.1);
  --accent-foreground: #F5F5F3;
  --destructive: #FA5A19;
  --border: #F5F5F3;
  --input: #F5F5F3;
  --ring: #F5F5F3;
  --chart-1: #F5F5F3;
  --chart-2: #FFC832;
  --chart-3: #A3A3A0;
  --chart-4: #6B6B69;
  --chart-5: #484846;
  --sidebar: #1E1E1E;
  --sidebar-foreground: #F5F5F3;
  --sidebar-primary: #F5F5F3;
  --sidebar-primary-foreground: #1E1E1E;
  --sidebar-accent: rgb(245 245 243 / 0.1);
  --sidebar-accent-foreground: #F5F5F3;
  --sidebar-border: #F5F5F3;
  --sidebar-ring: #F5F5F3;
  --tro-charcoal: #1E1E1E;
  --tro-off-white: #F5F5F3;
  --tro-yellow: #FFC832;
  --tro-red: #FA5A19;
  --tro-lavender: #DCC3FA;
  --tro-light-blue: #A0DCFF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-weight: 300;
  line-height: 1.6;
}
:root {
  color-scheme: light;
}
.dark {
  color-scheme: dark;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 200;
  line-height: 1.3;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}
h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2;
}
b, strong {
  font-weight: 500;
}
h1 strong, h2 strong, h3 strong, h1 b, h2 b, h3 b {
  font-weight: 300;
}

/* ---------------------------------------------------------------------------
 * Components (plain CSS, no build step). Mirrors the React registry items.
 * ------------------------------------------------------------------------- */

.tro-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.tro-image {
  filter: grayscale(1);
}

/* Button: <button class="tro-btn">, <a class="tro-btn tro-btn--solid"> */
.tro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1.25rem;
  border: 1px solid var(--foreground);
  border-radius: 9999px;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 300;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.tro-btn:hover {
  background: color-mix(in srgb, var(--foreground) 10%, transparent);
}
.tro-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
}
.tro-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.tro-btn--solid,
.tro-btn[aria-pressed="true"],
.tro-btn[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.tro-btn--solid:hover {
  background: color-mix(in srgb, var(--primary) 85%, transparent);
}
.tro-btn--ghost {
  border-color: transparent;
}
.tro-btn--sm {
  height: 2rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
}
.tro-btn--lg {
  height: 2.75rem;
  padding: 0 1.75rem;
  font-size: 1rem;
}

/* Badge / tag: <span class="tro-badge">Sound Branding</span> */
.tro-badge {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.625rem;
  border: 1px solid var(--foreground);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}
.tro-badge--active {
  background: color-mix(in srgb, var(--foreground) 10%, transparent);
}
.tro-badge--solid {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Inputs */
.tro-input,
.tro-textarea {
  width: 100%;
  border: 1px solid var(--input);
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 300;
  transition: background-color 150ms ease;
}
.tro-input {
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
}
.tro-textarea {
  min-height: 6rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) * 1.4);
  resize: vertical;
}
.tro-input::placeholder,
.tro-textarea::placeholder {
  color: var(--muted-foreground);
}
.tro-input:hover,
.tro-textarea:hover {
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
}
.tro-input:focus-visible,
.tro-textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 15%, transparent);
}

/* Card: 1px outline, 32px radius, 40px padding. A leading <img> becomes a
 * rounded grayscale image panel. */
.tro-card {
  display: flex;
  flex-direction: column;
  gap: var(--tro-space-sm);
  overflow: hidden;
  padding: var(--tro-space-md);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--card);
  color: var(--card-foreground);
  transition: background-color 150ms ease;
}
.tro-card > img:first-child {
  width: calc(100% + 2 * var(--tro-space-md) + 2px);
  max-width: none;
  margin: calc(-1 * var(--tro-space-md) - 1px)
    calc(-1 * var(--tro-space-md) - 1px) 0;
  border-radius: 2rem;
  filter: grayscale(1);
}
.tro-card--interactive {
  cursor: pointer;
}
.tro-card--interactive:hover {
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
}
.tro-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1.25;
}
.tro-card__description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Logo (always with its frame):
 * <div class="tro-logo" role="img" aria-label="TRO">
 *   <span class="tro-logo__track"><span class="tro-logo__circle"></span></span>
 *   <span class="tro-logo__wordmark"><svg viewBox="0 0 76 24">…wordmark path…</svg></span>
 * </div>
 * Modifiers: .tro-logo--extended fills the container; .tro-logo--vertical
 * turns it 90° clockwise (give it a height). Scale with font-size (16px =
 * 56px high). Set --tro-logo-progress (0-1) to move the circle. Claim
 * lockup:
 * <div class="tro-logo-lockup"><div class="tro-logo tro-logo--extended">…</div>
 *   <span class="tro-logo-lockup__claim">World building sound</span></div> */
.tro-logo {
  --tro-logo-stroke: max(1px, 0.06em);
  --tro-logo-offset: calc((100% - 2.5em) * var(--tro-logo-progress, 0));
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.75em;
  width: 10.5em;
  min-width: 10.5em;
  height: 3.5em;
  padding: 0 1em 0 calc(0.5em - var(--tro-logo-stroke));
  border: var(--tro-logo-stroke) solid currentColor;
  border-radius: 9999px;
  box-sizing: border-box;
}
.tro-logo--extended {
  display: flex;
  width: 100%;
}
.tro-logo__track {
  position: relative;
  flex: 1;
  height: 2.5em;
}
.tro-logo__circle {
  position: absolute;
  top: 0;
  left: var(--tro-logo-offset);
  width: 2.5em;
  height: 2.5em;
  border-radius: 9999px;
  background: currentColor;
  transition:
    left 500ms ease-out,
    top 500ms ease-out;
}
.tro-logo__wordmark {
  position: relative;
  flex-shrink: 0;
  width: 4.75em;
  height: 1.5em;
}
.tro-logo__wordmark svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.75em;
  height: 1.5em;
  fill: currentColor;
  transform: translate(-50%, -50%);
}
.tro-logo--vertical {
  flex-direction: column;
  width: 3.5em;
  min-width: 0;
  height: 10.5em;
  min-height: 10.5em;
  padding: calc(0.5em - var(--tro-logo-stroke)) 0 1em;
}
.tro-logo--vertical.tro-logo--extended {
  width: 3.5em;
  height: 100%;
}
.tro-logo--vertical .tro-logo__track {
  width: 2.5em;
  height: auto;
}
.tro-logo--vertical .tro-logo__circle {
  top: var(--tro-logo-offset);
  left: 0;
}
.tro-logo--vertical .tro-logo__wordmark {
  width: 1.5em;
  height: 4.75em;
}
.tro-logo--vertical .tro-logo__wordmark svg {
  transform: translate(-50%, -50%) rotate(90deg);
}
.tro-logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
  width: max-content;
}
.tro-logo-lockup__claim {
  padding: 0 0.3em;
  font-size: 1.55em;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Sphere: <div class="tro-sphere" aria-hidden="true"></div>
 * Size it with a width and position it yourself (e.g. absolute, cropped by
 * an overflow-hidden section). Presets: --aura (default), --sunrise,
 * --ember, --ocean, --dusk, --blush, --lavender, --mono (+ --crisp).
 * Custom colours: set --tro-sphere-fill to radial-gradient blobs over a base
 * colour, e.g. a client colour with TRO Yellow #FFC832.
 * Keep the presets in sync with SPHERE_PRESETS in sphere.tsx. */
.tro-sphere {
  --tro-sphere-blur: 4cqi;
  --tro-sphere-fill:
    radial-gradient(circle at 42% 46%, #f2c33d 0%, transparent 42%),
    radial-gradient(circle at 55% 62%, #d5df7e 0%, transparent 22%),
    radial-gradient(circle at 70% 80%, #9fd3f7 0%, transparent 38%),
    radial-gradient(circle at 28% 92%, #ffffff 0%, transparent 30%),
    radial-gradient(circle at 10% 42%, #f4c8a6 0%, transparent 32%), #cdb9f6;
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
  pointer-events: none;
}
.tro-sphere::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--tro-sphere-fill);
  filter: blur(var(--tro-sphere-blur));
}
.tro-sphere--sunrise {
  --tro-sphere-fill:
    radial-gradient(circle at 28% 72%, #fff6c8 0%, transparent 42%),
    radial-gradient(circle at 92% 62%, #e8461e 0%, transparent 40%),
    radial-gradient(circle at 38% 28%, #ffd45a 0%, transparent 40%), #f59a3c;
}
.tro-sphere--ember {
  --tro-sphere-fill:
    radial-gradient(circle at 8% 42%, #f02fa0 0%, transparent 38%),
    radial-gradient(circle at 45% 70%, #ffc832 0%, transparent 45%),
    radial-gradient(circle at 72% 82%, #fff0b0 0%, transparent 30%), #f04a1e;
}
.tro-sphere--ocean {
  --tro-sphere-fill:
    radial-gradient(circle at 25% 70%, #fff35c 0%, transparent 40%),
    radial-gradient(circle at 80% 62%, #a0dcff 0%, transparent 42%),
    radial-gradient(circle at 72% 26%, #ffffff 0%, transparent 30%), #2d5bff;
}
.tro-sphere--dusk {
  --tro-sphere-fill:
    radial-gradient(circle at 95% 50%, #4b16c9 0%, transparent 50%),
    radial-gradient(circle at 70% 95%, #b66be8 0%, transparent 32%),
    radial-gradient(circle at 52% 45%, #ffffff 0%, transparent 28%),
    radial-gradient(circle at 72% 18%, #a0dcff 0%, transparent 30%), #ffc832;
}
.tro-sphere--blush {
  --tro-sphere-fill:
    radial-gradient(circle at 50% 52%, #ffc832 0%, transparent 40%),
    radial-gradient(circle at 20% 20%, #f7d9ee 0%, transparent 35%),
    radial-gradient(circle at 88% 30%, #fa5a19 0%, transparent 26%), #e9a7d9;
}
.tro-sphere--lavender {
  --tro-sphere-fill:
    radial-gradient(circle at 45% 40%, #ffc832 0%, transparent 38%),
    radial-gradient(circle at 30% 82%, #ffffff 0%, transparent 30%),
    radial-gradient(circle at 76% 76%, #a0dcff 0%, transparent 35%), #dcc3fa;
}
.tro-sphere--mono {
  --tro-sphere-fill: currentColor;
  --tro-sphere-blur: 3cqi;
}
.tro-sphere--crisp {
  --tro-sphere-blur: 0px;
}
