/* ============================================================
   mission.css — Ryan Paul McGowan
   Replaces Tailwind CDN for performance
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --background:                 #ffffd3;
  --surface:                    #ffffd3;
  --surface-container-lowest:   #ffffff;
  --surface-container-low:      #fcfae3;
  --surface-container:          #f6f5dc;
  --surface-container-high:     #f1efd5;
  --surface-container-highest:  #ebeace;
  --surface-dim:                #e5e4c7;
  --surface-variant:            #ebeace;

  --on-surface:                 #38392a;
  --on-surface-variant:         #656554;

  --primary:                    #117500;
  --primary-dim:                #0e6700;
  --primary-container:          #2ff801;
  --on-primary:                 #ffffff;
  --on-primary-container:       #0b5800;

  --secondary:                  #995200;
  --secondary-dim:              #874800;
  --secondary-container:        #ffc69a;
  --on-secondary:               #ffffff;
  --on-secondary-container:     #6f3a00;

  --tertiary:                   #5259c2;
  --tertiary-dim:               #454cb5;
  --tertiary-container:         #a4a9ff;
  --on-tertiary:                #ffffff;
  --on-tertiary-container:      #181d8d;

  --error:                      #be2d06;
  --on-error:                   #ffffff;

  --outline:                    #82816f;
  --outline-variant:            #bbbaa6;

  --font-display:               'Epilogue', sans-serif;
  --font-headline:              'Epilogue', sans-serif;
  --font-label:                 'Epilogue', sans-serif;
  --font-body:                  'Be Vietnam Pro', sans-serif;

  --spacing-34:                 8.5rem;
  --scrapbook-shadow:           0 10px 30px rgba(56, 57, 42, 0.08);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--on-surface);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   3. UTILITIES
   ============================================================ */

/* Safety net: keep .hidden working for any JS that references it */
.hidden { display: none !important; }

.scrapbook-shadow { box-shadow: var(--scrapbook-shadow); }

.washi-tape-primary {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 100px; height: 25px;
  background-color: var(--primary);
  opacity: 0.8;
  z-index: 10;
}

.washi-tape-secondary {
  position: absolute;
  top: -15px; right: 10%;
  transform: rotate(3deg);
  width: 80px; height: 20px;
  background-color: var(--secondary-container);
  opacity: 0.9;
  z-index: 10;
}

.glass-panel {
  background-color: rgba(255, 255, 211, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0; z-index: 50;
  width: 100%;
  background-color: #ffffd3;
  box-shadow: var(--scrapbook-shadow);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.875rem;
  color: var(--tertiary);
  transform: rotate(-1deg);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-logo:hover { transform: rotate(-2deg); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-headline);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}
.nav-links a { color: var(--on-surface); opacity: 0.8; transition: all 0.2s; display: inline-block; }
.nav-links a:hover { color: var(--tertiary); transform: rotate(-2deg); opacity: 1; }
.nav-links a.active { color: var(--tertiary); opacity: 1; border-bottom: 4px solid var(--secondary-container); padding-bottom: 0.25rem; }

.nav-spacer { display: none; width: 140px; }

.nav-hamburger {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; color: var(--on-surface);
  background: none; border: none;
}
.nav-hamburger svg { width: 28px; height: 28px; }

.nav-mobile {
  display: none;
  background-color: #ffffd3;
  border-top: 1px solid var(--outline-variant);
  padding: 1.5rem 0;
}
.nav-mobile.is-open { display: block; }

.nav-mobile-links {
  display: flex; flex-direction: column;
  padding: 0 1.5rem; gap: 1.5rem;
  font-family: var(--font-headline); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.05em;
  font-size: 1.125rem;
}
.nav-mobile-links a { padding: 0.5rem 0; color: var(--on-surface); }
.nav-mobile-links a.active { color: var(--tertiary); }

/* ============================================================
   5. MAIN / LAYOUT
   ============================================================ */
.main {
  padding-top: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: var(--spacing-34);
  max-width: 80rem;
  margin: 0 auto;
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  margin-bottom: var(--spacing-34);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: flex-start;
}

.hero-left { position: relative; z-index: 10; width: 100%; }

.hero-book-flex {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.hero-cover-wrap {
  transform: rotate(-2deg);
  box-shadow: var(--scrapbook-shadow);
  flex-shrink: 0;
}
.hero-cover-wrap img {
  border-radius: 0.5rem;
  width: 9rem;
  border: 4px solid var(--surface-container-highest);
}

.hero-info { flex: 1; padding-top: 0.5rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--tertiary);
  text-transform: uppercase;
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.hero-title-accent {
  color: var(--primary-container);
  display: inline-block;
  transform: rotate(1deg);
  -webkit-text-stroke: 1px rgba(0,0,0,0.1);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-surface);
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  margin-bottom: 0.75rem;
}
.hero-stars { display: flex; align-items: center; gap: 0.5rem; }
.hero-stars .stars { color: var(--secondary); font-size: 1.25rem; }
.hero-stars .label { font-size: 0.875rem; color: var(--on-surface-variant); font-weight: 500; }

/* ============================================================
   7. BUY BUTTONS
   ============================================================ */
.buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.buy-btn { position: relative; width: 100%; }

.buy-btn-shadow {
  position: absolute; inset: 0;
  border-radius: 9999px;
  transform: translate(4px, 4px);
  transition: transform 0.2s;
  pointer-events: none;
}
.buy-btn:hover .buy-btn-shadow { transform: translate(0,0); }
.buy-btn-paperback .buy-btn-shadow { background-color: var(--secondary); }
.buy-btn-kindle .buy-btn-shadow { background-color: var(--primary); }

.buy-btn-link {
  position: relative;
  display: block;
  width: 100%;
  font-family: var(--font-headline);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-style: italic;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 9999px;
  border: 2px solid;
  text-align: center;
  transition: transform 0.2s;
}
.buy-btn-link:hover { transform: scale(1.02); }
.buy-btn-paperback .buy-btn-link { background-color: var(--secondary-container); color: var(--on-secondary-container); border-color: var(--secondary); }
.buy-btn-kindle .buy-btn-link { background-color: var(--primary-container); color: var(--on-primary-container); border-color: var(--primary); }

/* ============================================================
   8. MISSION CARD
   ============================================================ */
.mission-card {
  background-color: rgba(255, 255, 211, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--scrapbook-shadow);
  transform: rotate(1deg);
  position: relative;
}
.mission-star {
  position: absolute; top: -1.5rem; right: -1.5rem;
  font-size: 3.75rem; color: var(--secondary-container);
  transform: rotate(12deg); opacity: 0.8;
  line-height: 1; pointer-events: none;
}
.mission-heading {
  font-family: var(--font-body); font-size: 1.25rem;
  line-height: 1.6; color: var(--on-surface);
  margin-bottom: 1rem; font-weight: 700;
}
.mission-text {
  font-family: var(--font-body); font-size: 1.125rem;
  line-height: 1.6; color: var(--on-surface);
  margin-bottom: 1.5rem; font-weight: 500;
}

.how-it-works {
  background-color: var(--surface-container-highest);
  padding: 1.5rem; border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--secondary);
}
.how-it-works-title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 1.125rem; color: var(--secondary);
  text-transform: uppercase; letter-spacing: -0.05em;
  font-style: italic; margin-bottom: 0.75rem;
}
.how-it-works ol {
  display: flex; flex-direction: column; gap: 0.5rem;
  font-family: var(--font-body); font-size: 1rem;
  line-height: 1.6; color: var(--on-surface);
}
.how-it-works li { display: flex; align-items: flex-start; }
.how-it-works li .num {
  font-weight: 900; color: var(--secondary);
  margin-right: 0.75rem; margin-top: 0.125rem; flex-shrink: 0;
}

.reviews-box {
  background-color: var(--surface-container-highest);
  padding: 1.5rem; border-radius: 0.5rem;
  border-left: 4px solid var(--primary);
}
.reviews-box-title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 1.125rem; color: var(--primary);
  text-transform: uppercase; letter-spacing: -0.05em;
  font-style: italic; margin-bottom: 0.75rem;
}
.reviews-list { display: flex; flex-direction: column; gap: 0.75rem; }
.review-item { display: flex; align-items: flex-start; }
.review-stars { color: var(--secondary); font-size: 1.125rem; margin-right: 0.5rem; flex-shrink: 0; }
.review-text {
  font-family: var(--font-body); font-size: 0.875rem;
  font-style: italic; color: var(--on-surface); line-height: 1.5;
}
.mission-footer {
  font-family: var(--font-body); font-size: 1rem;
  line-height: 1.6; color: var(--on-surface);
  margin-top: 1.5rem; font-weight: 500; opacity: 0.8;
}

