:root{
  --primary:#371B76;
  --secondary:#20ABAD;
  --highlight:#F7E64B;
  --paper:#ffffff;
  --font-body:"Questrial", system-ui, sans-serif;
  --font-display:"Quattrocento", serif;
  --font-condensed:"Roboto Condensed", sans-serif;
}

/* Reset */
body,html{margin:0;padding:0;}
section{display:flex;align-items:flex-start;justify-content:center;min-height:100vh;padding:4rem 2rem;}

/* FRONT COVER */
.cover.front{
  position:relative;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary) 70%, var(--highlight) 100%);
  color:#fff;
  overflow:hidden;
}
.cover.front::before{
  content:"";
  position:absolute;inset:0;
  /* adds depth and smooths the light end */
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.10), transparent 50%);
  mix-blend-mode: overlay;
  z-index:0;
}
.cover.front .title,
.cover.front .subtitle,
.cover.front .meta {
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.cover-content{
  z-index:1;
  text-align:left;
  max-width:700px;
  padding:2rem 3rem;
}
.title{
  font-family:var(--font-display);
  font-size:clamp(2.4rem,4vw,4rem);
  line-height:1.1;
  margin:0 0 .75rem 0;
}
.title .kicker{
  display:block;
  font-family:var(--font-condensed);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--highlight);
  font-size:clamp(.95rem,1vw,1.1rem);
}
.subtitle{
  font-size:1.15rem;
  color:rgba(255,255,255,0.85);
  max-width:40ch;
  margin:0 0 1.5rem 0;
}
.meta p{
  margin:.25rem 0;
  font-size:.95rem;
  opacity:0.9;
}
.logo-slot{
  position:absolute;
  right:3rem; bottom:3rem;
  width:100px;
  height:auto;
  z-index:2;
}
.logo-slot img{width:100%;height:auto;filter:brightness(1.2);}

