:root {
  --bg: #f7efe3;
  --bg-soft: #fffaf1;
  --ink: #251c16;
  --muted: #6f6258;
  --line: rgba(83, 57, 37, 0.16);
  --copper: #b87043;
  --copper-dark: #754222;
  --sage: #dce5d6;
  --charcoal: #172326;
  --shadow: 0 20px 50px rgba(57, 36, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 246, 231, 0.9), rgba(226, 235, 220, 0.82)),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 93, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 93, 68, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(57, 36, 21, 0.18);
}

.youtube-link,
.nav-links a,
.social-links a,
.link-list a,
.prompt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(117, 66, 34, 0.18);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fffaf1;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.youtube-link {
  padding: 0 18px;
}

.nav-links,
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a,
.social-links a,
.link-list a {
  padding: 0 16px;
}

.youtube-link:hover,
.nav-links a:hover,
.social-links a:hover,
.link-list a:hover,
.prompt-button:hover {
  transform: translateY(-2px);
  background: #26383d;
  box-shadow: 0 14px 28px rgba(23, 35, 38, 0.18);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 34px;
  min-height: 520px;
  padding: 64px 0 82px;
}

.hero::after {
  content: "";
  position: absolute;
  right: min(8vw, 90px);
  bottom: 48px;
  width: min(360px, 38vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-mark img {
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}

.library-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.video-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding-bottom: 54px;
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(83, 57, 37, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 16px 34px rgba(57, 36, 21, 0.1);
  backdrop-filter: blur(12px);
}

.video-frame {
  position: relative;
  background: #111;
  aspect-ratio: 9 / 16;
}

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

.video-thumbnail {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fffaf1;
  text-decoration: none;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.05);
  transform: scale(1.18);
}

.video-thumbnail span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 8px;
  background: rgba(23, 35, 38, 0.84);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.video-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.prompt-button {
  width: 100%;
  padding: 0 16px;
}

.prompt-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.secondary-button {
  background: transparent;
  color: var(--charcoal);
}

.secondary-button:hover {
  color: #fffaf1;
}

.empty-state {
  margin: 0 0 56px;
  padding: 38px;
  border: 1px dashed rgba(117, 66, 34, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.68);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 10px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.info-section,
.content-page {
  margin: 0 auto 56px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.info-section {
  max-width: 820px;
}

.info-section h2,
.content-page h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.info-section p,
.content-page p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-page {
  max-width: 860px;
  min-height: 56vh;
}

.compact-header {
  margin-bottom: 10px;
}

.lead-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.prompt-detail-page h1 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.prompt-detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin: 28px 0 42px;
}

.prompt-video-panel {
  overflow: hidden;
  border: 1px solid rgba(83, 57, 37, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 16px 34px rgba(57, 36, 21, 0.1);
}

.prompt-detail-copy h2 {
  margin: 24px 0 8px;
  font-size: 1.35rem;
}

.prompt-detail-copy h2:first-child {
  margin-top: 0;
}

.detail-actions {
  margin-top: 28px;
  max-width: 360px;
}

.related-section {
  margin-top: 18px;
}

.related-links,
.prompt-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a,
.prompt-page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--copper-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.prompt-page-nav {
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.content-page a {
  color: var(--copper-dark);
  font-weight: 800;
}

.legal-page h2 {
  margin: 32px 0 10px;
  font-size: 1.35rem;
}

.link-list {
  display: grid;
  gap: 12px;
  max-width: 340px;
}

.section-link {
  margin: 24px 0 0;
}

.section-link a {
  color: var(--copper-dark);
  font-weight: 900;
}

.content-list {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}

.content-list article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.content-list h2,
.content-list h3 {
  margin: 0 0 10px;
}

.content-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-grid p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

code {
  border-radius: 6px;
  background: rgba(117, 66, 34, 0.1);
  padding: 2px 6px;
  color: var(--copper-dark);
}

.site-footer {
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--copper-dark);
}

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0 58px;
  }

  .hero::after {
    display: none;
  }

  .hero-mark {
    order: -1;
    justify-items: start;
  }

  .hero-mark img {
    width: min(230px, 58vw);
  }

  .library-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .prompt-detail-layout {
    grid-template-columns: 1fr;
  }

  .prompt-video-panel {
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-top: 16px;
  }

  .brand span {
    font-size: 0.98rem;
  }

  .youtube-link {
    padding: 0 13px;
  }

  .nav-links {
    width: 100%;
  }

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