:root {
  --mahogany: #9f2333;
  --lemon: #f5f0d8;
  --navy: #183a6b;
  --ink: #1f1a17;
  --paper: #fcfaf2;
  --paper-warm: #f3ecd2;
  --white: #ffffff;

  --line: rgba(24, 58, 107, 0.12);
  --line-strong: rgba(24, 58, 107, 0.18);

  --max-width: 1200px;
  --radius: 24px;
  --radius-lg: 34px;

  --shadow-soft: 0 14px 36px rgba(24, 58, 107, 0.08);
  --shadow-card: 0 14px 30px rgba(24, 58, 107, 0.1);
  --border-soft: 1px solid var(--line);
}

* {
  box-sizing: border-box;
}
@font-face {
  font-family: "Lumios Typewriter Used";
  src: url("./assets/fonts/LumiosTypewriterUsed.woff2") format("woff2"),
       url("./assets/fonts/LumiosTypewriterUsed.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lumios Typewriter Used", "Courier New", serif;
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(159, 35, 51, 0.05), transparent 26%),
    linear-gradient(180deg, #faf6e8 0%, #f5f0d8 52%, #f8f4e6 100%);
}

body.page-loaded {
  opacity: 1;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.35), transparent 20%),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.22), transparent 22%);
  opacity: 0.7;
}

