/* Slyngelstuen minimal site styles */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --brand: #000000;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1100px;
  --space: clamp(12px, 2vw, 20px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2*var(--space), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 10;
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand {
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--brand);
  text-decoration: none;
}
.to-gallery {
  color: var(--text);
  text-decoration: none;
}

/* Audio toggle button in header */
.audio-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.audio-toggle:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.audio-toggle:active { transform: translateY(0); }
.audio-toggle:focus {
  outline: 3px solid rgba(0,0,0,0.08);
  outline-offset: 3px;
}

/* subtle icon before text */
.audio-toggle::before {
  content: "\1F50A"; /* speaker emoji U+1F50A */
  display: inline-block;
  transform: translateY(1px);
}

/* smaller on very small screens */
@media (max-width: 520px) {
  .audio-toggle { padding: 6px 10px; font-size: 14px; }
}

/* Hero */
.hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10vh 0 6vh;
}
.hero-title {
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  line-height: 1.05;
  font-size: clamp(32px, 8vw, 96px);
}
.hero-sub {
  margin: 0 0 24px;
  color: var(--muted);
}
.scroll-down {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, background .15s ease;
}
.scroll-down:hover { transform: translateY(2px); background: #f7f7f7; }

/* Gallery */
.gallery-section { padding: 32px 0 72px; }
.section-title {
  font-size: clamp(20px, 3.5vw, 28px);
  margin: 0 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 920px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  text-decoration: none;
  color: inherit;
}
.card figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f3f3f3;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05);
  transition: transform .25s ease;
}
.card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.card:hover img { transform: scale(1.03); }

/* Details page */
.details-main { padding: 40px 0 80px; }
.details-title {
  font-size: clamp(28px, 5vw, 48px);
  margin: 8px 0 8px;
  line-height: 1.1;
}
.details-lead { color: var(--muted); margin-top: 0; }
.details-card {
  margin: 24px 0 24px;
  padding: 16px 18px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  background: #fafafa;
  box-shadow: var(--shadow);
}
.back-link { text-decoration: none; background-color: #ddd; padding: 4px 6px; border-radius: 3px; display: inline-block; }

/* Ensure images in the details card are responsive */
.details-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Details hero section: center title in frame so users must scroll to see the card */
.details-hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10vh 0;
  position: relative;
}
.details-hero .details-title {
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,0.6);
}
.details-hero .details-lead {
  color: rgba(255,255,255,0.9);
}

/* Slightly reduce default details-main top padding so hero spacing feels similar to landing */
.details-main { padding-top: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 18px 0;
  font-size: 14px;
  color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html, body { height: 100%; margin: 0; }

.video-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
}

.video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;    /* fill like background-size: cover */
}

.content { position: relative; z-index: 1; color: white; }
