/* WEST RIM — static copy of www.westrim.eu, based on the original Tumblr theme colours and typography */
: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; }
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;
}

img { max-width: 100%; height: auto; display: block; }
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; }

.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.4rem, 8vw, 4.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  line-height: 1.05;
}
.hero.compact .site-title { font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: 0.16em; }
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: inherit; text-decoration: none; opacity: 0.85; }

/* 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.25rem;
  padding: 0 0.75rem;
}
.nav-inner a,
.nav-inner .nav-btn {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.95rem 0.9rem;
  display: inline-block;
  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; }
.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: 2rem; }
.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);
}
.post-card { padding: 1.75rem 1.75rem 1.5rem; }
.page-body, .post-single { padding: 2rem 1.75rem 2.25rem; }
@media (min-width: 720px) {
  .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-title, .page-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title);
  margin: 0 0 1rem;
  line-height: 1.3;
}
.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);
}
.post-body h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 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;
}
.photo-grid.cols-1 { grid-template-columns: 1fr; }
.photo-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.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%; }

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

.bandcamp-embed {
  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: 540px;
  margin: 1rem auto;
  border: 0;
  min-height: 640px;
}
.form-embed.livestream { max-width: 640px; 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.15rem 0.55rem;
  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.3rem 1.4rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.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;
}

/* Page typography extras */
.main-text strong { color: var(--text-dark); }
.sold-out { color: var(--text-dark); }

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
    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.95rem 1rem;
    width: 100%;
    cursor: pointer;
  }
  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 0 0 0.5rem;
  }
  .site-nav.is-open .nav-inner { display: flex; }
  .nav-inner a { padding: 0.7rem 0.9rem; }
  .photo-grid.cols-2 { grid-template-columns: 1fr; }
}

.post-date a { color: inherit; text-decoration: none; }
.post-date a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .hero { min-height: 0; padding: 3.25rem 1.25rem 2.4rem; }
}
