/* WEST RIM — static site, original theme colours; mobile-first refinements */
:root {
  --header-bg: #000;
  --nav-bg: #272841;
  --nav-text: #fff;
  --accent: #984c7c;
  --accent-hover: #7a3c63;
  --bg: #fff;
  --posts-bg: #f5f5f5;
  --post-bg: #fff;
  --border: #f2f2f2;
  --text: #555;
  --text-dark: #222;
  --title: #000;
  --secondary: #999;
  --footer-bg: #1b222c;
  --footer-text: #9aa3ae;
  --max: 960px;
  --font-title: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 0;
}

img, video, iframe, embed, object {
  max-width: 100%;
}
img { height: auto; display: block; }
iframe { border: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.post-body a, .main-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header / hero */
.site-header {
  background: var(--header-bg);
  color: #fff;
  text-align: center;
  position: relative;
}
.hero {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 3.5rem;
}
.hero.compact {
  min-height: 0;
  padding: 2.25rem 1.25rem 1.75rem;
}
.site-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  line-height: 1.05;
  padding: 0 4.5rem; /* room for language switcher */
}
.hero.compact .site-title { font-size: clamp(1.5rem, 6vw, 2.4rem); letter-spacing: 0.14em; }
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: inherit; text-decoration: none; opacity: 0.85; }

/* Language switcher — always visible, top right of the header */
.lang-switch {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-switch a,
.lang-switch span.is-active {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 0.65rem 0.55rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.is-active,
.lang-switch span.is-active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
  cursor: default;
}
.lang-switch .sep {
  color: rgba(255,255,255,0.4);
  padding: 0;
  min-width: 0;
  user-select: none;
}

.footer-langs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-langs a,
.footer-langs span.is-active {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-langs a:hover { color: #fff; text-decoration: none; }
.footer-langs a.is-active,
.footer-langs span.is-active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.footer-langs .sep { color: rgba(255,255,255,0.35); padding: 0; min-width: 0; }

/* Sticky nav */
.site-nav {
  background: var(--nav-bg);
  color: var(--nav-text);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.15rem;
  padding: 0 0.5rem;
}
.nav-inner a,
.nav-inner .nav-btn {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.95rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-inner a:hover,
.nav-inner a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav-toggle { display: none; }

/* Sections */
.section {
  padding: 3.25rem 1.25rem 3.5rem;
}
.section-posts { background: var(--posts-bg); }
.section-alt { background: var(--bg); }
.section-inner { max-width: var(--max); margin: 0 auto; min-width: 0; }
.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--title);
  text-align: center;
  margin: 0 0 2.25rem;
}

/* Posts */
.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-card, .page-body, .post-single {
  background: var(--post-bg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  min-width: 0;
  overflow: hidden;
}
.post-card { padding: 1.25rem 1.15rem 1.2rem; }
.page-body, .post-single { padding: 1.4rem 1.15rem 1.6rem; }
@media (min-width: 720px) {
  .post-list { gap: 2rem; }
  .post-card, .page-body, .post-single { padding: 2.25rem 2.5rem 2rem; }
}

.post-date {
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.85rem;
}
.post-date a { color: inherit; text-decoration: none; }
.post-date a:hover { color: var(--accent); text-decoration: none; }

.post-title, .page-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title);
  margin: 0 0 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--accent); text-decoration: none; }

.post-body, .page-body .main-text, .post-single .main-text {
  color: var(--text);
  overflow-wrap: break-word;
}
.post-body h1, .post-body h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title);
  margin: 0 0 0.75rem;
}
.post-body p, .main-text p { margin: 0 0 0.85rem; }
.post-body p:last-child, .main-text p:last-child { margin-bottom: 0; }

.photo-grid {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  grid-template-columns: 1fr;
}
.photo-grid.cols-2,
.photo-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .photo-grid.cols-2,
  .photo-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .photo-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.photo-grid a { display: block; }
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #eee;
}
.photo-grid.cols-1 img { aspect-ratio: auto; object-fit: contain; background: transparent; }
.photo-single { margin: 0 0 1.15rem; }
.photo-single img { width: 100%; }

.post-body h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--title);
  margin: 1.35rem 0 0.4rem;
}
.post-body h2 + h3 { margin-top: 1rem; }

