/* ==========================================================================
   stanhotdog.com
   Dark theme, gold accents. Vanilla CSS, no framework, no build step.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  --bg: #0a0e27;         /* page background, dark navy */
  --panel: #1a1f3a;      /* borders, raised panels */
  --text: #e8e8e8;       /* body text, off-white */
  --gold: #ffd700;       /* accent */

  --max-width: 1200px;
  --gutter: 1rem;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
          "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  --radius: 0.5rem;
  --transition: 150ms ease;
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Keyboard focus ring. Visible on gold so it reads on the dark background. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Layout helpers ----------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Short gold rule used above headings. */
.accent-bar {
  width: 4rem;
  height: 0.25rem;
  background-color: var(--gold);
  margin-bottom: 1.5rem;
  border: 0;
}

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

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(26, 31, 58, 0.7);
  background-color: rgba(10, 14, 39, 0.9);
}

/* Only trade opacity for blur where the browser can actually blur. */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header {
    background-color: rgba(10, 14, 39, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand__text {
  line-height: 1.2;
}

.brand__name {
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 0.75rem;
  color: rgba(232, 232, 232, 0.7);
}

/* --- Navigation --------------------------------------------------------- */

/* Mobile first: the nav is a stacked panel, hidden until the toggle opens it. */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--panel);
  padding: 0.5rem var(--gutter) 1rem;
}

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

.site-nav a {
  padding-block: 0.625rem;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--gold);
}

/* Current page. Gold and slightly heavier so it reads without an underline. */
.site-nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding-inline: 1rem;
  border: 1px solid var(--gold);
  border-radius: 0.375rem;
  background-color: transparent;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.nav-toggle:hover {
  background-color: var(--gold);
  color: var(--bg);
}

/* --- Main --------------------------------------------------------------- */

.site-main {
  flex: 1 1 auto;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
}

/* Dot texture, drawn in CSS so there's no image request. Sits behind content. */
.hero__texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(232, 232, 232, 0.9) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: 3rem;
}

.hero__title {
  font-size: clamp(2rem, 7vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__copy {
  color: rgba(232, 232, 232, 0.8);
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  transition: background-color var(--transition), color var(--transition),
              filter var(--transition);
}

.btn--solid {
  background-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.btn--solid:hover {
  filter: brightness(1.1);
}

.btn--outline {
  background-color: transparent;
  color: var(--gold);
}

.btn--outline:hover {
  background-color: var(--panel);
}

/* --- Video embed -------------------------------------------------------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--panel),
              0 20px 25px -5px rgba(0, 0, 0, 0.4),
              0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fallback for browsers without aspect-ratio (padding-top hack). */
@supports not (aspect-ratio: 16 / 9) {
  .video-frame {
    height: 0;
    padding-top: 56.25%;
  }

  .video-frame iframe {
    position: absolute;
    inset: 0;
  }
}

/* --- Skyline band ------------------------------------------------------- */

.skyline-band {
  padding-block: 2.5rem;
  border-top: 1px solid var(--panel);
  border-bottom: 1px solid var(--panel);
  background-color: var(--bg);
}

.skyline-band__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.skyline-band__art {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--gold); /* inline SVG inherits this via currentColor */
}

.skyline-band__text {
  font-size: 0.875rem;
  color: rgba(232, 232, 232, 0.7);
}

/* --- Coming soon stub pages --------------------------------------------- */

.stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 5rem;
  min-height: 50vh;
}

.stub .accent-bar {
  margin-inline: auto;
}

.stub__title {
  font-size: clamp(1.875rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.stub__status {
  font-size: 1.125rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.stub__copy {
  color: rgba(232, 232, 232, 0.7);
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--panel);
  background-color: var(--bg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: 2rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.site-footer__name {
  font-weight: 600;
}

.site-footer__legal {
  font-size: 0.75rem;
  color: rgba(232, 232, 232, 0.6);
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.site-footer__social a {
  transition: color var(--transition);
}

.site-footer__social a:hover {
  color: var(--gold);
}

/* --- Breakpoints -------------------------------------------------------- */

/* Tablet and up. Nav goes inline, hero splits into two columns. */
@media (min-width: 768px) {
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    position: static;
    background-color: transparent;
    border-bottom: 0;
    padding: 0;
  }

  .site-nav a {
    padding-block: 0;
  }

  .nav-toggle {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 4rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__social {
    justify-content: flex-end;
  }
}

/* Desktop. A little more breathing room in the gutters. */
@media (min-width: 1024px) {
  :root {
    --gutter: 1.5rem;
  }
}

/* --- Motion preference -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
