/* Shared page chrome for every ClipCut page. Component styles live in components.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/21px var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

.logo { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/24px var(--font-sans); letter-spacing: -0.01em; }
.logo::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--violet); }

/* Type scale from the design system */
.t-hero { font: 500 72px/72px var(--font-sans); letter-spacing: -0.035em; text-wrap: balance; }
.t-display { font: 500 48px/52px var(--font-sans); letter-spacing: -0.03em; text-wrap: balance; }
.t-headline { font: 500 28px/34px var(--font-sans); letter-spacing: -0.02em; text-wrap: balance; }
.t-title { font: 600 17px/24px var(--font-sans); letter-spacing: -0.01em; }
.t-body-l { font: 400 17px/27px var(--font-sans); color: var(--text-muted); }
.t-mono { font: 500 12px/16px var(--font-mono); letter-spacing: 0.04em; }
.accent { color: var(--violet-text); }
@media (max-width: 720px) {
  .t-hero { font-size: 44px; line-height: 46px; }
  .t-display { font-size: 34px; line-height: 38px; }
  .t-headline { font-size: 24px; line-height: 30px; }
}

.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius-full); background: transparent; color: var(--text-muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Toast */
.toast-host { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--text); box-shadow: var(--shadow-float); font: 500 13px/19px var(--font-sans); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Poster tones for sample videos. Media is always dark, so literal colors are safe in both themes. */
.kp-tone-violet { background: radial-gradient(80% 60% at 50% 38%, #5a1fb8 0%, #1d0f33 55%, #050506 100%); }
.kp-tone-blush { background: radial-gradient(70% 55% at 45% 45%, #7a4a52 0%, #24161a 58%, #050506 100%); }
.kp-tone-slate { background: radial-gradient(75% 55% at 55% 40%, #48525c 0%, #171b20 58%, #050506 100%); }
.kp-tone-ivory { background: radial-gradient(70% 50% at 50% 42%, #b9b3a6 0%, #3a3833 55%, #050506 100%); }
.kp-tone-moss { background: radial-gradient(70% 55% at 50% 40%, #4e5a3c 0%, #191d14 58%, #050506 100%); }
