:root {
  --ink: #1a2a24;
  --ink-soft: #3d5248;
  --paper: rgba(244, 248, 245, 0.92);
  --paper-solid: #f4f8f5;
  --moss: #2f6b4f;
  --moss-deep: #1e4a38;
  --river: #1f7a9c;
  --river-glow: #3eb4d8;
  --gulp: #c27803;
  --gulp-glow: #e8a317;
  --zinzel: #0f766e;
  --zinzel-glow: #14b8a6;
  --side: #7aa8b8;
  --accent: #c45c26;
  --grens: #b8860b;
  --shadow: 0 18px 50px rgba(18, 40, 32, 0.22);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: #d0d0d0;
}

html:has(body.page-home),
body.page-home {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(47, 107, 79, 0.14), transparent 42%),
    radial-gradient(ellipse at 88% 0%, rgba(31, 122, 156, 0.12), transparent 38%),
    linear-gradient(165deg, #e8f0eb 0%, #d5e2da 48%, #c8d6cf 100%);
}

body:not(.page-home):not(.page-blog) {
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brand-panel {
  position: absolute;
  z-index: 500;
  top: 1.25rem;
  left: 1.25rem;
  width: min(24rem, calc(100vw - 2.5rem));
  padding: 1.35rem 1.4rem 1.25rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(236, 245, 239, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(62, 180, 216, 0.12), transparent 55%);
  border: 1px solid rgba(30, 74, 56, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise-in 0.7s ease-out both;
}

.brand-panel.is-collapsed {
  padding-bottom: 0.85rem;
}

.brand-panel.is-collapsed .lede,
.brand-panel.is-collapsed .meta,
.brand-panel.is-collapsed .map-nav,
.brand-panel.is-collapsed .actions {
  display: none;
}

.brand-lockup {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

a.brand-lockup:hover h1 {
  color: var(--moss);
}

.brand-logo {
  flex-shrink: 0;
  width: auto;
  height: clamp(1.95rem, 4vw, 2.65rem);
  object-fit: contain;
  display: block;
}

.brand-lockup h1,
.brand-panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--moss-deep);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--moss-deep);
}

.lede {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.meta {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
}

.meta div {
  min-width: 0;
}

.meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.8;
}

.meta dd {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.map-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 74, 56, 0.12);
}

.map-nav-group {
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(30, 74, 56, 0.1);
}

.map-nav-heading {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--moss-deep);
}

.map-nav-regions {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
  opacity: 0.85;
}

.map-nav-link {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--moss-deep);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.map-nav-group .map-nav-link {
  padding-left: 0.15rem;
  font-size: 0.9rem;
}

a.map-nav-link:hover {
  color: var(--moss);
}

.map-nav-link.is-current {
  font-weight: 600;
  color: var(--moss);
}

.map-nav-link.is-soon {
  color: var(--ink-soft);
  opacity: 0.55;
  cursor: default;
}

.latest-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
  color: var(--moss-deep);
}

.latest-post {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  margin-top: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: opacity 0.15s ease;
}

.latest-post:hover {
  transform: none;
  opacity: 0.88;
}

.latest-post img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 10px;
}

.latest-post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.latest-post-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--moss-deep);
}

.posts-card {
  position: absolute;
  z-index: 500;
  right: 1.25rem;
  bottom: 2.6rem;
  width: min(22rem, calc(100vw - 2.5rem));
  padding: 1.1rem 1.15rem 1.15rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(236, 245, 239, 0.94));
  border: 1px solid rgba(30, 74, 56, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise-in 0.7s ease-out 0.08s both;
}

.posts-card-all {
  margin-top: 0.95rem;
  width: 100%;
  justify-content: center;
}

.btn {
  appearance: none;
  border: 1px solid rgba(30, 74, 56, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--moss-deep);
  font: 500 0.88rem/1 var(--font-body);
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn[hidden] {
  display: none !important;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 74, 56, 0.35);
}

.btn.primary {
  background: var(--moss);
  border-color: var(--moss);
  color: #f4faf6;
}

.btn.primary:hover {
  background: var(--moss-deep);
}

.btn.is-active {
  background: var(--river);
  border-color: var(--river);
  color: white;
}

.panel-toggle {
  display: none;
}

.legend {
  position: absolute;
  z-index: 500;
  right: 1.25rem;
  bottom: 2.6rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid rgba(30, 74, 56, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  animation: rise-in 0.7s ease-out 0.12s both;
}

.legend--top {
  top: 4.75rem;
  bottom: auto;
  max-height: min(70vh, calc(100vh - 7rem));
}

.map-about-card {
  position: absolute;
  z-index: 500;
  right: 1.25rem;
  bottom: 2.6rem;
  width: min(22rem, calc(100vw - 2.5rem));
  padding: 1.1rem 1.15rem 1.15rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(236, 245, 239, 0.94));
  border: 1px solid rgba(30, 74, 56, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise-in 0.7s ease-out 0.08s both;
}

.map-about-card h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--moss-deep);
}

