:root {
  --midnight: #0b1b2a;
  --deep-space: #132b44;
  --starlight: #f9f7ff;
  --accent: #ff9fb2;
  --accent-2: #8de5ff;
  --text: #1f2a44;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Poppins', 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: linear-gradient(180deg, #fdfbff 0%, #f4f6ff 100%);
  color: var(--text);
  min-height: 100vh;
}

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

a {
  color: inherit;
}

header {
  background: radial-gradient(circle at top, #ffe0ed, #f5f0ff 60%);
  padding: 4rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  inset: 20% -10% -10%;
  background: url('data:image/svg+xml,%3Csvg width="400" height="400" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="200" cy="200" r="180" fill="none" stroke="%23ffeef7" stroke-width="2"/%3E%3Ccircle cx="200" cy="200" r="120" fill="none" stroke="%23ffeef7" stroke-width="2"/%3E%3C/svg%3E')
    center/contain no-repeat;
  opacity: 0.3;
  z-index: 0;
}

header h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  color: var(--midnight);
  margin: 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
  position: relative;
}

header p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 1rem auto 0;
  line-height: 1.6;
  color: #3b4157;
  z-index: 1;
  position: relative;
}

.site-nav {
  margin: 2.5rem auto 0;
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(11, 27, 42, 0.12);
  position: relative;
  z-index: 1;
}

.site-nav__link {
  text-decoration: none;
  font-weight: 600;
  color: var(--deep-space);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--midnight);
  transform: translateY(-2px);
}

.site-nav__link[aria-current='page'] {
  background: var(--deep-space);
  color: white;
  box-shadow: 0 10px 20px rgba(19, 43, 68, 0.3);
}

.site-nav__icon {
  width: 0.85rem;
  height: 0.85rem;
  display: inline-flex;
}

.site-nav__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

main {
  padding: 2rem 1.5rem 4rem;
}

.section {
  background: white;
  border-radius: 28px;
  padding: 2.5rem;
  margin: 0 auto 2rem;
  max-width: 1100px;
  box-shadow: 0 25px 60px rgba(20, 50, 70, 0.08);
  position: relative;
  padding-bottom: 3.5rem;
}

.section h2 {
  font-family: var(--serif);
  font-size: 2.1rem;
  margin-top: 0;
  color: var(--deep-space);
}

.section p {
  line-height: 1.7;
  font-size: 1.05rem;
}

.highlight-card {
  background: linear-gradient(135deg, #fdf1f7, #f0f6ff);
  border-radius: 20px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.highlight-card strong {
  font-size: 3rem;
  font-family: var(--serif);
  color: var(--accent);
}

.launch-count {
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-space);
  color: white;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-link.active {
  background: var(--accent);
  color: var(--midnight);
}

.button-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(19, 43, 68, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-status {
  margin-top: 1rem;
  text-align: center;
  color: #5b6480;
  font-style: italic;
}

.photo-card {
  background: #f6f8ff;
  border-radius: 24px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(19, 43, 68, 0.05);
  cursor: pointer;
}

.photo-card img,
.photo-card .placeholder {
  border-radius: 18px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.photo-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.15rem;
  color: var(--deep-space);
}

.photo-card time {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7486a9;
}

.photo-card p {
  margin: 0.25rem 0 0;
}

.placeholder {
  background: repeating-linear-gradient(135deg, #dfe8ff, #dfe8ff 12px, #f1f4ff 12px, #f1f4ff 24px);
  display: grid;
  place-items: center;
  color: #7486a9;
  font-weight: 600;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
}

.timeline span {
  font-weight: 600;
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: #5b6480;
  font-size: 0.95rem;
}

.name-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.name-hero img {
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(12, 21, 36, 0.3);
}

.name-hero figure {
  margin: 0;
}

.name-hero figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #5b6480;
  text-align: center;
}

.name-hero h1 {
  margin-top: 0;
  font-size: 3rem;
}

.name-facts {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.name-facts li {
  list-style: none;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: #f0f4ff;
  border-left: 4px solid var(--accent-2);
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.story-card {
  background: #f6f8ff;
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(19, 43, 68, 0.08);
}

.story-card span {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.story-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.2rem;
}

.story-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.9rem;
}

.story-list li {
  background: #f5f0ff;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(11, 27, 42, 0.08);
}

blockquote {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 159, 178, 0.08);
  border-radius: 0 18px 18px 0;
  font-style: italic;
}

.slides-embed {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(4, 9, 24, 0.35);
  aspect-ratio: 16 / 9; /* Maintain 16:9 consistently */
}

.slides-embed iframe {
  position: absolute;
  inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 24, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 2rem 0;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  position: relative;
  width: auto;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  width: auto;
  height: auto;
  display: block;
  background: #050a18;
}

.lightbox__meta {
  padding: 1rem 1.5rem 1.25rem;
  color: #f5f6ff;
  background: rgba(0, 0, 0, 0.45);
  max-width: 100%;
  word-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

.lightbox__meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.lightbox__meta time {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox__meta p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}


.lightbox__nav {
  position: absolute;
  top: 2.5rem;
  bottom: 0;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  appearance: none;
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  justify-content: flex-end;
  right: 0;
}

.lightbox__nav:hover .lightbox__chevron {
  opacity: 1;
}

.lightbox__nav.is-hidden {
  display: none;
}

.lightbox__chevron {
  font-size: 3rem;
  color: white;
  text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  margin: 0 1rem;
}

@media (max-width: 600px) {
  .section {
    padding: 2rem 1.5rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}

.lock-overlay {
  position: fixed;
  inset: 0;
  background: #050b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lock-panel {
  background: #fff;
  padding: 2rem;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.lock-panel h2 {
  margin: 0 0 0.5rem;
}

.lock-panel input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d0d4e3;
  margin-bottom: 0.75rem;
}

.lock-panel button {
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 999px;
  background: #1f2454;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.lock-error {
  color: #c0392b;
  min-height: 1.5rem;
}

.lock-lockout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.lock-lockout[hidden] {
  display: none !important;
}

.lock-lockout p {
  margin: 0;
  color: #1f2454;
}

body.lock-active {
  overflow: hidden;
}

.back-to-top {
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--deep-space);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.back-to-top:hover {
  color: var(--accent);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.book-card {
  display: flex;
  gap: 1rem;
  background: #f6f8ff;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(19, 43, 68, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(19, 43, 68, 0.15);
}

.book-card img {
  width: 110px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: #dfe4f5;
}

.book-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.book-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b4f6b;
}

@media (max-width: 640px) {
  .site-nav {
    width: calc(100% - 1.5rem);
    border-radius: 32px;
    padding: 1rem;
    justify-content: flex-start;
  }

  .site-nav__link {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
}
