:root {
  color-scheme: light;
  --ink: #2d2521;
  --muted: #766a62;
  --paper: #fffaf4;
  --line: rgba(68, 48, 38, 0.16);
  --wine: #7f2034;
  --rose: #c37a76;
  --leaf: #62745b;
  --cream: #f3e4d2;
  --shadow: 0 24px 70px rgba(52, 31, 24, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(195, 122, 118, 0.18), transparent 30rem),
    linear-gradient(135deg, #fff8ef 0%, #f3e4d2 46%, #e7efe4 100%);
}

[dir="rtl"] body {
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  background: linear-gradient(180deg, rgba(32, 20, 18, 0.08), rgba(32, 20, 18, 0.56));
}

.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 56px;
  color: #fffaf4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.34);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 10vw, 146px);
  font-weight: 400;
  line-height: 0.92;
}

.hero p {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: clamp(18px, 2.2vw, 26px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe7d3;
}

.language-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto -18px;
  display: flex;
  justify-content: center;
}

.language-toggle {
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid rgba(127, 32, 52, 0.24);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 10px 28px rgba(52, 31, 24, 0.12);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 54px auto 28px;
}

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

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card-media,
.video-frame,
.soon-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
}

.card-media {
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #ddd0c5;
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-media:hover img {
  transform: scale(1.04);
}

.media-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fffaf4;
  background: rgba(45, 37, 33, 0.78);
  font-size: 13px;
  font-weight: 700;
}

[dir="rtl"] .media-badge {
  right: auto;
  left: 16px;
}

.media-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 7px;
  padding: 72px 22px 22px;
  color: #fffaf4;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(28, 18, 16, 0.78));
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

[dir="rtl"] .media-title {
  text-align: right;
}

.media-title .eyebrow {
  margin: 0;
  color: #ffe7d3;
}

.media-title strong {
  max-width: 92%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}

.video-frame {
  background: #1f1c1a;
}

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

.video-frame .media-title {
  top: 0;
  bottom: auto;
  padding: 18px 22px 72px;
  background: linear-gradient(180deg, rgba(28, 18, 16, 0.76), transparent);
}

.soon-panel {
  display: grid;
  place-items: center;
  color: #fffaf4;
  background:
    linear-gradient(145deg, rgba(127, 32, 52, 0.9), rgba(98, 116, 91, 0.9)),
    url("assets/session-cover.png") center / cover;
}

.soon-panel > span:first-child {
  position: relative;
  z-index: 1;
  padding: 12px 18px;
  border: 1px solid rgba(255, 250, 244, 0.5);
  border-radius: 999px;
  background: rgba(45, 37, 33, 0.38);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soon-panel .media-title {
  place-self: end stretch;
  z-index: 2;
  text-transform: none;
}

.card-body {
  padding: 24px;
}

.gift h2,
.nook-banner h2,
.album h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
}

.card-body p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.62;
}

.button-row,
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

[dir="rtl"] .button-row,
[dir="rtl"] .download-row {
  justify-content: flex-start;
}

.download-row {
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: #fffaf4;
  background: var(--wine);
}

.button--soft {
  color: var(--wine);
  border-color: rgba(127, 32, 52, 0.2);
  background: rgba(127, 32, 52, 0.08);
}

.button--light {
  color: var(--ink);
  background: #fffaf4;
}

.gift,
.nook-banner {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.gift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(127, 32, 52, 0.22);
  background: rgba(255, 250, 244, 0.86);
}

.gift h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.gift p {
  color: var(--muted);
}

.gift strong {
  padding: 18px 24px;
  border-radius: 16px;
  color: #fffaf4;
  background: var(--wine);
  font-size: clamp(24px, 4vw, 44px);
}

.nook-banner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(25, 26, 23, 0.94), rgba(127, 32, 52, 0.82)),
    linear-gradient(135deg, #62745b, #7f2034);
}

.nook-banner__content {
  width: min(860px, 100%);
  padding: 38px 38px 22px;
}

.nook-banner .eyebrow {
  color: #e7efe4;
}

.nook-banner h2 {
  font-size: clamp(30px, 4.4vw, 56px);
}

.nook-banner p {
  line-height: 1.62;
}

.nook-slider {
  display: block;
  margin: 0 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 244, 0.2);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.08);
  text-decoration: none;
}

.nook-track {
  display: grid;
  grid-auto-columns: minmax(210px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nook-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.album {
  width: min(1160px, calc(100% - 24px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.language-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.language-dialog::backdrop {
  background: rgba(28, 18, 16, 0.46);
  backdrop-filter: blur(4px);
}

.language-dialog__inner {
  padding: 30px;
}

.language-dialog h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.language-dialog p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.language-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

[dir="rtl"] .gift,
[dir="rtl"] .nook-banner,
[dir="rtl"] .album,
[dir="rtl"] .lightbox figcaption {
  direction: rtl;
}

.album::backdrop {
  background: rgba(28, 18, 16, 0.55);
  backdrop-filter: blur(4px);
}

.album__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.94);
}

.album__bar h2 {
  font-size: 28px;
}

.album__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 18px;
}

.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #ded3c9;
}

.thumb button {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumb__actions {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 250, 244, 0.92);
}

.thumb__actions a {
  flex: 1;
  padding: 7px 8px;
  border-radius: 999px;
  color: var(--wine);
  background: rgba(127, 32, 52, 0.09);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fffaf4;
  background: rgba(45, 37, 33, 0.84);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.album .icon-button {
  color: var(--ink);
  background: rgba(45, 37, 33, 0.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 70px 74px 30px;
  background: rgba(22, 16, 14, 0.92);
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  border: 0;
  color: inherit;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background: rgba(22, 16, 14, 0.44);
}

.lightbox figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #fffaf4;
}

.lightbox__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lightbox__downloads a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.12);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card-media,
  .video-frame,
  .soon-panel {
    aspect-ratio: 4 / 5;
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    display: block;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background: #1f1c1a;
  }

  .hero__image {
    position: relative;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .hero__shade {
    background: linear-gradient(180deg, transparent 45%, rgba(32, 20, 18, 0.74));
  }

  .hero__content {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    padding: 90px 20px 26px;
    background: linear-gradient(180deg, transparent, rgba(32, 20, 18, 0.28));
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .section-wrap,
  .gift,
  .nook-banner {
    width: min(100% - 20px, 1180px);
  }

  .language-strip {
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
  }

  .card-body,
  .gift,
  .nook-banner__content {
    padding: 22px;
  }

  .card-media img {
    object-fit: contain;
    background: #1f1c1a;
  }

  .media-title {
    padding: 88px 18px 18px;
  }

  .media-title strong {
    font-size: clamp(27px, 8vw, 38px);
  }

  .media-badge {
    top: 12px;
    right: 12px;
  }

  [dir="rtl"] .media-badge {
    right: auto;
    left: 12px;
  }

  .gift h2 {
    font-size: 34px;
  }

  .gift strong {
    width: 100%;
    text-align: center;
  }

  .nook-slider {
    margin: 0 12px 12px;
  }

  .nook-track {
    grid-auto-columns: 78%;
  }

  .album__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox {
    padding: 70px 14px 24px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 82px;
    transform: none;
  }
}