.map-about-card p + h2,
.map-about-card .ebike-legend + h2 {
  margin-top: 1.35rem;
}

.map-about-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.map-about-card p + p {
  margin-top: 0.7rem;
}

.ebike-legend {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ebike-legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.ebike-legend-swatch {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50% 50% 50% 0;
  background: #0b5fff;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(11, 95, 255, 0.35);
  transform: rotate(-45deg);
}

.ebike-legend-swatch--photo {
  background: #0a7a2f;
  box-shadow: 0 1px 4px rgba(10, 122, 47, 0.4);
}

.ebike-legend-swatch--caution {
  background: #e36a12;
  box-shadow: 0 1px 4px rgba(227, 106, 18, 0.4);
}

.map-about-card a {
  color: var(--moss);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.map-about-card a:hover {
  color: var(--moss-deep);
}

.map-point-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  color: var(--moss);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.map-point-link:hover {
  color: var(--moss-deep);
}

.top-pick {
  margin-top: 0.35rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.top-pick-meta {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.legend-row + .legend-row {
  margin-top: 0.4rem;
}

.swatch {
  width: 1.5rem;
  height: 0.28rem;
  border-radius: 999px;
}

.swatch.main {
  background: linear-gradient(90deg, var(--river), var(--river-glow));
  box-shadow: 0 0 8px rgba(62, 180, 216, 0.55);
}

.swatch.gulp {
  background: linear-gradient(90deg, var(--gulp), var(--gulp-glow));
  box-shadow: 0 0 8px rgba(232, 163, 23, 0.45);
}

.swatch.zinzel {
  background: linear-gradient(90deg, var(--zinzel), var(--zinzel-glow));
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.4);
}

.swatch.side {
  background: var(--side);
  opacity: 0.85;
}

.swatch.radius {
  background: transparent;
  border: 1.5px dashed rgba(30, 74, 56, 0.55);
  height: 0.7rem;
  border-radius: 50%;
  width: 0.7rem;
  box-sizing: border-box;
}

.swatch.ebike-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--zinzel);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.35);
}

.legend-note {
  color: var(--ink-soft);
  font-size: 0.72rem;
  opacity: 0.85;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.dot.bron {
  background: var(--accent);
}

.dot.grens {
  background: var(--grens);
}

.dot.blog {
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.credit {
  position: absolute;
  z-index: 500;
  left: 1.25rem;
  bottom: 0.7rem;
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: rgba(244, 248, 245, 0.82);
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.credit a {
  color: var(--moss-deep);
}

/* Leaflet overrides */
.leaflet-container {
  background: #c8c8c8;
  font: 400 0.85rem/1.35 var(--font-body);
}

.leaflet-tile-pane {
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
  border-radius: 12px !important;
}

.leaflet-control-zoom a {
  color: var(--moss-deep) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
}

.place-marker {
  background: transparent;
  border: none;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.marker-dot.bron,
.marker-dot.monding {
  width: 16px;
  height: 16px;
  background: var(--accent);
}

.marker-dot.grens {
  background: var(--grens);
}

.marker-dot.plaats {
  background: var(--moss);
}

.flow-beacon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--river-glow) 45%, var(--river));
  border: 2px solid white;
  box-shadow:
    0 0 0 6px rgba(62, 180, 216, 0.22),
    0 4px 16px rgba(31, 122, 156, 0.45);
  transform: translate(-50%, -50%);
  animation: pulse 1.6s ease-in-out infinite;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--paper-solid);
}

.leaflet-popup-content {
  margin: 0.85rem 1rem;
  font-family: var(--font-body);
  color: var(--ink);
}

.leaflet-interactive.is-river-hover {
  cursor: pointer;
}

.popup-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  color: var(--moss-deep);
}

.popup-meta {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.popup-ebike .popup-kind {
  margin: 0;
  text-transform: uppercase;
}

.popup-maps-btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
}

.popup-ebike .popup-note {
  margin: 0.55rem 0 0;
  line-height: 1.45;
}

.popup-photo {
  display: block;
  width: calc(100% + 2rem);
  max-width: none;
  margin: -0.85rem -1rem 0.75rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.leaflet-popup.popup-with-photo .leaflet-popup-content {
  margin-top: 0;
  width: 260px;
}

.popup-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.popup-kind {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
}

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

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(62, 180, 216, 0.18),
      0 4px 16px rgba(31, 122, 156, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(62, 180, 216, 0.08),
      0 4px 16px rgba(31, 122, 156, 0.45);
  }
}

