/* That TBI Guy — thattbiguy.com
   Mobile-first layout matching the approved Sample 3 homepage. */

@font-face {
  font-family: "InterVar";
  src: url("../assets/fonts/InterVariable.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0d12;
  --btn-bg: #17181d;
  --btn-bg-hover: #1e2026;
  --teal: #63c3b9;
  --teal-bright: #7ee0d6;
  --text: #ffffff;
  --text-soft: #e8e8ea;
  --text-body: #dedee2;
  --focus: #7ee0d6;
  --max: 26.5rem;
  --page-pad: 1.25rem;
  --font: "InterVar", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-bright);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--btn-bg);
  color: var(--text);
  border: 2px solid var(--teal);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.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 / Sample 3 stack ---- */

.page-header,
main,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.page-header {
  padding-top: 0.85rem;
  padding-bottom: 0.35rem;
  text-align: center;
}

.hero-stage {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.waves {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100vw, 40rem);
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.featured,
.clip-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #111;
}

.featured {
  width: min(13.6rem, 52vw);
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
}

.featured video,
.clip-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.62rem 0 0.62rem 1.05rem;
  border-color: transparent transparent transparent #1a1c1f;
  margin-left: 0.18rem;
}

.play-overlay:hover .play-icon,
.play-overlay:focus-visible .play-icon {
  transform: scale(1.05);
}

.play-overlay:focus-visible {
  outline: none;
}

.play-overlay:focus-visible .play-icon {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(2.15rem, 8.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-soft);
}

/* ---- Social buttons (Sample 3) ---- */

.social {
  margin-top: 1.1rem;
}

.social ul,
.more-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social ul {
  display: grid;
  gap: 0.58rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1;
}

.social-btn:hover,
.social-btn:focus-visible {
  background: var(--btn-bg-hover);
  border-color: var(--teal-bright);
  color: var(--text);
}

/* ---- About + more videos ---- */

main {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
}

.about h2,
.more h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.about h2::before,
.more h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0 auto 0.7rem;
  background: var(--teal);
  border-radius: 1px;
}

.about,
.more {
  text-align: center;
}

.about p,
.clip-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.more {
  margin-top: 2.5rem;
}

.more-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.clip-card {
  text-align: left;
}

.clip-media {
  width: min(100%, 16rem);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.clip-media .play-icon {
  width: 3.1rem;
  height: 3.1rem;
}

.clip-card h3 {
  margin: 0.85rem 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}

.clip-card p {
  font-size: 0.98rem;
  text-align: center;
}

.site-footer {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #9a9aa2;
  font-size: 0.9rem;
}

/* ---- Desktop ---- */

@media (min-width: 700px) {
  :root {
    --page-pad: 1.5rem;
  }

  .page-header {
    padding-top: 2rem;
  }

  .featured {
    width: 15rem;
  }

  .more-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
    width: min(100%, 36rem);
    margin-inline: auto;
  }

  main,
  .more-grid {
    /* let the two-up grid breathe a little wider than the button column */
  }

  main {
    width: min(100%, 40rem);
  }

  .clip-media {
    width: 100%;
  }
}

@media (min-width: 1100px) {
  .waves {
    width: min(100vw, 48rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-overlay:hover .play-icon,
  .play-overlay:focus-visible .play-icon {
    transform: none;
  }
}
