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

html,
body {
  margin: 0;
  padding: 0;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===== Brand ===== */
:root {
  --font-mono: "Courier New", Courier, monospace;

  --rust-dark: #9a3a2e;
  --rust-light: #b6635a;
  --orange-dark: #c1732f;
  --orange-light: #c58a63;
  --mustard-dark: #d8cc70;
  --mustard-light: #ddd3ac;
  --ochre-dark: #a97a3c;
  --ochre-light: #bd9d72;

  --ink: #241a15;
  --paper: #fdfaf3;
}

body {
  font-family: var(--font-mono);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== Top strip: version nav + language toggle ===== */
.top-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: rgba(253, 250, 243, 0.92);
  border-bottom: 1px solid rgba(36, 26, 21, 0.15);
  backdrop-filter: blur(4px);
}

.top-strip a,
.top-strip button {
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  color: inherit;
}

.top-strip .versions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.top-strip .versions a[aria-current="page"] {
  text-decoration: underline;
  font-weight: bold;
}

.top-strip .lang-toggle {
  display: flex;
  gap: 0.25rem;
}

.top-strip .lang-toggle button[aria-pressed="true"] {
  text-decoration: underline;
  font-weight: bold;
}

/* ===== Shared button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: 2px solid currentColor;
  cursor: pointer;
  text-transform: uppercase;
}

/* ===== Shared carousel skeleton ===== */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track img {
  scroll-snap-align: start;
  object-fit: cover;
  flex: 0 0 auto;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.carousel-controls button {
  background: none;
  border: 1px solid currentColor;
  width: 2.2rem;
  height: 2.2rem;
  font-family: var(--font-mono);
}

/* ===== Shared map wrapper ===== */
.map-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ===== Hero meta lines ===== */
.location {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hours {
  margin: 0;
}

.more-info {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  text-decoration: underline;
}

.more-info:hover {
  opacity: 0.8;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(36, 26, 21, 0.55);
}

.modal[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  border-radius: 8px;
}

.modal-dialog h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.modal-dialog p {
  margin: 0 0 1rem;
}

.modal-dialog p:last-child {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.4rem;
  color: inherit;
}

/* ===== Utility ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero h1.logo svg {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  color: inherit;
}
