:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --dim: rgba(255, 255, 255, 0.5);
  --rule: rgba(255, 255, 255, 0.12);
  --pill-bg: rgba(255, 255, 255, 0.08);
  --btn-bg: #b8b3ab;
  --btn-fg: #000;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1280px;
  --side: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
a:hover { opacity: 0.8; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--side);
  gap: 32px;
}

.site-header .logo {
  display: inline-block;
  width: 116px;
  height: 116px;
  flex-shrink: 0;
}

.site-header .logo img { width: 100%; height: 100%; }

.site-nav {
  display: flex;
  gap: 32px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--fg);
  opacity: 1;
}

main { padding: 0 var(--side); }

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--rule); }

/* Product hero */
.product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
  padding: 48px 0 96px;
}

.product__media {
  position: relative;
  max-width: 460px;
  justify-self: end;
}

.product__media img {
  width: 100%;
  border-radius: 2px;
}

.product__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 5px 10px;
  text-transform: uppercase;
}

.product__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px;
}

.product__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.product__lede {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 32px;
  max-width: 52ch;
}

.product__list-title {
  font-weight: 700;
  margin: 24px 0 8px;
}

.product ul {
  margin: 0 0 8px;
  padding-left: 22px;
  color: var(--muted);
}

.product li { margin: 4px 0; }

.product__price {
  margin: 28px 0 16px;
  font-size: 17px;
}

.product__price-old {
  color: var(--dim);
  text-decoration: line-through;
  margin-left: 8px;
}

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--serif);
  font-size: 16px;
  padding: 14px 36px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.1s, filter 0.15s;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

/* Mission + newsletter split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.28;
}

.mission p { margin: 0 0 0.6em; }
.mission p:last-child { margin-bottom: 0; }

.newsletter { text-align: center; }

.newsletter h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 12px;
}

.newsletter p {
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 42ch;
  font-size: 14px;
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter input[type="email"] {
  flex: 1;
  background: var(--fg);
  color: #222;
  border: 0;
  padding: 14px 16px;
  font: 14px var(--sans);
}

.newsletter button,
.newsletter input[type="submit"] {
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--serif);
  padding: 0 22px;
  cursor: pointer;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.newsletter .fineprint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--dim);
}

.newsletter .fineprint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.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;
}

/* Podcast badges */
.podcast-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.podcast-badges a {
  display: inline-block;
  transition: transform 0.12s;
}
.podcast-badges a:hover { transform: translateY(-2px); }

.podcast-badges img {
  height: 64px;
  width: auto;
}

/* Page headers (contact, etc.) */
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 32px;
}

/* Thanks (post-subscribe / post-confirm) */
.thanks {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 0 120px;
  text-align: center;
}

.thanks__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 28px;
}

.thanks__lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--fg);
  margin: 0 auto 18px;
  max-width: 38ch;
}

.thanks__fineprint {
  color: var(--muted);
  font-size: 14px;
  margin: 12px auto 32px;
  max-width: 42ch;
}

.thanks__fineprint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thanks__badges { margin: 0 auto 48px; }

.thanks__cta { margin-top: 8px; }

/* Contact */
.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 0 120px;
  text-align: center;
}

.contact__lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--fg);
  margin: 0 auto 18px;
  max-width: 36ch;
}

.contact__lede--small {
  font-size: 15px;
  font-family: var(--sans);
  color: var(--muted);
}

.contact__email {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

/* YouTube videos page */
.videos {
  padding: 56px 0 96px;
  max-width: 1280px;
}

.videos__head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 720px;
}

.videos__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  margin: 0 0 16px;
}

.videos__lede {
  color: var(--muted);
  font-size: 16px;
  margin: 0 auto 28px;
  max-width: 56ch;
}

.videos__lede em { font-family: var(--serif); font-style: italic; color: var(--fg); }

.videos__lede a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.videos__controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

#video-search {
  flex: 1 1 320px;
  max-width: 480px;
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border: 1px solid var(--rule);
  padding: 12px 16px;
  font: 15px var(--sans);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
#video-search:focus { border-color: rgba(255,255,255,0.4); }
#video-search::placeholder { color: var(--dim); }

#video-sort {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  font: 15px var(--sans);
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.videos__meta {
  color: var(--dim);
  font-size: 13px;
  margin: 0;
}

.videos__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
}

.video-card {
  margin: 0;
  padding: 0;
}

.video-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.2s;
}

.video-card__cover:hover .video-card__thumb {
  transform: scale(1.04);
  filter: brightness(0.78);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 48px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  transition: transform 0.2s, color 0.2s;
  pointer-events: none;
}

.video-card__cover:hover .video-card__play {
  transform: scale(1.12);
  color: #fff;
}

.video-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.78);
  color: var(--fg);
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.video-card__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  margin: 12px 0 0;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px;
  background: #000;
}

.videos__empty {
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  padding: 48px 0;
}

@media (max-width: 600px) {
  .videos__grid { gap: 28px 16px; }
  .videos__controls { flex-direction: column; align-items: stretch; }
  #video-sort { width: 100%; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 56px var(--side) 64px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 880px) {
  .site-header { flex-direction: column; gap: 16px; align-items: center; }
  .site-nav { font-size: 18px; gap: 24px; }
  .product { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 64px; }
  .product__media { justify-self: center; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 56px 0; }
  .podcast-badges img { height: 52px; }
}

@media (max-width: 480px) {
  .site-header .logo { width: 92px; height: 92px; }
  .newsletter form { flex-direction: column; }
  .newsletter input[type="email"] { text-align: center; }
  .newsletter button { padding: 14px 22px; }
}
