/* The MAIN THING Journal - Standalone Site Styles
   ============================================
   YEARLY COLOR SYSTEM
   Change only these two values each year when the journal cover changes:
   ============================================ */
:root {
  /* YEARLY COLORS – update these only */
  --color-primary-dark:  #42104a;   /* Dark eggplant (gradient start) */
  --color-primary:       #842195;   /* Bright purple (gradient end / accents) */

  /* Supporting colors (usually leave these) */
  --color-bg:            #FAF8F5;   /* Warm cream page background */
  --color-text:          #2C2C2C;   /* Charcoal body text */
  --color-text-light:    #555;      /* Secondary text */
  --color-white:         #FFFFFF;
  --color-accent-gold:   #C4A574;   /* Optional soft gold highlight */
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  body {
    padding: 0 2rem;
  }
}

header {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-links a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  font-weight: 600;
}

.nav-links a.get-copy {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links a.get-copy:hover,
.nav-links a.get-copy.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
}

.hero {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 16px;
  color: var(--color-white);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.cover-img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 4px solid rgba(255,255,255,0.3);
}

.btn {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s, color 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn.secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn.secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.about-section,
.quote-section,
.content-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.about-image {
  float: left;
  width: 200px;
  height: auto;
  margin: 0.5rem 1.75rem 1rem 0;
  border-radius: 50%;
}

.content-section.about-wrap {
  text-align: left;
}

.content-section.about-wrap::after {
  content: "";
  display: table;
  clear: both;
}

.content-section.about-wrap h2 {
  text-align: center;
}

@media (max-width: 600px) {
  .about-image {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
  }
  .content-section.about-wrap {
    text-align: center;
  }
}

.about-section h2,
.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.about-section p,
.content-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.quote-section blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
  line-height: 1.4;
  border-left: 4px solid var(--color-accent-gold);
  padding-left: 1.5rem;
  text-align: left;
}

.quote-section cite {
  display: block;
  font-size: 1.1rem;
  font-style: normal;
  margin-top: 1rem;
  color: var(--color-text);
}

.pages-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.pages-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}

.pages-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.book-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  border-top: 4px solid var(--color-primary);
}

.book-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.book-card .period {
  font-weight: 600;
  margin: 0.5rem 0;
}

.book-card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.book-card a:hover {
  text-decoration: underline;
}

footer {
  background: var(--color-primary-dark);
  color: white;
  text-align: center;
  padding: 1.25rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-hear {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.95rem;
}

.footer-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0.4rem 0 0.5rem;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.social-icon {
  flex-shrink: 0;
}

.footer-sig {
  max-width: 110px;
  height: auto;
  filter: invert(1) brightness(1.2);
  opacity: 0.9;
  margin: 0;
}

footer a {
  color: var(--color-accent-gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.site-footer-credit {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.site-footer-credit a {
  color: var(--color-accent-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer-credit a:hover {
  text-decoration: underline;
}

.au-logo {
  height: 28px;
  width: auto;
  display: none; /* both hidden by default; show the right one */
}

/* Current site has a dark footer → show the dark-optimized logo */
.au-logo-dark {
  display: inline-block;
}

/* Ready for future dark mode: when body has .dark or [data-theme="dark"],
   show the light-optimized logo instead */
body.dark .au-logo-dark,
body[data-theme="dark"] .au-logo-dark {
  display: none;
}
body.dark .au-logo-light,
body[data-theme="dark"] .au-logo-light {
  display: inline-block;
}

.site-footer-credit .au-phrase {
  margin-right: 0;
}

.site-footer-credit .au-url {
  opacity: 0.9;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .quote-section blockquote {
    text-align: center;
    border-left: none;
    padding-left: 0;
    border-top: 4px solid var(--color-accent-gold);
    padding-top: 1rem;
  }
}

/* Get Your Copy layout */
.books-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  align-items: start;
}

.books-cover {
  position: sticky;
  top: 100px;
}

.books-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.edition-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
  overflow: visible;
  border-top: 4px solid var(--color-primary);
}

.edition-card.bar-style {
  overflow: visible;
  padding: 0;
}

.duration-bar {
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: white;
}

.duration-bar.six-month {
  background: var(--color-accent-gold);
  color: #2C2C2C;
}

.duration-bar.three-month {
  background: var(--color-primary);
  color: white;
}

.card-body {
  padding: 0.9rem 1.1rem 1rem;
}

.edition-card .period {
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--color-text);
  font-size: 1.05rem;
}

/* Corner ribbon version */
.edition-card.ribbon-style {
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.ribbon-clip {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  padding: 1.15rem 1.1rem 0.5rem;
  flex: 1;
}

.corner-ribbon {
  position: absolute;
  top: 22px;
  right: -28px;
  width: 120px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.28rem 0;
  transform: rotate(45deg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  z-index: 2;
  line-height: 1.1;
}

.corner-ribbon.six-month {
  background: var(--color-accent-gold);
  color: #2C2C2C;
}

.corner-ribbon.three-month {
  background: var(--color-primary);
  color: white;
}

/* Market selector */
.market-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
}

.selector-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.flag-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flag-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 2px solid #e5e0db;
  border-radius: 8px;
  padding: 0.3rem 0.6rem 0.3rem 0.35rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.flag-btn img {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.flag-btn:hover {
  border-color: var(--color-primary);
}

.flag-btn.active {
  border-color: var(--color-primary);
  background: #f8f4f9;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.other-markets {
  position: relative;
}

.other-markets summary {
  list-style: none;
  cursor: pointer;
  background: white;
  border: 2px solid #e5e0db;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.other-markets summary::-webkit-details-marker {
  display: none;
}

.other-markets summary.active,
.other-markets[open] summary {
  border-color: var(--color-primary);
  background: #f8f4f9;
}

.other-list {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.3rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border: 1px solid #eee;
  z-index: 50;
  min-width: 140px;
  padding: 0.3rem 0;
}

.other-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--color-text);
}

.other-list button:hover {
  background: #f7f4f0;
  color: var(--color-primary);
}
.market-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #f4f1ee;
  color: #3a3a3a;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  border: 1px solid #e5e0db;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.market-primary:hover {
  background: #ebe6e1;
  border-color: #d5cfc8;
  color: #1a1a1a;
}

.market-primary .flag {
  font-size: 1em;
  line-height: 1;
}

.market-dropdown {
  position: relative;
  display: inline-block;
  padding: 0 1rem 0.85rem;
  text-align: center;
}

.market-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.market-dropdown summary::-webkit-details-marker {
  display: none;
}

.market-dropdown summary:hover {
  color: var(--color-primary);
}

.market-dropdown[open] summary {
  color: var(--color-primary);
}

.market-list {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 0.35rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  min-width: 170px;
  z-index: 100;
  padding: 0.4rem 0;
  border: 1px solid rgba(0,0,0,0.08);
  white-space: nowrap;
}

.market-list a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
}

.market-list a:hover {
  background: #f7f4f0;
  color: var(--color-primary);
}

@media (max-width: 800px) {
  .books-layout {
    grid-template-columns: 1fr;
  }
  .books-cover {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
}
