/* Mountaineer Short Film Festival — light flexbox shell */

:root {
  --bg: #050505;
  --bg-elevated: #101010;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --cyan: #00d9f5;
  --magenta: #ff00d4;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1100px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

a:visited {
  color: var(--magenta);
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner,
.nav-inner,
.site-footer .footer-inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand:visited,
.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.9);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  padding: 0.65rem 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a:visited {
  color: var(--text);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cyan);
  text-decoration: none;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
}

.site-main {
  flex: 1 0 auto;
}

/* Home hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000 center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.95) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(0, 217, 245, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 3rem;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  max-width: 14ch;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  color: #031015;
  background: var(--cyan);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:visited {
  color: #031015;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:visited {
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.home-section,
.page-body {
  padding: 2.5rem 0 3.5rem;
}

.page-header {
  padding: 2.25rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  animation: rise 0.7s ease both;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.page-header p,
.section-lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 1.75rem 0 0.65rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* Blog list */
.blog-container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-preview {
  color: var(--muted);
}

.blog-preview p {
  margin: 0;
}

/* Article shell */
.romlicontainer {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #000;
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--cyan);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0.85rem;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 78vh;
    align-items: flex-end;
  }
}