/* ============================================================
   9. RIGHT COLUMN
   ============================================================ */
.hero-right { position: relative; width: 100%; }

.hero-photo-wrap {
  background-color: var(--surface-container-highest);
  padding: 1rem; border-radius: 0.75rem;
  transform: rotate(2deg);
  box-shadow: var(--scrapbook-shadow);
  position: relative;
}
.hero-photo-wrap img {
  border-radius: 0.5rem; width: 100%; height: 400px;
  object-fit: cover; mix-blend-mode: multiply; opacity: 0.9;
}
.hero-photo-badge {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  background-color: var(--tertiary); color: var(--on-tertiary);
  padding: 0.5rem 1rem;
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.875rem; border-radius: 0.375rem;
  transform: rotate(-3deg);
}

/* ============================================================
   10. BOOK SHOWCASE
   ============================================================ */
.book-showcase {
  position: relative;
  background-color: var(--surface-container-low);
  padding: 2rem; border-radius: 2rem;
  box-shadow: var(--scrapbook-shadow);
  transform: rotate(1deg);
  margin-top: 2.5rem;
  border: 4px solid var(--primary);
}
.book-showcase-cover { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.book-showcase-cover-inner { transform: rotate(-2deg); box-shadow: var(--scrapbook-shadow); }
.book-showcase-cover img {
  border-radius: 0.5rem; width: 16rem;
  border: 4px solid var(--surface-container-highest);
}
.book-showcase-text { text-align: center; margin-bottom: 1.5rem; }
.book-showcase-title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 1.5rem; color: var(--tertiary);
  text-transform: uppercase; letter-spacing: -0.05em;
  font-style: italic; margin-bottom: 0.5rem;
}
.book-showcase-sub { font-size: 0.875rem; color: var(--on-surface); margin-bottom: 0.75rem; }
.book-showcase-stars {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--secondary); font-size: 1.25rem;
}
.book-showcase-buttons { display: flex; flex-direction: column; gap: 0.75rem; }

/* ============================================================
   11. NEWSLETTER
   ============================================================ */
.newsletter-card {
  position: relative;
  background-color: var(--surface-container-low);
  padding: 2rem; border-radius: 2rem;
  box-shadow: var(--scrapbook-shadow);
  transform: rotate(-2deg);
  margin-top: 2.5rem;
  border: 4px dashed var(--outline-variant);
}
.newsletter-title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 1.25rem; color: var(--tertiary);
  text-transform: uppercase; letter-spacing: -0.05em;
  font-style: italic; text-align: center;
  margin-bottom: 0.25rem;
  display: block; transform: rotate(1deg);
}
.newsletter-sub {
  font-size: 0.875rem; color: var(--on-surface-variant);
  text-align: center; margin-bottom: 1.25rem;
}
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-input {
  width: 100%; padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--surface-container-lowest);
  border: 2px solid var(--outline-variant);
  color: var(--on-surface);
  font-family: var(--font-body); font-size: 0.875rem;
  outline: none; transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--tertiary); }