/* BACK COVER */
.cover.back{
  position:relative;
  background:linear-gradient(160deg, var(--paper) 0%, #f5f6f9 100%);
  color:var(--primary);
  padding:2rem 2rem;
  align-items:flex-start;
  justify-content:space-between;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.back-content{
  max-width:700px;
  font-family:var(--font-body);
  margin:0 auto;
  flex:1;
  display:flex;
  flex-direction:column;
}
.back-content h3{
  font-family:var(--font-display);
  font-size:1.8rem;
  color:var(--primary);
  margin-bottom:1rem;
}
.back-content p{font-size:1.05rem;line-height:1.6;color:#2b2550;margin-bottom:1rem;}
.back-content ul{
  margin:1.5rem 0 2rem 0;
  padding-left:0;
  list-style:none;
}
.back-content li{
  margin:1rem 0;
  padding-left:1.5rem;
  position:relative;
  line-height:1.7;
  font-size:1.05rem;
  color:#2b2550;
}
.back-content li::before{
  content:"•";
  position:absolute;
  left:0;
  color:var(--primary);
  font-weight:600;
  font-size:1.2rem;
}
.back-content .footer-tagline{
  margin-top:1.5rem;
  margin-bottom:0;
}
.back-content hr{
  width:60%;
  border:none;
  border-top:1px solid #ddd;
  margin:2rem auto;
}
.cover-links{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.back-content a{
  display: inline-block;
  margin:0 auto 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-condensed);
  font-weight: 600;
  transition: background .2s ease, transform .1s ease;
  text-align: center;
}
.back-content a:hover{
  background: color-mix(in oklab, var(--secondary), black 10%);
  transform: translateY(-1px);
}
.back-content a:active{
  transform: translateY(0);
}
.back-content a.pdf-download{
  display: inline-block;
  margin: 0.5rem auto 2rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  white-space: nowrap;
}
.back-content a.pdf-download:hover{
  background: var(--primary);
  color: white;
}
.cover.back .copyright{
  font-family:var(--font-body);
  font-size:.9rem;
  color:#6E6B86;
  margin-top:auto;
  padding-bottom:2rem;
  width:100%;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.cover.back .copyright p{
  margin:0;
  line-height:1.6;
  font-family:var(--font-body);
}
.cover.back .copyright em{
  font-style:italic;
  font-family:var(--font-body);
}
.cover.back .copyright a{
  color:#6E6B86;
  text-decoration:none;
  font-family:var(--font-body);
}
.cover.back .copyright a:hover{
  text-decoration:underline;
}
.logo-slot-back{
  position:absolute;
  top:3rem;
  right:calc(50% - 350px - 30px);
  width:150px;
  height:auto;
}
.logo-slot-back img{
  width:100%;
  height:auto;
}
/* Hide logo if it would overlap with content (viewport narrower than 600px) */
@media (max-width: 600px) {
  .logo-slot-back{
    display:none;
  }
}
.footer-tagline{
  font-family:var(--font-condensed);
  font-size:.95rem;
  text-transform:uppercase;
  color:var(--secondary);
  letter-spacing:.5px;
}

/* TITLE PAGE */
.title-page{
  background:var(--paper);
  color:var(--primary);
  flex-direction:column;
  text-align:center;
  padding:2rem;
  font-family:var(--font-body);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  position:relative;
  overflow:visible;
}
/* HTML version - combine title and content on one page */
.title-page.html-cover{
  justify-content:flex-start;
  padding-top:3rem;
  min-height:auto;
}
.title-page.html-cover .back-content{
  max-width:700px;
  margin:3rem auto 0;
  width:100%;
  text-align:left;
}
.title-page.html-cover .copyright{
  margin-top:3rem;
  padding-top:2rem;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
  width:100%;
}
.logo-slot-title{
  width:200px;
  height:auto;
  margin:0 auto 1.5rem;
  position:relative;
  z-index:1;
  flex-shrink:0;
}
.logo-slot-title img{
  width:100%;
  height:auto;
}
.title-page-content{
  max-width:600px;
  margin:0 auto;
  width:100%;
  flex-shrink:0;
}
.title-page-content h1{
  font-family:var(--font-display);
  font-size:2.4rem;
  margin:0 0 1.5rem 0;
  color:var(--primary);
  font-weight:700;
  line-height:1.2;
}
.title-page-content h1 br{
  display:block;
}
.title-page-content p{
  font-size:1.15rem;
  margin:0;
  color:#3b3850;
  font-style:italic;
  line-height:1.7;
}
.scroll-indicator{
  position:absolute;
  bottom:2rem;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.5rem;
  color:var(--primary);
  opacity:0.7;
  animation:scrollBounce 2s ease-in-out infinite;
  z-index:10;
}
.scroll-indicator svg{
  width:24px;
  height:24px;
}
.scroll-indicator span{
  font-size:0.85rem;
  font-family:var(--font-condensed);
  font-weight:500;
  letter-spacing:0.5px;
  text-transform:uppercase;
}
@keyframes scrollBounce{
  0%,100%{
    transform:translateX(-50%) translateY(0);
  }
  50%{
    transform:translateX(-50%) translateY(10px);
  }
}
.title-page hr{
  width:60%;
  border:none;
  border-top:1px solid #ddd;
  margin:2rem auto;
}
.title-page > a{
  display: inline-block;
  margin:2rem auto;
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-condensed);
  font-weight: 600;
  transition: background .2s ease, transform .1s ease;
}
.title-page > a:hover{
  background: color-mix(in oklab, var(--secondary), black 10%);
  transform: translateY(-1px);
}
.title-page > a:active{
  transform: translateY(0);
}
.title-page .copyright{
  font-size:.9rem;
  color:#6E6B86;
  margin-top:auto;
  padding-bottom:2rem;
  width:100%;
  text-align:center;
}
.title-page .copyright p{
  margin:0;
  line-height:1.6;
}
.title-page .copyright a{
  color:#6E6B86;
  text-decoration:none;
}
.title-page .copyright a:hover{
  text-decoration:underline;
}

.logo-slot-title{
  margin-bottom: 3rem;
  width: 200px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.logo-slot-title img{
  width: 100%;
  height: auto;
}

.title-page a{
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-condensed);
  font-weight: 600;
  transition: background .2s ease, transform .1s ease;
}

.title-page a:hover{
  background: color-mix(in oklab, var(--secondary), black 10%);
  transform: translateY(-1px);
}

.title-page a:active{
  transform: translateY(0);
}

/* COVER PAGE: Title + About This Guide */
.cover.title-about {
  background: var(--paper);
  color: var(--primary);
  flex-direction: column;
  padding: 4rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.cover-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.logo-slot-header {
  margin: 0 auto 2rem;
  width: 200px;
  height: auto;
}

.logo-slot-header img {
  width: 100%;
  height: auto;
}

.cover-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0 0 0.75rem 0;
  color: var(--primary);
  line-height: 1.2;
}

.cover-byline {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: #3b3850;
}

.cover-pub-info {
  font-size: 1rem;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
}

.cover-about {
  max-width: 100%;
  font-family: var(--font-body);
  line-height: 1.7;
}

.cover-about h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
  margin: 0 0 1.5rem 0;
  font-weight: 700;
}

.cover-about p {
  font-size: 1.05rem;
  color: #2b2550;
  margin: 0 0 1.25rem 0;
  text-align: justify;
}

/* Print */
@page { margin: 0; }
@media print {
  section{min-height:100vh;}
  .title-page a{display:none;}
  .cover.title-about {
    page-break-after: always;
  }
}

