/*
Theme Name: Skye Museum of Island Life
Description: Custom theme for Skye Museum of Island Life, Kilmuir, Isle of Skye.
Version: 1.0
*/

:root {
  --bg: #f1ede2;
  --ink: #1f2a22;
  --muted: #4b5a4e;
  --accent: #486853;
  --accent-soft: #d6dfd6;
  --card: #f8f5ee;
  --line: #c7c6bf;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Nunito Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% -20%, #ffffff 0%, #f1ede2 40%, #ece5d6 100%);
  line-height: 1.55;
}

img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.45rem;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
}

.brand {
  color: #fdfcf7;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: #f4f2e9;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  color: #fffef8;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18, 32, 24, 0.42), rgba(18, 32, 24, 0.7));
}

.site-nav,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: clamp(2rem, 8vw, 6rem) clamp(1rem, 4vw, 5rem);
  max-width: 54rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  opacity: 0.95;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 1rem;
}

h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.24rem);
  max-width: 42rem;
}

.cta {
  margin-top: 1.3rem;
  display: inline-block;
  text-decoration: none;
  background: #d9e4d6;
  color: #1c2e20;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
}

main {
  padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 3vw, 3rem) 4rem;
}

.content-block,
.media-row {
  margin: 2.4rem auto;
  max-width: 78rem;
}

.media-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.media-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.media-row.reverse img {
  order: 2;
}

.media-row p,
.content-block p {
  color: var(--muted);
  margin-top: 0;
}

.gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.accent {
  background: linear-gradient(130deg, #e6e9dc, #f4efe4);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1rem;
}

.visit {
  border-top: 2px solid var(--accent-soft);
  padding-top: 1.7rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

footer {
  background: #223529;
  color: #f8f3e8;
  padding: 2rem clamp(1rem, 3vw, 3rem) 2.4rem;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr 1.3fr;
}

footer a {
  color: #cbe4d2;
}

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .media-row,
  .media-row.reverse,
  .cards,
  .visit-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .media-row.reverse img {
    order: 0;
  }

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