.newsletter-input::placeholder { color: rgba(101,101,84,0.5); }
.newsletter-btn {
  width: 100%;
  background-color: var(--tertiary); color: var(--on-tertiary);
  font-family: var(--font-headline); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.875rem; padding: 0.75rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.newsletter-btn:hover { background-color: var(--tertiary-dim); transform: scale(1.05); }
.newsletter-btn:active { transform: scale(0.95); }
.newsletter-error {
  display: none;
  font-size: 0.875rem; color: var(--error);
  text-align: center; margin-top: 0.75rem;
}

/* ============================================================
   12. DOODLE SVG
   ============================================================ */
.doodle {
  position: absolute;
  bottom: -2.5rem; left: -2.5rem;
  width: 8rem; height: 8rem;
  color: var(--primary-container);
  transform: rotate(-12deg); z-index: 20;
}

/* ============================================================
   13. MAP SECTION
   ============================================================ */
.map-section {
  margin-bottom: var(--spacing-34);
  position: relative;
  background-color: var(--surface-container);
  padding: 3rem; border-radius: 3rem;
  box-shadow: var(--scrapbook-shadow);
  transform: rotate(-1deg);
}
.map-header {
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: flex-end; margin-bottom: 3rem;
}
.map-title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 2.5rem; color: var(--tertiary);
  text-transform: uppercase;
}
.map-completion { text-align: right; margin-top: 1.5rem; }
.map-pct {
  font-family: var(--font-display); font-weight: 900;
  font-size: 3rem; color: var(--primary-container); line-height: 1;
}
.map-pct-label {
  font-size: 0.75rem; font-weight: 700; color: var(--on-surface-variant);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.map-wrap {
  width: 100%;
  background-color: rgba(255,255,211,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  border: 4px solid rgba(187,186,166,0.3);
  position: relative;
  padding: 1.5rem;
}

/* Map SVG styles */
#us-map path:not(#path67) {
  fill: #e5e4c7; stroke: #82816f; stroke-width: 0.75;
  transition: fill 0.3s, stroke-width 0.3s; cursor: pointer;
}
#us-map path:not(#path67):hover { fill: #bbbaa6; stroke-width: 1.5; }
#us-map path:not(#path67).completed { fill: #2ff801; stroke: #0e6700; stroke-width: 1.5; }
#us-map path:not(#path67).completed:hover { fill: #25e000; }
#us-map circle { display: none; }

.map-legend {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 1.5rem; justify-content: center;
  font-family: var(--font-label); font-size: 0.875rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-dot { width: 1.25rem; height: 1.25rem; border-radius: 0.25rem; flex-shrink: 0; }
.legend-dot-completed { background-color: #2ff801; border: 2px solid #0e6700; }
.legend-dot-pending { background-color: #e5e4c7; border: 1px solid #82816f; }
.legend-label { color: var(--on-surface-variant); }

.map-progress-bar {
  width: 100%; background-color: var(--surface-container-highest);
  border-radius: 9999px; height: 1.5rem;
  margin-top: 1.5rem; overflow: hidden;
  border: 2px solid var(--surface-dim);
}
.map-progress-fill { background-color: var(--primary-container); height: 100%; border-radius: 9999px; }

/* Map tooltip */
.map-tooltip {
  display: none; position: absolute; z-index: 30;
  pointer-events: none;
  background-color: var(--surface-container-lowest);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  border: 2px solid var(--outline-variant);
  overflow: hidden; min-width: 160px;
}
.map-tooltip img { width: 100%; height: 6rem; object-fit: cover; }
.map-tooltip-content { padding: 0.5rem 0.75rem; }
.map-tooltip-state {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 0.875rem; color: var(--tertiary);
  text-transform: uppercase; letter-spacing: -0.05em;
}
.map-tooltip-city { font-size: 0.75rem; color: var(--on-surface-variant); }

/* ============================================================
   14. NEWS SECTION
   ============================================================ */
.news-section { margin-bottom: var(--spacing-34); }

.news-header {
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: flex-end; margin-bottom: 4rem;
}
.news-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 3rem; color: var(--tertiary);
  transform: rotate(1deg); display: inline-block;
  position: relative;
}
.news-title::after {
  content: ''; position: absolute;
  bottom: -1rem; left: 0; width: 100%; height: 0.5rem;
  background-color: var(--primary-container);
  transform: rotate(-2deg);
}
.news-see-all {
  margin-top: 1.5rem;
  font-family: var(--font-headline); font-weight: 700;
  font-size: 1.125rem; color: var(--tertiary);
  text-transform: uppercase; letter-spacing: -0.05em;
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.news-see-all:hover { color: var(--secondary); }
.news-see-all svg { width: 20px; height: 20px; }

.news-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }

.news-card {
  background-color: var(--surface-container-lowest);
  padding: 1rem 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--scrapbook-shadow);
  position: relative;
}
.news-card:nth-child(1) { transform: rotate(-2deg); }
.news-card:nth-child(3) { transform: rotate(-2deg); }
.news-card:nth-child(2) { transform: rotate(1deg); }

.news-card-img {
  aspect-ratio: 16 / 9;
  background-color: var(--surface-container);
  border-radius: 0.25rem; overflow: hidden; margin-bottom: 1rem;
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); transition: filter 0.5s;
}
.news-card:hover .news-card-img img { filter: grayscale(0%); }

.news-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.news-card-date {
  font-family: var(--font-label); font-size: 0.75rem; font-weight: 700;
  color: var(--secondary); text-transform: uppercase; letter-spacing: 0.1em;
}
.news-card-badge {
  background-color: var(--primary-container); color: var(--on-primary-container);
  padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-family: var(--font-label); font-size: 0.625rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.news-card-title {
  font-family: var(--font-headline); font-weight: 700;
  font-size: 1.125rem; color: var(--tertiary);
}
.news-card-body {
  font-size: 0.875rem; color: var(--on-surface-variant);
  margin-top: 0.25rem; line-height: 1.5;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  width: 100%; margin-top: 5rem;
  border-top: 8px solid #5259c2;
  background-color: #38392a;
}
.footer-inner {
  display: flex; justify-content: center; align-items: center;
  padding: 1.5rem 2rem;
}
.footer-link {
  color: #a4a9ff; font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.8; transition: all 0.2s;
}
.footer-link:hover { opacity: 1; color: #ffc69a; }

/* ============================================================
   16. OVERLAYS / POPUPS
   ============================================================ */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.overlay.is-open { display: flex; }

.map-popup {
  background-color: var(--surface-container-lowest);
  max-width: 28rem; width: 100%;
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  border: 4px solid var(--tertiary);
  overflow: hidden; position: relative;
}
.popup-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 10;
  background-color: var(--surface-container-highest);
  width: 2rem; height: 2rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  font-size: 1.25rem; line-height: 1; color: var(--on-surface);
  border: none; font-family: inherit;
}
.popup-close:hover { background-color: var(--error); color: var(--on-error); }
.map-popup img { width: 100%; height: 14rem; object-fit: cover; }
.map-popup-content {
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.popup-badge {
  display: inline-block;
  background-color: var(--primary-container); color: var(--on-primary-container);
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-family: var(--font-label); font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  width: fit-content;
}
.popup-title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 1.5rem; color: var(--tertiary);
  text-transform: uppercase; letter-spacing: -0.05em;
}
.popup-city { font-size: 1.125rem; color: var(--secondary); font-style: italic; }
.popup-note { font-size: 0.875rem; color: var(--on-surface-variant); line-height: 1.6; }

.newsletter-confirm-popup {
  position: relative;
  background-color: var(--surface-container-lowest);
  max-width: 24rem; width: 100%;
  padding: 2.5rem; border-radius: 2rem;
  box-shadow: var(--scrapbook-shadow);
  transform: rotate(1deg); text-align: center;
}
.newsletter-confirm-popup .washi-tape-primary { top: -10px; left: 33%; }
.newsletter-confirm-icon {
  font-size: 3.75rem; color: var(--primary);
  margin-bottom: 1rem; display: block; line-height: 1;
}
.newsletter-confirm-title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: 1.5rem; color: var(--tertiary);
  text-transform: uppercase; letter-spacing: -0.05em;
  font-style: italic; margin-bottom: 0.75rem;
}
.newsletter-confirm-body {
  font-family: var(--font-body); color: var(--on-surface-variant); line-height: 1.6;
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .hero-book-flex { flex-direction: row; }
  .buy-buttons { flex-direction: row; }
  .hero-cover-wrap img { width: 11rem; }
}

@media (min-width: 768px) {
  .map-header { flex-direction: row; }
  .map-completion { margin-top: 0; }
  .news-header { flex-direction: row; }
  .news-see-all { margin-top: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:nth-child(2) { margin-top: 2rem; }
}

@media (min-width: 1024px) {
  .hero-section { flex-direction: row; }
  .hero-left { width: 50%; }
  .hero-right { width: 50%; }
  .hero-title { font-size: 3rem; }
  .hero-desc { font-size: 1.125rem; }
  .nav-links { display: flex; }
  .nav-spacer { display: block; }
  .nav-hamburger { display: none; }
  .news-grid { grid-template-columns: 1fr 1fr 1fr; }
}