@font-face {
  font-family: "Baguet Script";
  src: url("../fonts/Melvastype - Baguet Script Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Baguet Script";
  src: url("../fonts/Melvastype - Baguet Script Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Book Antiqua";
  src: url("../fonts/bookantiqua.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Book Antiqua";
  src: url("../fonts/bookantiqua_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf8ff;
  --text: #2a2440;
  --muted: #7a6f9a;
  --accent: #d4af37;
  --accent-2: #a855f7;
  --card: rgba(255, 255, 255, 0.75);
  --border: rgba(168, 85, 247, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Aptos", "Calibri", "Segoe UI", Arial, sans-serif;
  color: #000;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.teaser-wrap {
  width: min(1200px, 90vw);
  margin: 16px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.teaser-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.teaser-img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 460px);
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

/* Playful floating blobs */
.blob {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  animation: drift 12s ease-in-out infinite;
}

.blob-a {
  width: 420px;
  height: 420px;
  background: #e0c3fc;
  left: -120px;
  top: 80px;
}

.blob-b {
  width: 360px;
  height: 360px;
  background: #ffe29f;
  right: -100px;
  top: 200px;
  animation-delay: 3s;
}

.blob-c {
  width: 300px;
  height: 300px;
  background: #c4b5fd;
  left: 40%;
  bottom: -60px;
  animation-delay: 6s;
}

@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-24px) scale(1.04); }
}

/* Brand / Script */
.brand-script {
  font-family: "Baguet Script", cursive;
  font-weight: 400;
}

/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5vw 80px;
}

/* Hero – centered title stack */
.hero {
  text-align: center;
  padding: 64px 0 28px;
  animation: lift-in 0.7s ease;
}

@keyframes lift-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.title-ink3d {
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, #a855f7 0%, #d4af37 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paper-name {
  margin: 16px auto 0;
  max-width: 1200px;
  font-family: "Aptos", "Calibri", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.16rem, 2.05vw, 1.65rem);
  font-weight: 700;
  color: #000;
  line-height: 1.45;
  white-space: nowrap;
}

/* Section blocks */
.section-center {
  text-align: center;
  margin-top: 48px;
}

.section-label {
  margin: 0 0 10px;
  font-family: "Book Antiqua", "Palatino Linotype", serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
}

.section-body {
  margin: 0 auto;
  max-width: 820px;
  font-family: "Aptos", "Calibri", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.34rem, 2.25vw, 1.6rem);
  font-weight: 400;
  color: #000;
  line-height: 1.55;
}

.tldr-section {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.tldr-lead {
  margin: 0 auto 18px;
  max-width: 1080px;
  font-family: "Aptos", "Calibri", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.34rem, 2.25vw, 1.6rem);
  font-weight: 400;
  color: #000;
  line-height: 1.55;
  text-align: left;
}

.tldr-list {
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  list-style: none;
  display: flex;
  gap: 10px;
  text-align: left;
  counter-reset: tldr;
}

.tldr-list li {
  counter-increment: tldr;
  position: relative;
  display: block;
  flex: 1 1 0;
  padding: 12px 16px 12px 62px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: #000;
  font-family: "Aptos", "Calibri", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.35;
}

.tldr-list li::before {
  content: counter(tldr);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a855f7 0%, #d4af37 100%);
  color: #fff;
  font-weight: 700;
}

.text-gold {
  color: var(--accent);
  font-weight: 700;
  display: inline;
  line-height: inherit;
  white-space: nowrap;
}

/* Result grid */
.result-grid {
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
}

.result-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.result-card:hover {
  transform: translateY(-3px);
}

.result-card .result-img {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 48px;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.result-card .result-video {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 50;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox video,
.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 14px;
  display: none;
}

.lightbox video.active,
.lightbox img.active {
  display: block;
}

@media (max-width: 680px) {
  .tldr-list {
    display: grid;
  }

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

/* Gallery tags */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.tag {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag.active {
  background: linear-gradient(120deg, #a855f7, #c084fc);
  color: #fff;
  border-color: transparent;
}

/* Card grid */
.card-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.12);
}

.swatch {
  aspect-ratio: 1 / 0.68;
  width: 100%;
}

.card-meta {
  padding: 10px;
}

.card-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.card-meta p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 255, 0.72);
  backdrop-filter: blur(6px);
  padding: 20px;
  z-index: 40;
}

.modal.open {
  display: flex;
}

.modal-window {
  position: relative;
  width: min(720px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

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

h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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