body::after {
  z-index: -1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(24, 58, 107, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 58, 107, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.page-shell {
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  top: 180px;
  left: -140px;
  width: 360px;
  height: 360px;
  background: rgba(159, 35, 51, 0.08);
}

.page-shell::after {
  top: 760px;
  right: -150px;
  width: 380px;
  height: 380px;
  background: rgba(24, 58, 107, 0.06);
}

.section-space {
  padding: 44px 0 0;
}

.hero.section-space {
  padding: 12px 0 8px;
}
.tour-info-card {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 24px 24px 22px;
  border-radius: 24px;
  background: rgba(252, 250, 242, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.tour-info-label,
.popup-note-label {
  margin: 0 0 10px;
  font-size: 2rem;
  
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mahogany);
}


.popup-note strong {
  font-weight: 700;
  color: var(--navy);
}

.tour-info-card p {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.tour-info-card p:last-child {
  margin-bottom: 0;
}

.popup-note {
  max-width: 860px;
  margin: 28px 12px 12px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(252, 250, 242, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.popup-note p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.popup-note p:last-child {
  margin-bottom: 0;
}

.passport-copy {
  max-width: 760px;
  margin: 0 auto 24px;
}

.passport-copy p {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.passport-rules {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: rgba(252, 250, 242, 0.94);
  border: 1px solid var(--line);
  text-align: left;
}

.passport-rules h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.2rem;
}

.passport-rules ul {
  margin: 0;
  padding-left: 20px;
}

.passport-rules li {
  margin-bottom: 12px;
  line-height: 1.65;
}

.passport-rules a {
  color: var(--mahogany);
  text-decoration: underline;
}

.passport-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* background: rgba(245, 240, 216, 0.96); */
  /* border-bottom: 1px solid var(--line); */
  /* box-shadow: 0 8px 24px rgba(24, 58, 107, 0.06); */
  transition: transform 0.28s ease;
  transform: translateY(0);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 18px;
  z-index: 1001;
  background: transparent;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* this is the important fix */
.header-hover-zone:hover + .page-shell .site-header,
.site-header:hover {
  transform: translateY(0);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(4, 45, 98, 0.15));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--mahogany);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */

.hero {
  padding: 64px 0 48px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.26), transparent 38%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-simple {
  text-align: center;
  padding: 12px 0 0;
}

.hero-logo-large {
  width: clamp(120px, 28vw, 640px);
  margin: 0 auto 6px;
  display: block;
  filter: drop-shadow(0 10px 32px rgba(4, 45, 98, 0.18));
  animation: heroLogoFloat 6s ease-in-out infinite;
}

.hero-logo {
  width: min(320px, 72%);
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(4, 45, 98, 0.18));
  opacity: 0.96;
  animation: heroLogoFloat 6s ease-in-out infinite;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(159, 35, 51, 0.08);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.hero-tagline {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(17, 17, 17, 0.78);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@keyframes heroLogoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(4, 45, 98, 0.12);
}

.button-primary {
  background: var(--mahogany);
  color: var(--white);
}

.button-secondary {
  background: var(--navy);
  color: var(--white);
}

/* Intro */

.intro-strip {
  padding: 0 0 12px;
}

.intro-strip .container {
  background: rgba(252, 250, 242, 0.82);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 24px 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.intro-strip p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

/* Shared headings */

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mahogany);
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.78);
}

/* Bookstores */

.bookstores-section {
  position: relative;
  text-align: center;
}

.bookstores-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(159, 35, 51, 0.04), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(24, 58, 107, 0.04), transparent 26%);
}

.bookstores-section > .container {
  position: relative;
  z-index: 1;
}

.bookstores-grid {
  max-width: 1100px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.store-card {
  position: relative;
  perspective: 1400px;
  min-height: 360px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.store-card-inner {
  position: relative;
  width: 100%;
  min-height: 360px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.store-card.is-flipped .store-card-inner {
  transform: rotateY(180deg);
}

.store-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  background: rgba(252, 250, 242, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 20px 18px 26px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.store-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(24, 58, 107, 0.1),
    rgba(159, 35, 51, 0.08)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.store-card:hover .store-face-front {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(24, 58, 107, 0.12);
  border-color: rgba(159, 35, 51, 0.18);
}

.store-face-front {
  z-index: 2;
  justify-content: flex-start;
}

.store-face-back {
  transform: rotateY(180deg);
  justify-content: center;
  background: rgba(252, 250, 242, 0.94);
}

.store-logo-link {
  display: block;
  width: 100%;
}

.store-logo {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  margin: 0 auto 18px;
  transition: transform 0.25s ease;
}

.store-logo-link:hover .store-logo {
  transform: scale(1.02);
}

.store-name {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.store-name-link {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.store-name-link:hover {
  color: var(--mahogany);
}

.store-hours {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.8);
}

.store-address {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(31, 26, 23, 0.68);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.store-address:hover {
  color: var(--mahogany);
  opacity: 0.9;
}

.store-address.copied {
  color: var(--mahogany);
}

.store-address::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.store-address:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.store-back-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  height: 100%;
}

.store-blurb {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.84);
}

.store-toggle {
  margin-top: auto;
  border: 0;
  background: transparent;
  color: var(--mahogany);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 0 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-toggle:hover {
  transform: translateX(2px);
  opacity: 0.85;
}

.store-toggle-back:hover {
  transform: translateX(-2px);
}

.card-link-text {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mahogany);
}

/* Map */

#map {
  position: relative;
}

#map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(24, 58, 107, 0.04), transparent 38%);
}

#map > .container {
  position: relative;
  z-index: 1;
}

.map-wrap {
  background: linear-gradient(
    145deg,
    rgba(24, 58, 107, 0.92),
    rgba(37, 53, 84, 0.88)
  );
  border-radius: 30px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.map-panel {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.map-panel iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

/* Passport */

#passport {
  position: relative;
}

#passport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(159, 35, 51, 0.04), transparent 34%);
}

#passport > .container {
  position: relative;
  z-index: 1;
}

.passport-card {
  /* background: rgba(245, 240, 216, 0.65); */
  /* border: 1px solid var(--line); */
  /* border-radius: 28px; */
  /* box-shadow: var(--shadow-soft); */
  padding: 38px 24px;
  text-align: center;
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */

@media (max-width: 960px) {
  .map-panel iframe {
    height: 500px;
  }
}

/* Mobile */

@media (max-width: 720px) {
  body {
    background: linear-gradient(180deg, #faf6e8 0%, #f5f0d8 52%, #f8f4e6 100%);
  }

  body::before,
  body::after,
  .page-shell::before,
  .page-shell::after {
    display: none;
  }
  .header-hover-zone {
    display: none;
  }
  .site-header {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    /* background: rgba(245, 240, 216, 0.96); */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* border-bottom: 1px solid var(--line); */
    /* box-shadow: 0 6px 16px rgba(24, 58, 107, 0.04); */
  }

  .header-inner {
    min-height: 64px;
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .hero-logo-large {
    width: clamp(220px, 72vw, 520px);
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.05;
    letter-spacing: 0.01em;
  }

  .brand span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
  }

  .site-nav a {
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .site-nav a::after {
    bottom: -3px;
  }

  .section-space {
    padding: 34px 0 56px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-kicker {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
    line-height: 0.96;
  }

  .hero-tagline {
    margin-top: 14px;
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .bookstores-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px auto 0;
    padding: 0 10px;
    max-width: 450px;
  }

  .store-card,
  .store-card-inner {
    min-height: 300px;
  }

  .store-face {
    padding: 14px 12px 18px;
    border-radius: 16px;
  }

  .store-logo {
    max-height: 64px;
    margin-bottom: 10px;
  }

  .store-name {
    font-size: 1.25rem;
  }

  .store-hours {
    font-size: 1rem;
  }

  .store-address {
    font-size: 1rem;
  }

  .store-blurb {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .map-wrap {
    padding: 14px;
    border-radius: 22px;
  }

  .map-panel {
    border-radius: 16px;
  }

  .map-panel iframe {
    height: 360px;
  }

  .passport-card,
  .intro-strip .container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .passport-card {
    padding: 30px 18px;
    border-radius: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 12px;
  }
}
@media (max-width: 720px) {
  .tour-info-card,
  .popup-note,
  .passport-rules {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .tour-info-card p,
  .popup-note p,
  .passport-copy p,
  .passport-rules li {
    font-size: 0.96rem;
  }

  .passport-actions {
    flex-direction: column;
  }
}