@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700&display=swap');

/* ------------------------------
   RESET
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* IMPORTANT:
   Keep the global page background WHITE so SD story pages stay correct.
   The homepage is blue because .hero paints the viewport.
*/
body {
  background: #fff;
}

/* ------------------------------
   HERO (HOMEPAGE)
--------------------------------*/
.hero {
  position: relative;
  height: 100svh;
  background: #3F00FF;
}

/* ------------------------------
   HERO CONTENT (HOMEPAGE)
--------------------------------*/
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ------------------------------
   TYPOGRAPHY (HOMEPAGE)
--------------------------------*/
h1.main {
  font-family: 'Spectral', serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
}

.sub {
  margin-top: 12px;
  font-family: 'Spectral', serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  opacity: 0.85;
}

/* ------------------------------
   SHADOW DIARIES INDEX (HOMEPAGE)
   (your tightened version)
--------------------------------*/
.sd-index {
  width: 100%;
  max-width: 660px;
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* full clickable row */
.sd-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;

  padding: 20px 32px;
  text-decoration: none;
  color: #fff;

  border-radius: 0px;
  transition: background 0.25s ease;
}

/* hover = darker blue block */
.sd-item:hover {
  background: #2E00CC;
}

/* icon */
.sd-icon-wrap img {
  width: 72px;
  height: auto;
  display: block;
}

/* text block */
.sd-text {
  text-align: left;
}

.sd-text h2 {
  font-family: 'Spectral', serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}

.sd-date {
  font-family: 'Spectral', serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  opacity: 0.9;
}

.sd-text p {
  font-family: 'Spectral', serif;
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.85;
}

/* ------------------------------
   HERO FOOTER
--------------------------------*/
.hero-footer {
  position: absolute;
  bottom: 36px;
  width: 100%;
  text-align: center;
}

.trifecta {
  width: 80px;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* BASE FOOTER TEXT (shared) */
.footer-text {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* homepage (blue background) */
.hero .footer-text {
  color: #fff;
}

/* inside pages / modal */
.modal-body .footer-text {
  color: #3F00FF;
}

/* ------------------------------
   CTA BUTTON
--------------------------------*/
.cta-button {
  margin-top: 28px;
  padding: 10px 22px;

  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  background: transparent;

  transition: background 0.25s ease;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ------------------------------
   SD STORY HERO IMAGE (INSIDE PAGES)
--------------------------------*/
.sd-hero {
  margin: 0 0 28px 0;
}

.sd-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ------------------------------
   MODAL BODY (INSIDE PAGES)
--------------------------------*/
.modal-body {
  background: #fff;
  color: #3F00FF;
}

/* ------------------------------
   MODAL WRAPPER
--------------------------------*/
.modal-wrapper {
  max-width: 1028px;
  margin: 0 auto;
  padding: 60px 0 120px;
  position: relative;
}

/* ------------------------------
   STICKY MODAL HEADER
--------------------------------*/
.modal-header-bar {
  position: sticky;
  top: 0;
  z-index: 9999;

  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.modal-header-bar.scrolled {
  border-bottom-color: #3F00FF;
}

.modal-header-inner {
  max-width: 1028px;
  margin: 0 auto;
  padding: 20px 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HEADER TEXT */
.modal-breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  letter-spacing: 1.5px;
  font-weight: 400;
  color: #3F00FF;
}

/* CLOSE BUTTON */
.modal-close img {
  width: 24px;
  display: block;
}

/* ------------------------------
   MODAL CONTENT
--------------------------------*/
.modal-section-title {
  font-family: 'Spectral', serif;
  font-size: 46px;
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-hr-small {
  width: 40px;
  border: none;
  border-bottom: 10px solid #3F00FF;
  margin-bottom: 30px;
}

.modal-hr-big {
  width: 100%;
  border: none;
  border-bottom: 1px solid #3F00FF;
  margin: 50px 0;
}

.modal-content h1 {
  font-family: 'Spectral', serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #3F00FF;
}

.modal-content p {
  font-family: 'Spectral', serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #3F00FF;
}

.modal-content ul {
  list-style: disc inside;
  margin-bottom: 25px;
}

.modal-content a {
  color: #3F00FF;
  text-decoration: underline;
}

/* ------------------------------
   QUOTE
--------------------------------*/
.modal-quote {
  font-family: 'Spectral', serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.2;
  margin: 60px 0;
}

/* ------------------------------
   MOBILE
--------------------------------*/
@media (max-width: 768px) {

  /* homepage */
  h1.main {
    font-size: 36px;
  }

  .sub {
    font-size: 18px;
  }

  .trifecta {
    width: 30px;
  }

  /* homepage index */
  .sd-index {
    padding: 0 20px;
    gap: 40px;
  }

  .sd-item {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 20px;
  }

  .sd-icon-wrap img {
    width: 44px;
  }

  .sd-text h2 {
    font-size: 20px;
  }

  .sd-text p {
    font-size: 15px;
  }

  /* modal pages */
  .modal-wrapper {
    max-width: 100%;
    padding: 40px 20px 80px;
  }

  .modal-header-inner {
    padding: 16px 20px;
  }

  .modal-breadcrumb {
    font-size: 14px;
  }

  .modal-quote {
    font-size: 36px;
  }
}