/*
 * Temporal Shift Productions, LLC
 * Shared site stylesheet
 *
 * This stylesheet intentionally keeps the first public release simple:
 * one homepage, a responsive hero, and reusable content-section styles.
 *
 * The slate/project pages can adopt these styles later when the
 * market-traction workflow is resumed.
 */

/* ================================================================
   DESIGN TOKENS
   ----------------------------------------------------------------
   Keep frequently adjusted colors, widths, and spacing here.
   The blues are deliberately easy to replace when a formal brand
   palette is established.
   ================================================================ */
:root {
  --color-bg: #06111d;
  --color-bg-deep: #030a12;
  --color-surface: #0b1b2c;
  --color-surface-alt: #0d2237;
  --color-text: #f4f8fb;
  --color-text-muted: #b8c8d6;
  --color-accent: #29a9e8;
  --color-accent-strong: #0b79c9;
  --color-border: rgba(255, 255, 255, 0.14);

  --content-width: 72rem;
  --content-narrow: 52rem;
  --header-height: 4.75rem;

  --radius: 0.5rem;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);

  --transition: 180ms ease;
}

/* ================================================================
   RESET / BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(3, 10, 18, 0.9);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--content-width));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/*
 * Adjust max-width after the real logo file is placed in /images.
 * The height is constrained so the header does not become oversized.
 */
.site-brand__logo {
  width: auto;
  max-width: min(22rem, 58vw);
  max-height: 3.2rem;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a,
.footer-nav a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--color-text);
}

/* ================================================================
   HERO
   ----------------------------------------------------------------
   IMPORTANT:
   hero-background.png is the APPROVED TEXT-FREE landscape artwork.
   Do not replace it with the simulated image containing generated
   logo/type.

   background-position can be tuned after viewing the real page.
   ================================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(34rem, 78vh, 52rem);
  display: grid;
  place-items: center;
  padding: clamp(5rem, 10vw, 9rem) 1rem;

  background-image: url("../images/tsp-hero-background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/*
 * The overlay protects HTML text from bright areas of the artwork.
 * It is deliberately subtle so the approved hero remains visible.
 */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 10, 18, 0.80) 0%,
      rgba(3, 10, 18, 0.52) 50%,
      rgba(3, 10, 18, 0.72) 100%
    );
}

.hero__content {
  width: min(100%, 58rem);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero__company {
  margin: 0 0 1rem;
  color: #d7effc;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__intro {
  max-width: 48rem;
  margin: 1.75rem auto 0;
  color: #e4edf4;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ================================================================
   BUTTONS / LINKS
   ================================================================ */
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-accent);
  color: #03101a;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #5dc3f2;
}

.button--secondary {
  background: rgba(3, 10, 18, 0.35);
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--color-text);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.text-link {
  color: #8fd8fa;
  font-weight: 700;
}

.text-link.is-disabled {
  color: var(--color-text-muted);
  cursor: default;
  text-decoration: none;
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.content-section {
  padding: clamp(4.5rem, 8vw, 7rem) 1rem;
}

.content-section--alternate {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.content-section__inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.content-section__inner--narrow {
  max-width: var(--content-narrow);
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.content-section h3 {
  margin-top: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
}

.content-section p {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.content-section p + p {
  margin-top: 1.25rem;
}

.section-emphasis {
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text) !important;
}

/* ================================================================
   CONNECT / SUBSCRIPTION
   ================================================================ */
.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.connect-copy {
  max-width: 44rem;
}

.subscription-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow);
}

.subscription-card .button {
  margin-top: 0.75rem;
}

.subscription-card__note {
  margin-bottom: 0;
  font-size: 0.86rem !important;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 3rem 1rem;
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0.2rem 0;
  color: var(--color-text-muted);
}

.site-footer__company {
  color: var(--color-text) !important;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.site-footer__copyright {
  font-size: 0.85rem;
}

/* ================================================================
   RESPONSIVE NAVIGATION / MOBILE HERO
   ================================================================ */
@media (max-width: 48rem) {
  .site-header__inner {
    gap: 1rem;
  }

  .site-brand__logo {
    max-width: min(17rem, 68vw);
    max-height: 2.8rem;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(3, 10, 18, 0.98);
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.8rem;
  }

  /*
   * On narrow screens, keeping the central horizon visible is more
   * important than showing every edge of the 16:9 artwork.
   */
  .hero {
    min-height: 40rem;
    background-position: center center;
  }

  .hero__shade {
    background: rgba(3, 10, 18, 0.60);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin-inline: auto;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }
}

/* Respect visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
