@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;600;700&display=swap");

:root {
  --bg: #f7f4ea;
  --surface: #fffdf7;
  --text: #1c1b18;
  --muted: #5e5a52;
  --line: #d9d1bd;
  --accent: #0d5e52;
  --accent-2: #d97a2b;
  --max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, #fffaf0 0%, var(--bg) 60%);
  color: var(--text);
}

body {
  margin: 0;
  line-height: 1.6;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid var(--line);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, white);
}

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

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.brand-text {
  line-height: 1;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--accent);
}

.hero {
  padding: 2.5rem 0 1rem;
}

.hero-fullbleed {
  position: relative;
  margin: 0 calc(50% - 50vw) 1.25rem;
  padding: 0;
  min-height: clamp(22rem, 62vw, 44rem);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: #0a0f13;
}

.hero-banner {
  margin: 0 0 1rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e0cd;
}

.hero-banner-full {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0a0f13;
  height: 100%;
  min-height: inherit;
}

.hero-banner img {
  width: 100%;
  display: block;
  max-height: 26rem;
  object-fit: cover;
}

.hero-banner-full img {
  max-height: none;
  height: 115%;
  width: 100%;
  object-fit: cover;
  object-position: 45% top;
  background: #0a0f13;
  transform: translateY(-5%);
  filter: brightness(1.10);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 14, 0.68) 0%, rgba(6, 10, 14, 0.38) 28%, rgba(6, 10, 14, 0.08) 55%, rgba(6, 10, 14, 0) 72%),
    linear-gradient(180deg, rgba(6, 10, 14, 0.1) 0%, rgba(6, 10, 14, 0.28) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-content-overlay {
  position: absolute;
  left: clamp(2rem, 16vw, 20rem);
  top: 62%;
  transform: translateY(-50%);
  width: min(42rem, calc(100vw - 3rem));
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-brand-block {
  display: flex;
  align-items: stretch;
  gap: clamp(0.65rem, 1.3vw, 1rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(4.25rem, 7vw, 6rem);
}

.hero-logo-wrap {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.hero-logo {
  width: min(10rem, 40vw);
  height: auto;
  display: block;
}

.hero-logo-white {
  width: clamp(4.5rem, 8vw, 6.8rem);
  height: auto;
  max-width: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  object-fit: contain;
  align-self: stretch;
}

.hero h1 {
  margin: 0;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-content-overlay h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0.05rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
}

.button {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 999px;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}

.button-hero {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
}

.button-hero:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button-hero-secondary {
  background: rgba(13, 94, 82, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.45rem 0 0;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.post-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
}

.post-card {
  display: grid;
  gap: 0.75rem;
}

.post-card-thumb {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eee;
  aspect-ratio: 16 / 9;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-list h2,
.post-list h3 {
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.post-list a {
  color: var(--text);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.2rem 0 0.8rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  margin: 0.2rem 0 0.7rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: color-mix(in srgb, var(--surface) 75%, #f6efe0);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.2;
}

.tag-chip:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.tag-count {
  color: var(--muted);
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0 1.25rem 1.25rem;
  margin: 1.5rem 0 3rem;
  overflow: hidden;
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.66;
  color: #333;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose p,
.prose li {
  line-height: 1.66;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.4;
  color: #222;
}

.post-featured {
  margin: 0 -1.25rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #ece6d7;
}

.post-featured img {
  width: 100%;
  display: block;
  max-height: 34rem;
  object-fit: cover;
}

.post-header {
  padding-top: 1.1rem;
}

.post-map-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.post-map-section h2 {
  margin: 0 0 0.6rem;
}

.js-map-shell {
  display: grid;
  gap: 0.6rem;
}

.map-canvas {
  width: 100%;
  min-height: 320px;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #dfe7ea, #edf2f2);
  display: none;
}

.post-map-canvas {
  min-height: 320px;
}

.map-page-canvas {
  min-height: 520px;
}

.js-map-shell.has-google-key .map-canvas {
  display: block;
}

.map-runtime-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-fallback {
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff;
}

.map-fallback p {
  margin: 0.25rem 0;
}

.js-map-shell.has-google-key .map-fallback {
  display: none;
}

.js-map-shell.map-shell-ready .map-runtime-note {
  display: none;
}

.js-map-shell.map-shell-ready .map-fallback {
  display: none;
}

.js-map-shell.map-shell-error .map-fallback {
  display: block;
}

.js-map-shell.map-shell-error .map-runtime-note {
  display: block;
}

.map-page {
  display: grid;
  gap: 1rem;
  margin-block: 1.25rem 2.5rem;
}

.tag-page {
  margin: 1.25rem 0 2.5rem;
}

.tag-page-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.tag-page-header h1 {
  margin: 0 0 0.25rem;
}

.tag-cloud {
  list-style: none;
  padding: 1rem;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.tag-cloud li {
  margin: 0;
}

.map-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.map-header p {
  margin: 0.4rem 0;
}

.map-frame {
  background: color-mix(in srgb, var(--surface) 88%, #dce7ec);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.8rem;
}

.map-list-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.map-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.map-list article {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.75rem;
  background: #fff;
}

.map-list h3 {
  margin: 0 0 0.2rem;
  line-height: 1.2;
  font-size: 1rem;
}

.coords {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.gm-popup {
  max-width: 260px;
  font: 14px/1.4 Georgia, "Times New Roman", serif;
  color: #1c1b18;
  padding-top: 0;
}

.gm-popup-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.gm-popup > :first-child {
  margin-top: 0;
}

.gm-popup-meta {
  margin: 0.15rem 0;
  color: #5e5a52;
  font-size: 12px;
}

.gm-popup-snippet {
  margin: 0.4rem 0;
  font-size: 13px;
}

.gm-popup-link-row {
  margin: 0.4rem 0 0;
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.gallery-grid.cols-1 {
  grid-template-columns: 1fr;
}

.gallery-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid.cols-3,
.gallery-grid.cols-4,
.gallery-grid.cols-5,
.gallery-grid.cols-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.gallery-item a {
  display: block;
}

.gallery-item img {
  display: block;
  width: 100%;
}

.gallery-item figcaption {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.migration-note {
  border-left: 3px solid var(--accent-2);
  padding-left: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}

@media (max-width: 700px) {
  .hero-fullbleed {
    min-height: 20rem;
  }

  .hero-content-overlay {
    top: auto;
    bottom: 1rem;
    transform: none;
    left: 0.9rem;
    right: 0.9rem;
    width: auto;
  }

  .hero-brand-block {
    gap: 0.6rem;
    align-items: flex-start;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero-logo-white {
    width: 4.2rem;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-logo {
    width: 1.7rem;
    height: 1.7rem;
  }

  .nav-list {
    flex-wrap: wrap;
  }

  .gallery-grid.cols-2,
  .gallery-grid.cols-3,
  .gallery-grid.cols-4,
  .gallery-grid.cols-5,
  .gallery-grid.cols-6 {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 0 0.85rem 0.85rem;
  }

  .post-featured {
    margin: 0 -0.85rem 0.85rem;
  }

  .post-map-canvas {
    min-height: 260px;
  }

  .map-page-canvas {
    min-height: 360px;
  }

  .map-frame {
    padding: 0.6rem;
  }
}