@media (max-width: 720px) {
  .brand-panel {
    top: auto;
    bottom: 2.4rem;
    left: 0.75rem;
    width: calc(100vw - 1.5rem);
    padding: 1rem 1.1rem;
  }

  .page-home .brand-panel {
    top: 0.75rem;
    bottom: auto;
    left: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .posts-card {
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
    left: 0.75rem;
    width: auto;
  }

  .map-about-card {
    display: none;
  }

  .panel-toggle {
    display: inline-flex;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    appearance: none;
    border: 1px solid rgba(30, 74, 56, 0.18);
    background: white;
    color: var(--moss-deep);
    border-radius: 999px;
    font: 600 0.75rem/1 var(--font-body);
    padding: 0.45rem 0.7rem;
    cursor: pointer;
  }

  .brand-logo {
    display: none;
  }

  .brand-panel.is-collapsed .brand-lockup h1 {
    font-size: 1.8rem;
  }

  .legend {
    display: none;
  }

  .meta {
    grid-template-columns: 1.6fr 1fr;
  }

  .leaflet-top.leaflet-right {
    top: 0.75rem;
  }
}

/* Blog pins */
.blog-pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -100%) rotate(-45deg);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.blog-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.blog-pin:hover {
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.08);
}

/* E-bike charging pins */
.ebike-pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: #0b5fff;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(11, 95, 255, 0.4);
  transform: translate(-50%, -100%) rotate(-45deg);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ebike-pin--photo {
  background: #0a7a2f;
  box-shadow: 0 3px 10px rgba(10, 122, 47, 0.45);
}

.ebike-pin--caution {
  background: #e36a12;
  box-shadow: 0 3px 10px rgba(227, 106, 18, 0.45);
}

.ebike-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.ebike-pin:hover {
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.08);
}

.popup-caution {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(227, 106, 18, 0.12);
  color: #9a4300;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Modal */
body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 28, 0.55);
  backdrop-filter: blur(3px);
  animation: rise-in 0.25s ease-out both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  max-height: min(90vh, 52rem);
  overflow: auto;
  background: var(--paper-solid);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: rise-in 0.3s ease-out both;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.modal-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-body {
  padding: 1.25rem 1.4rem 1.6rem;
}

.modal-meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
}

#post-modal-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--moss-deep);
}

.prose {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.prose p {
  margin: 0 0 0.9rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose blockquote {
  margin: 1.1rem 0 0;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  background: linear-gradient(135deg, rgba(31, 122, 156, 0.08), rgba(47, 107, 79, 0.08));
  border-left: 3px solid var(--river);
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  position: relative;
}

.prose blockquote::before {
  content: "i";
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--river);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15rem;
  text-align: center;
}

.prose blockquote p {
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
}

.maps-btn {
  background: #fff;
  border-color: rgba(30, 74, 56, 0.22);
}

.maps-btn:hover {
  border-color: var(--moss);
  background: rgba(47, 107, 79, 0.06);
}

.video-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.video-btn:hover {
  filter: brightness(0.95);
  border-color: var(--accent);
  color: #fff;
}

.video-overlay[hidden] {
  display: none !important;
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.video-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 14, 0.78);
  backdrop-filter: blur(4px);
}

.video-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  animation: rise-in 0.25s ease-out both;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Homepage */
.page-home {
  overflow: auto;
  min-height: 100%;
}

.page-home .brand-panel {
  position: fixed;
}

.home-main {
  width: min(44rem, calc(100% - 2.5rem));
  margin: 1.25rem 1.25rem 0 calc(min(24rem, calc(100vw - 2.5rem)) + 4rem);
  padding-bottom: 50px;
  animation: rise-in 0.7s ease-out 0.08s both;
}

.home-main-header {
  margin: 0 0 1.25rem;
}

.home-main-header h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--moss-deep);
}

.home-main-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.home-post-list .post-card-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--moss-deep);
}

.home-empty {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .page-home .brand-panel {
    position: absolute;
  }

  .home-main {
    margin: 1rem 1rem 0;
    padding-top: 0;
    padding-bottom: 50px;
    width: calc(100% - 2rem);
  }

  .page-home .brand-panel:not(.is-collapsed) ~ .home-main {
    margin-top: 22rem;
  }

  .page-home .brand-panel.is-collapsed ~ .home-main {
    margin-top: 5.5rem;
  }
}

/* Blog list page */
.page-blog {
  overflow: auto;
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 0%, rgba(62, 180, 216, 0.12), transparent 40%),
    linear-gradient(180deg, #eef4f0, #dfe8e2);
}

.page-header {
  width: min(52rem, calc(100% - 2rem));
  margin: 2rem auto 1.5rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--moss-deep);
}

.page-header .lede {
  max-width: 36rem;
}

.post-list {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto 3rem;
  display: grid;
  gap: 1rem;
}

.home-main .home-post-list {
  width: 100%;
  margin: 0;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 74, 56, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 40, 32, 0.08);
  transition: transform 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-card img {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
}

.post-card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.post-card-body h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--moss-deep);
}

.post-card-body p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}
