/* Discovery – custom book page
   Palette: #4A638A, #E1E9ED, #A1C3DC, #0A0C12, #6E9AD3 */

@font-face {
  font-family: "Bangers";
  src: url("/fonts/discovery/Bangers-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/discovery/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --discovery-deep: #0A0C12;
  --discovery-mid: #4A638A;
  --discovery-bright: #6E9AD3;
  --discovery-pale: #A1C3DC;
  --discovery-cream: #E1E9ED;
  --discovery-white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--discovery-deep);
  background: var(--discovery-cream);
  min-height: 100vh;
  position: relative;
}

/* Fixed satin visual: same at every resolution (like 900px width) */
.discovery-satin {
  position: fixed;
  top: 0;
  right: 0;
  width: 640px;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: url("/images/books/discovery/discovery_visual.jpg") top right / cover no-repeat;
  mask-image: linear-gradient(to right, transparent 0%, black 60%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60%, black 100%);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-position: top right;
  -webkit-mask-position: top right;
  opacity: 1;
}

/* Page header: title + byline, compact, part of the content */
.discovery-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--discovery-pale);
}

.discovery-title {
  font-family: "Bangers", sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 400;
  color: var(--discovery-deep);
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.discovery-byline {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: var(--discovery-mid);
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discovery-wrap {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.discovery-cover-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.discovery-cover {
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 12, 18, 0.2);
}

.discovery-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 280px;
}

.discovery-meta {
  flex: 1;
  min-width: 200px;
}

.discovery-meta p {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: var(--discovery-deep);
}

.discovery-meta strong {
  color: var(--discovery-mid);
  font-weight: 600;
}

.discovery-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--discovery-bright);
  color: var(--discovery-white);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.discovery-cta:hover {
  background: var(--discovery-mid);
  color: var(--discovery-cream);
}

.discovery-section-title {
  font-family: "Bangers", sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--discovery-mid);
  margin: 2.5rem 0 1rem 0;
  letter-spacing: 0.02em;
}

.discovery-blurb {
  margin: 0 0 1.5rem 0;
  color: var(--discovery-deep);
}

.discovery-blurb + .discovery-blurb {
  margin-top: 1rem;
}

/* Content warnings block */
.discovery-warnings {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--discovery-pale);
  background: var(--discovery-white);
  box-shadow: 0 4px 16px rgba(74, 99, 138, 0.08);
}

.discovery-warnings-title {
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--discovery-white);
  background: var(--discovery-mid);
}

.discovery-warnings-content {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--discovery-deep);
  line-height: 1.6;
}

.discovery-warnings-content p {
  margin: 0;
}

/* About author */
.discovery-about {
  margin: 2rem 0;
  color: var(--discovery-deep);
}

/* Footer nav */
.discovery-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--discovery-pale);
  text-align: center;
}

.discovery-footer-links {
  margin: 0 0 1rem 0;
}

.discovery-footer-links a {
  color: var(--discovery-bright);
  font-weight: 600;
  text-decoration: none;
}

.discovery-footer-links a:hover {
  color: var(--discovery-mid);
  text-decoration: underline;
}

.discovery-footer-tagline {
  font-family: "Bangers", sans-serif;
  font-size: 1.1rem;
  color: var(--discovery-mid);
  margin: 0;
}

/* Site nav bar */
.discovery-nav {
  position: relative;
  z-index: 2;
  background: var(--discovery-mid);
  color: var(--discovery-cream);
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.discovery-nav a {
  color: var(--discovery-cream);
  text-decoration: none;
  font-weight: 500;
}

.discovery-nav a:hover {
  color: var(--discovery-white);
  text-decoration: underline;
}

.discovery-nav-home {
  font-family: "Bangers", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.discovery-nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Below 1750px: lower visual opacity so text over it is readable. Size unchanged. */
@media (max-width: 1750px) {
  .discovery-satin {
    opacity: 0.7;
  }
}

@media (max-width: 1400px) {
  .discovery-satin {
    opacity: 0.5;
  }
}

@media (max-width: 1200px) {
  .discovery-satin {
    opacity: 0.3;
  }
}

@media (max-width: 640px) {

  .discovery-cover-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .discovery-meta {
    width: 100%;
  }

  .discovery-nav {
    flex-direction: column;
    text-align: center;
  }
}
