/* Reusable styles of "Ostsee-Licht" (fonts, token mapping, base classes) – imported by theme.css and by child themes. */ /* Self-hosted fonts (no request to Google – GDPR). */ @import '@fontsource/cormorant-garamond/500.css'; @import '@fontsource/cormorant-garamond/500-italic.css'; @import '@fontsource/cormorant-garamond/600.css'; @import '@fontsource/figtree/400.css'; @import '@fontsource/figtree/500.css'; @import '@fontsource/figtree/600.css'; /* * Colour tokens come from theme.json and can be changed per site and per appearance; the layout prints them * as CSS variables. Tailwind classes such as bg-accent or text-muted refer to these variables. */ @theme inline { --color-ground: var(--ground); --color-surface: var(--surface); --color-ink: var(--ink); --color-muted: var(--muted); --color-line: var(--line); --color-accent: var(--accent); --color-accent-ink: var(--accent-ink); --color-band: var(--band); --color-band-ink: var(--band-ink); --color-band-muted: var(--band-muted); --color-banner: var(--banner); --color-banner-ink: var(--banner-ink); --font-display: 'Cormorant Garamond', Georgia, serif; --font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif; } /* Brand graphics (public/brand, inlined via partials/brand): navy follows the text colour, so the logo stays visible in dark appearances; teal, light wave and sun keep the brand colours unless a theme overrides them. */ :root { --brand-navy: var(--ink); --brand-teal: #0286a2; --brand-wave: #6dbfc2; --brand-sun: #f2c27a; } @layer base { html { scroll-behavior: smooth; } body { background: var(--ground); color: var(--ink); transition: background-color 0.4s, color 0.4s; } input:not([type='checkbox']):not([type='radio']), select, textarea { border-width: 1px; border-color: var(--line); padding: 0.6rem 0.8rem; background-color: var(--surface); color: var(--ink); } input[type='checkbox'] { width: 1rem; height: 1rem; accent-color: var(--accent); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } } @layer components { .eyebrow { @apply mb-3 text-xs font-semibold tracking-[0.24em] text-accent uppercase; } .heading-display { @apply font-display text-4xl leading-[1.08] font-medium sm:text-[2.875rem]; } .btn-primary { @apply inline-flex min-h-11 items-center justify-center rounded-full bg-ink px-6 py-3 text-[15px] font-semibold text-ground transition hover:opacity-90; } .btn-accent { @apply inline-flex min-h-11 items-center justify-center rounded-full bg-accent px-6 py-3 text-[15px] font-semibold text-accent-ink transition hover:opacity-90; } .prose-theme { @apply text-muted; } .prose-theme p { @apply mb-4; } .prose-theme ul, .prose-theme ol { @apply mb-4 ml-5 list-outside; } .prose-theme ul { @apply list-disc; } .prose-theme ol { @apply list-decimal; } .prose-theme a { @apply text-accent underline; } .prose-theme h2, .prose-theme h3 { @apply mt-6 mb-2 font-display text-2xl text-ink; } } /* Gentle reveal while scrolling – only where supported and only without "reduce motion". */ @media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) { .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; } @keyframes reveal { from { opacity: 0; transform: translateY(24px); } } } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }