/* -------------------------------
   SamuelSwauger.com – Base Styles
   Minimal, high-contrast, black/white aesthetic
   ------------------------------- */

/* Color tokens (easy to tweak) */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #bfbfbf;
  --card: #101010;
  --border: #1a1a1a;
  --accent: #dcdcdc;   /* subtle highlight for focus/hover outlines */
  --link: #9ecbff;     /* soft blue links that read well on black */
}

/* 1) Base layout & typography */
html, body {
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  min-height: 100%;
  /* Font: system stack for fast render, crisp mono-weight look */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 .6rem;
}
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

/* 2) Top navigation with dropdown (matches your site’s minimalist style) */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0,0,0,.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(120%) blur(2px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
}
.brand a {
  color: var(--fg);
  font-weight: 600;
  letter-spacing: .3px;
}

.menu { position: relative; }
.menu-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: #111;
  color: var(--fg);
  border-radius: .6rem;
  padding: .5rem .75rem;
  cursor: pointer;
  font: inherit;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 220px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: .25rem 0;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.menu.open .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: .75rem 1rem;
  color: var(--fg);
  border-bottom: 1px solid #141414;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #111; }

/* 3) Travel blog list (image left, text right) */
.list {
  display: grid;
  gap: 1rem;
}
.card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform .08s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-1px);
  border-color: #262626;
}
.card h3 { margin: 0 0 .25rem; }
.card p { margin: 0; }

/* Responsive: stack image above text on small screens */
@media (max-width: 640px) {
  .card {
    grid-template-columns: 1fr;
  }
}

/* 4) Article page specifics */
.article {
  display: grid;
  gap: 1.25rem;
}

/* Carousel (minimal controls via dots) */
.carousel {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.carousel-track {
  display: flex;
  will-change: transform;
  transition: transform .35s ease;
}
.carousel img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Dots */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: .6rem .5rem .8rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0px solid #3a3a3a;
  background: #121212;
  cursor: pointer;
}
.dot.active { background: #e6e6e6; }

/* 5) Map (Leaflet or similar) */
#map {
  width: 100%;
  height: 380px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #0a0a0a;
}

/* 6) Footer */
.footer {
  color: var(--muted);
  font-size: .9rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* 7) Utility focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 8) Optional: tighter prose width for readability on very wide screens */
.prose {
  max-width: 72ch;
}

/* 9) Optional button/link styles that match the site’s tone */
.button, .btn {
  display: inline-block;
  padding: .55rem .85rem;
  border-radius: .6rem;
  border: 1px solid var(--border);
  background: #121212;
  color: var(--fg);
}
.button:hover, .btn:hover { background: #151515; }