/* =========================================================================
   Project 19 — design system
   Ported from the original Vite/React app (src/index.css).
   Tailwind utility classes are provided by the Play CDN (see index.html);
   this file holds the custom @font-face, layout helpers, and animations.
   ========================================================================= */

@font-face {
  font-family: "Tw Cen MT Condensed";
  src: url("assets/fonts/TwCenMTCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-p19-blue: #1b6ef3;
  --color-p19-blue-dark: #0f4299;
  --color-p19-blue-darker: #071e47;
  --color-p19-blue-light: #1558c7;
  --color-p19-blue-accent: #a8cffb;
  --color-p19-blue-50: #eef2ff;
  --color-p19-navy: #0a1628;
  --color-p19-navy-800: #111d33;
  --color-p19-slate: #1e293b;
  --color-p19-sky: #2dd4bf;
  --color-p19-teal: #14b8a6;
  --color-p19-amber: #f59e0b;
  --color-p19-cream: #f8f9fb;
  --color-p19-muted: #64748b;

  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Tw Cen MT Condensed", "Century Gothic", "Arial Narrow", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--color-p19-navy);
}

body {
  font-family: var(--font-sans);
  color: var(--color-p19-navy);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* Bump display/heading font sizes by 8px to match the original site. */
:is(h1, h2, h3, h4, h5, h6, .font-display).text-xs   { font-size: calc(0.75rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-sm    { font-size: calc(0.875rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-base  { font-size: calc(1rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-lg    { font-size: calc(1.125rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-xl    { font-size: calc(1.25rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-2xl   { font-size: calc(1.5rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-3xl   { font-size: calc(1.875rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-4xl   { font-size: calc(2.25rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-5xl   { font-size: calc(3rem + 8px); }
:is(h1, h2, h3, h4, h5, h6, .font-display).text-6xl   { font-size: calc(3.75rem + 8px); }

@media (min-width: 40rem) {
  :is(h1, h2, h3, h4, h5, h6, .font-display).sm\:text-base { font-size: calc(1rem + 8px); }
  :is(h1, h2, h3, h4, h5, h6, .font-display).sm\:text-3xl  { font-size: calc(1.875rem + 8px); }
  :is(h1, h2, h3, h4, h5, h6, .font-display).sm\:text-4xl  { font-size: calc(2.25rem + 8px); }
  :is(h1, h2, h3, h4, h5, h6, .font-display).sm\:text-5xl  { font-size: calc(3rem + 8px); }
}

@media (min-width: 64rem) {
  :is(h1, h2, h3, h4, h5, h6, .font-display).lg\:text-5xl { font-size: calc(3rem + 8px); }
  :is(h1, h2, h3, h4, h5, h6, .font-display).lg\:text-6xl { font-size: calc(3.75rem + 8px); }
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
}

.safari-safe-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
  height: env(safe-area-inset-top, 0px);
  background: linear-gradient(
    160deg,
    var(--color-p19-navy) 0%,
    var(--color-p19-blue-darker) 55%,
    var(--color-p19-blue-dark) 100%
  );
}

.site-container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(2rem, 6vw, 5rem);
}

.site-container-narrow {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: clamp(2rem, 6vw, 5rem);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

.animate-float          { animation: float 6s ease-in-out infinite; }
.animate-float-delayed  { animation: float 6s ease-in-out 2s infinite; }
.animate-gradient       { background-size: 200% 200%; animation: gradient-shift 12s ease infinite; }
.animate-pulse-glow     { animation: pulse-glow 8s ease-in-out infinite; }

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.parallelogram      { transform: skewX(-12deg); }
.parallelogram > *  { transform: skewX(12deg); }

@keyframes logo-carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-carousel-track {
  animation: logo-carousel-scroll linear infinite;
}

/* Small niceties for the vanilla build */
[hidden] { display: none !important; }
a { color: inherit; }
button { font-family: inherit; }
