/* ============================================================
   Science Fiction World — Site Stylesheet

   Two-font system:
     Futura (via Jost) — structural: logo, headings, labels, nav
     Lora — reading: body, exhibit descriptions, long text

   Palette:
     Navy:    #0b1a2e (backgrounds, depth)
     Cream:   #f5f0e8 (primary background)
     Gold:    #c89b3c (accent, warmth)
     Teal:    #1a6b6a (secondary accent)
     White:   #ffffff (cards, contrast)
     Warm gray: #5a5550 (body text)
     Dark:    #1a1714 (headings)

   The design evokes mid-century science illustration and
   space-age graphic design — clean, educational, beautiful.
   Think NASA graphics program, Chesley Bonestell, Eames
   exhibitions. Not retro pastiche. Not ironic.
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.75;
  color: #5a5550;
  background-color: #f5f0e8;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  color: #1a1714;
}

h1 {
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #0b1a2e;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #1a6b6a;
}

p {
  margin-bottom: 1.4em;
  max-width: 40em;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #3d3a36;
  max-width: 38em;
}

a {
  color: #1a6b6a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover {
  color: #c89b3c;
  border-bottom-color: #c89b3c;
}

/* --- Layout --- */
.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header / Navigation --- */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 2px solid #0b1a2e;
  background: #0b1a2e;
}

.site-header .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f0e8;
  text-decoration: none;
  border-bottom: none;
}

.site-logo:hover {
  color: #c89b3c;
  border-bottom: none;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.site-nav a {
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  border-bottom: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #c89b3c;
  border-bottom: none;
}

/* --- Hero --- */
.hero {
  background: #0b1a2e;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  display: block;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  background: #0b1a2e;
  padding: 3rem 0 2.5rem;
  position: relative;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200, 155, 60, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(26, 107, 106, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f5f0e8;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #c89b3c;
  margin-bottom: 0;
  text-transform: uppercase;
  max-width: none;
}

.hero .hero-description {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.7);
  max-width: 36em;
  margin: 2rem auto 0;
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section-divider {
  border: none;
  border-top: 1px solid #d4cfc5;
  margin: 0;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c89b3c;
  margin-bottom: 1.5rem;
}

/* --- Gallery Card Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid #e0dbd2;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  border-color: #c89b3c;
  box-shadow: 0 4px 20px rgba(11, 26, 46, 0.08);
  border-bottom-color: #c89b3c;
}

.gallery-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.gallery-card h3 {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1a2e;
  margin: 0 0 0.75rem 0;
}

.gallery-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6b6560;
  margin: 0;
  flex-grow: 1;
}

.gallery-card .card-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a6b6a;
  margin-top: 1.2rem;
  border-bottom: none;
}

/* --- Exhibit Page --- */
.exhibit-header {
  background: #0b1a2e;
  padding: 4rem 0 3rem;
}

.exhibit-header h1 {
  color: #f5f0e8;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.exhibit-header .exhibit-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #c89b3c;
  text-transform: uppercase;
}

.exhibit-body {
  padding: 3rem 0;
}

.exhibit-body p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.exhibit-body h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.exhibit-body h2:first-child {
  margin-top: 0;
}

/* Exhibit highlight boxes */
.exhibit-highlight {
  background: #ffffff;
  border-left: 3px solid #c89b3c;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.exhibit-highlight h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c89b3c;
  margin: 0 0 0.75rem 0;
}

.exhibit-highlight p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #3d3a36;
}

.exhibit-highlight p + p {
  margin-top: 0.75rem;
}

/* Exhibit subnav */
.exhibit-nav {
  background: rgba(11, 26, 46, 0.03);
  border-top: 1px solid #d4cfc5;
  border-bottom: 1px solid #d4cfc5;
  padding: 1rem 0;
  margin-bottom: 3rem;
}

.exhibit-nav .site-container {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.exhibit-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  border-bottom: none;
}

.exhibit-nav a:hover,
.exhibit-nav a.active {
  color: #0b1a2e;
}

/* --- Artifact List (items within exhibits) --- */
.artifact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.artifact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8e4dc;
  font-size: 0.95rem;
}

.artifact-list li:last-child {
  border-bottom: none;
}

.artifact-name {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  color: #1a1714;
}

.artifact-note {
  font-size: 0.85rem;
  color: #8a857e;
  font-style: italic;
}

/* --- Info page styles (Visiting, About, Gift Shop) --- */
.info-page {
  padding: 4rem 0;
}

.info-page h1 {
  margin-bottom: 0.5rem;
}

.info-page .page-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a857e;
  margin-bottom: 3rem;
}

/* Hours / Details block */
.info-block {
  background: #ffffff;
  border: 1px solid #e0dbd2;
  padding: 2rem;
  margin: 2rem 0;
  max-width: 32em;
}

.info-block h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b1a2e;
  margin: 0 0 1rem 0;
}

.info-block p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Gift shop item grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.shop-item {
  background: #ffffff;
  border: 1px solid #e0dbd2;
  padding: 1.5rem;
}

.shop-item h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1a2e;
  margin: 0 0 0.5rem 0;
}

.shop-item p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #6b6560;
  margin: 0;
}

/* --- Footer --- */
.site-footer {
  background: #0b1a2e;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.5);
}

.footer-nav {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.footer-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  border-bottom: none;
}

.footer-nav a:hover {
  color: #c89b3c;
  border-bottom: none;
}

.footer-copy {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.25);
  text-align: center;
  margin-top: 2rem;
}

/* --- Current Exhibitions badge --- */
.badge-new {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c89b3c;
  border: 1px solid #c89b3c;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- Back link --- */
.back-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #1a6b6a;
  margin-top: 3rem;
  display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .site-header .site-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .site-nav {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero-overlay {
    padding: 2rem 0 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .exhibit-nav .site-container {
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .site-container {
    padding: 0 1.2rem;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 0.8rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}