.photo-single.poster {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.15rem;
  background: #000;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bandcamp-embed {
  display: block;
  margin: 0.5rem 0 1rem;
  width: 100%;
  max-width: 100%;
  border: 0;
  height: 120px;
}
.bandcamp-embed.tall { height: 470px; }

.form-embed {
  display: block;
  width: 100%;
  max-width: min(540px, 100%);
  margin: 1rem auto;
  border: 0;
  min-height: 640px;
  overflow: hidden;
}
.form-embed.livestream {
  max-width: min(640px, 100%);
  min-height: 610px;
}

.tags {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags li { margin: 0; }
.tags a, .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent);
  background: #f8eef4;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.tags a:hover { background: #f0dce8; text-decoration: none; }

/* About / videos */
.about-text {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-dark);
  max-width: 36rem;
  margin: 0 auto;
}
.video-list {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .video-list { grid-template-columns: 1fr 1fr; }
}
.video-item h3 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--title);
  margin: 0 0 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 1.25rem 2.25rem;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.copyright {
  font-size: 0.85rem;
  color: var(--footer-text);
  margin: 0;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 4rem 1.25rem 5rem;
}
.not-found h1 {
  font-family: var(--font-title);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--title);
}
.not-found p { margin: 0.75rem 0 1.5rem; }

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.5rem 0;
  min-height: 44px;
}

.read-more {
  margin: 0.85rem 0 0;
}
.read-more a {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.main-text strong { color: var(--text-dark); }
.sold-out { color: var(--text-dark); }

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 auto;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--nav-bg);
    border: 0;
    padding: 0;
    width: 100%;
    min-height: 48px;
    cursor: pointer;
  }
  .nav-toggle .nav-icon {
    display: block;
    width: 1.15rem;
    height: 0.85rem;
    position: relative;
  }
  .nav-toggle .nav-icon::before,
  .nav-toggle .nav-icon::after,
  .nav-toggle .nav-icon span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }
  .nav-toggle .nav-icon span { top: 50%; margin-top: -1px; }
  .nav-toggle .nav-icon::before { top: 0; }
  .nav-toggle .nav-icon::after { bottom: 0; }
  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 0 0 0.4rem;
  }
  .site-nav.is-open .nav-inner { display: flex; }
  .nav-inner a {
    padding: 0.85rem 0.9rem;
    min-height: 48px;
    width: 100%;
  }
  .hero,
  .hero.compact { min-height: 0; padding: 3.7rem 1.1rem 2rem; }
  .section { padding: 2.25rem 0.9rem 2.5rem; }
  .site-title { padding: 0 0.5rem; letter-spacing: 0.1em; }
}

@media (max-width: 380px) {
  .site-title { letter-spacing: 0.08em; }
  body { font-size: 1rem; }
}

/* Seasonal Christmas nav: hidden by default, shown Nov–Jan via html.season-christmas */
.nav-inner a.nav-christmas,
.footer-nav li.nav-christmas {
  display: none;
}
html.season-christmas .nav-inner a.nav-christmas {
  display: inline-flex;
  color: #1a1400;
  background: #f5c518;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  margin: 0 0.25rem;
  box-shadow: none;
  min-height: 2.25rem;
}
html.season-christmas .nav-inner a.nav-christmas:hover,
html.season-christmas .nav-inner a.nav-christmas[aria-current="page"] {
  color: #1a1400;
  background: #ffd84a;
  box-shadow: none;
  text-decoration: none;
}
html.season-christmas .footer-nav li.nav-christmas {
  display: list-item;
}
html.season-christmas .footer-nav li.nav-christmas a {
  color: #1a1400;
  background: #f5c518;
  border-radius: 999px;
}
html.season-christmas .footer-nav li.nav-christmas a:hover,
html.season-christmas .footer-nav li.nav-christmas a[aria-current="page"] {
  color: #1a1400;
  background: #ffd84a;
  text-decoration: none;
}
.video-list.stack {
  grid-template-columns: 1fr;
  max-width: 44rem;
  margin: 0 auto;
}
@media (max-width: 720px) {
  html.season-christmas .nav-inner a.nav-christmas {
    width: auto;
    align-self: center;
    margin: 0.35rem auto;
  }
}
