:root {
  color-scheme: light;

  --color-text: #1a1a1a;
  --color-bg: #fff;
  --color-accent: #7a3b12;
  --color-border: #e2ddd4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.intro {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.125rem;
  color: #333;
}

section {
  margin-block: 2rem;
}

.cta-link {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--color-accent);
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
}

.cta-link:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Hero */

.hero {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 3rem;
  overflow: hidden;
  padding: 5rem 1.5rem 4.5rem;
  background: linear-gradient(135deg, #2b1608 0%, #7a3b12 55%, #b5651d 100%);
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      45deg,
      rgb(255 255 255 / 6%) 0 2px,
      transparent 2px 40px
    ),
    radial-gradient(circle at 82% 18%, rgb(255 255 255 / 15%), transparent 60%);
  pointer-events: none;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 2px solid rgb(255 255 255 / 18%);
}

.shape-1 {
  top: -4rem;
  right: 8%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 6%);
}

.shape-2 {
  bottom: -3rem;
  left: 6%;
  width: 8rem;
  height: 8rem;
  transform: rotate(20deg);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 5%);
}

.shape-3 {
  top: 30%;
  left: 18%;
  width: 4rem;
  height: 4rem;
  transform: rotate(45deg);
  border-color: rgb(255 255 255 / 25%);
}

.hero-content {
  position: relative;
  max-width: 36rem;
  margin-inline: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
}

.hero-tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgb(255 255 255 / 88%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero .cta-primary {
  border-color: #fff;
  background: #fff;
  color: var(--color-accent);
}

.hero .cta-primary:hover {
  background: transparent;
  color: #fff;
}

.hero .cta-secondary {
  border-color: rgb(255 255 255 / 70%);
  color: #fff;
}

.hero .cta-secondary:hover {
  background: rgb(255 255 255 / 12%);
}

/* Info cards */

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-block: 2.5rem;
}

.card {
  margin-block: 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: #fdfbf8;
  box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
}

.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

/* Secondary page banner (About, and future inner pages) */

.page-banner {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 3rem;
  padding: 3.5rem 1.5rem;
  background: linear-gradient(135deg, #2b1608 0%, #7a3b12 100%);
  color: #fff;
  text-align: center;
}

.page-banner-content {
  max-width: 36rem;
  margin-inline: auto;
}

.page-banner h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
}

.page-banner-tagline {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  color: rgb(255 255 255 / 88%);
}

/* Prose sections with stronger hierarchy */

.prose-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.timeline {
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--color-accent);
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 1.25rem 1.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline-year {
  display: block;
  font-weight: 700;
  color: var(--color-accent);
}

/* Exhibitions */

.exhibition-section h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.exhibition-section-intro {
  margin: 0 0 1.25rem;
  color: #555;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.exhibition-card {
  margin-block: 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: #fdfbf8;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.exhibition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 10%);
}

.exhibition-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
}

.exhibition-meta {
  margin: 0;
  font-style: italic;
  color: #555;
}

.exhibition-dates {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.exhibition-gallery {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: #555;
}

.exhibition-description {
  margin: 0.75rem 0 0;
}

.exhibition-status {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exhibition-status-current {
  padding: 0.3rem 0.85rem;
  background: var(--color-accent);
  box-shadow: 0 2px 6px rgb(122 59 18 / 30%);
  color: #fff;
  font-size: 0.75rem;
}

.exhibition-status-upcoming {
  background: var(--color-border);
  color: #555;
}

/* Current exhibitions get the visual weight: a warmer, bordered card with a
   stronger shadow. Upcoming exhibitions stay flatter and more muted so the
   two sets read as "now" vs "next" at a glance, not as equally weighted. */

.exhibition-card-current {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgb(122 59 18 / 12%);
}

.exhibition-card-current h3 {
  font-size: 1.3rem;
}

.exhibition-card-upcoming {
  padding: 1.25rem;
  background: #fff;
}

.exhibition-card-upcoming h3 {
  font-size: 1.05rem;
}

.exhibition-grid-upcoming .exhibition-description {
  color: #555;
  font-size: 0.95rem;
}

/* Visit */

.visit-card {
  text-align: left;
}

.visit-icon {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.visit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.visit-card p {
  margin: 0.4rem 0 0;
}

.visit-card address {
  margin: 0.5rem 0 0;
  font-style: normal;
  line-height: 1.5;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  margin: 0.5rem 0;
  border: 1px dashed var(--color-border);
  border-radius: 0.35rem;
  background-color: #f3efe8;
  background-image: repeating-linear-gradient(
      0deg,
      rgb(122 59 18 / 6%) 0 1px,
      transparent 1px 20px
    ),
    repeating-linear-gradient(
      90deg,
      rgb(122 59 18 / 6%) 0 1px,
      transparent 1px 20px
    );
}

.map-pin {
  font-size: 1.75rem;
}

.visit-notes {
  max-width: 40rem;
  margin: 0;
  padding-left: 1.25rem;
}

.visit-note + .visit-note {
  margin-top: 0.75rem;
}

.cta {
  margin-block: 2rem;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  color: #555;
  font-size: 0.9rem;
}
