/* PcFixin' — static rebuild. No WordPress, no plugins. Faithful to the
   Travelify look (banner + dark nav + single content column) but modernized:
   responsive, accessible, dark-mode aware, self-contained. */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #1f2733;
  --muted: #5b6675;
  --accent: #0a66c2;
  --accent-dark: #084d92;
  --nav-bg: #10202e;
  --nav-text: #cdd9e5;
  --nav-text-hover: #ffffff;
  --border: #e3e8ee;
  --maxw: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --surface: #161f29;
    --text: #e6edf3;
    --muted: #9aa7b4;
    --accent: #4f9df0;
    --accent-dark: #7cb5f3;
    --nav-bg: #060c12;
    --nav-text: #b8c4d0;
    --border: #24303c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header banner */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 22px 16px 0;
}
.site-header .banner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-header .banner img {
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
}
.site-title {
  font-size: 2rem; font-weight: 700; margin: 14px 0 2px;
  letter-spacing: -0.01em;
}
.site-title a { color: var(--text); }
.site-title a:hover { text-decoration: none; color: var(--accent); }
.site-tagline { color: var(--muted); font-size: 1rem; margin: 0 0 20px; }

/* Navigation */
.site-nav {
  background: var(--nav-bg);
  position: sticky; top: 0; z-index: 50;
}
.site-nav ul {
  max-width: var(--maxw);
  margin: 0 auto; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.site-nav a {
  display: block; color: var(--nav-text);
  padding: 14px 18px; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.08); color: var(--nav-text-hover);
  text-decoration: none;
}

/* Main content */
main {
  max-width: var(--maxw);
  margin: 0 auto; padding: 40px 20px 20px;
}
.page-title {
  font-size: 1.9rem; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.post-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 26px; }
article p { margin: 0 0 18px; }
article h2 { font-size: 1.35rem; margin: 34px 0 12px; }
article figure { margin: 22px 0; text-align: center; }
article figure.hero { margin: 6px 0 26px; }
article figure.hero img {
  width: 100%; max-height: 360px; object-fit: cover;
  border: 1px solid var(--border); border-radius: 12px;
}
figcaption.credit { color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
figcaption.credit a { color: var(--muted); text-decoration: underline; }
article figure img {
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
article figure figcaption {
  color: var(--muted); font-size: 0.85rem; margin-top: 8px;
}

/* Call-to-action */
.cta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px; margin: 36px 0 10px; text-align: center;
}
.cta h2 { margin: 0 0 8px; font-size: 1.3rem; }
.cta p { margin: 0 0 16px; color: var(--muted); }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 11px 24px; border-radius: 8px; font-weight: 600;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* Cards (help landing links) */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin: 28px 0;
}
.card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: .15s;
}
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 18px; }
.card:not(:has(.card-img)) .card-body { padding-top: 20px; }
.card h3 { margin: 0 0 6px; color: var(--text); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 50px;
  padding: 26px 20px; text-align: center; color: var(--muted); font-size: 0.88rem;
}

@media (max-width: 600px) {
  .site-title { font-size: 1.6rem; }
  .site-nav a { padding: 12px 12px; font-size: 0.9rem; }
  main { padding: 28px 16px; }
}
