/* The Museum of Specimens — museum-inspired design system */

:root {
  --ink: #14181f;
  --ink-soft: #2a3140;
  --paper: #f7f4ec;
  --paper-warm: #efe8d8;
  --gold: #b8860f;
  --gold-bright: #d4a84b;
  --forest: #1e3d32;
  --forest-light: #2d5245;
  --sky-deep: #1a2744;
  --line: rgba(20, 24, 31, 0.12);
  --shadow: 0 14px 40px rgba(20, 24, 31, 0.12);
  --radius: 2px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

/* Top bar */
.announcement {
  background: var(--sky-deep);
  color: #e8e4dc;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

.announcement a {
  color: var(--gold-bright);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.95rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  flex-shrink: 1;
  height: auto;
  width: auto;
  max-height: clamp(56px, 16vw, 104px);
  max-width: min(520px, 88vw);
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  box-shadow: none;
  border: none;
  background: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.35;
  max-width: 22rem;
  align-self: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--paper-warm);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  color: #f3f0e8;
  background: linear-gradient(
      120deg,
      rgba(26, 39, 68, 0.92) 0%,
      rgba(30, 61, 50, 0.88) 55%,
      rgba(20, 24, 31, 0.9) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200" opacity="0.15"><path fill="%23c9a227" d="M0 100h400v100H0z"/><circle cx="80" cy="60" r="40" fill="%23f7f4ec"/><path fill="%231e3d32" d="M200 20l60 80H140z"/></svg>');
  background-size: cover;
  background-position: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-bright);
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: #f3f0e8;
  border-color: rgba(243, 240, 232, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Sections */
main {
  overflow-x: hidden;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(20, 24, 31, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--paper-warm), #e0d5c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body {
  padding: 1.1rem 1.2rem 1.35rem;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
}

.card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Pull quote */
.pull-quote {
  background: var(--forest);
  color: #e8e4dc;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  margin: 0;
}

.pull-quote-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.pull-quote cite {
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* Feature strip */
.feature-strip {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.feature-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 0.25rem;
}

.feature-grid span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(90deg, var(--sky-deep), var(--forest));
  color: #f3f0e8;
  padding: clamp(2.25rem, 5vw, 3.25rem) 1.25rem;
}

.page-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  max-width: 640px;
  opacity: 0.9;
}

/* Prose */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Hours / info list */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  font-weight: 600;
  color: var(--forest);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c8c4bc;
  padding: 3rem 1.25rem 2rem;
  margin-top: 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #f3f0e8;
  margin: 0 0 0.75rem;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
  color: #8a8790;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header {
    position: relative;
  }

  .info-list li {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    max-height: clamp(48px, 22vw, 72px);
    max-width: min(420px, 92vw);
  }

  .brand-tagline {
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    max-width: min(18rem, 90vw);
    flex-basis: 100%;
  }
}
