:root {
  --jbb-orange: #ff6b35;
  --jbb-amber: #ffad42;
  --jbb-ink: #0d0f12;
  --jbb-panel: #171a1f;
  --jbb-panel-soft: #20242b;
  --jbb-line: rgba(255, 255, 255, 0.12);
  --jbb-muted: #aeb4bd;
}

html { scroll-behavior: smooth; }

body.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #f5f6f7;
  background:
    radial-gradient(circle at 15% -10%, rgba(255, 107, 53, 0.18), transparent 32rem),
    linear-gradient(180deg, #111318 0%, var(--jbb-ink) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main { flex: 1; }
a { color: #ffb27c; }
a:hover { color: #ffd1b0; }

.skip-link { z-index: 2000; padding: .75rem 1rem; background: #fff; color: #111; }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(13, 15, 18, .9); border-bottom: 1px solid var(--jbb-line); backdrop-filter: blur(16px); }
.site-header .navbar { min-height: 72px; }
.brand-mark { width: 62px; height: 62px; object-fit: contain; }
.nav-link { color: #d9dde2; border-radius: 999px; padding: .55rem .85rem !important; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255, 107, 53, .16); }
.language-link { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-left: .35rem; border: 1px solid rgba(255, 107, 53, .5); border-radius: 50%; color: #fff; text-decoration: none; font-size: .8rem; font-weight: 800; letter-spacing: .08em; }

.hero { padding: clamp(3rem, 7vw, 7rem) 0 3rem; }
.eyebrow { color: var(--jbb-amber); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
.hero h1 { max-width: 12ch; font-size: clamp(2.8rem, 7vw, 6.8rem); line-height: .94; letter-spacing: -.06em; }
.hero-copy { max-width: 42rem; color: #c7ccd3; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.accent { color: var(--jbb-orange); }

.location-strip { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.location-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem .9rem; border: 1px solid var(--jbb-line); border-radius: 999px; background: rgba(255,255,255,.05); }
.location-pill strong { color: #fff; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #54d98c; box-shadow: 0 0 0 .35rem rgba(84,217,140,.12); }

.profile-panel, .content-panel, .travel-card, .admin-card { border: 1px solid var(--jbb-line); background: linear-gradient(145deg, rgba(33,37,44,.96), rgba(20,23,28,.96)); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.profile-panel { overflow: hidden; border-radius: 1.5rem; }
.profile-photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.profile-copy { padding: clamp(1.5rem, 4vw, 3.5rem); }
.profile-copy p { color: #c6cbd2; line-height: 1.75; }
.social-grid { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.social-link { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem .9rem; border: 1px solid var(--jbb-line); border-radius: .8rem; color: #fff; text-decoration: none; background: rgba(255,255,255,.04); }
.social-link:hover { border-color: rgba(255,107,53,.65); background: rgba(255,107,53,.12); }

.page-hero { padding: 4rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.045em; }
.page-hero p { max-width: 42rem; color: var(--jbb-muted); font-size: 1.15rem; }
.travel-map { height: min(62vh, 620px); min-height: 420px; border: 1px solid var(--jbb-line); border-radius: 1.4rem; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.map-marker { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: var(--jbb-orange); box-shadow: 0 5px 16px rgba(0,0,0,.4); font-size: 1.25rem; }
.map-marker.home { width: 48px; height: 48px; background: linear-gradient(135deg, var(--jbb-orange), var(--jbb-amber)); }

.timeline { position: relative; max-width: 860px; margin: 4rem auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--jbb-orange), rgba(255,107,53,.12)); }
.timeline-entry { position: relative; width: calc(50% - 2.25rem); margin-bottom: 2rem; }
.timeline-entry.timeline-right { margin-left: calc(50% + 2.25rem); }
.timeline-entry::after { content: ""; position: absolute; top: 1.6rem; right: -2.72rem; width: .9rem; height: .9rem; border: 3px solid var(--jbb-ink); border-radius: 50%; background: var(--jbb-orange); }
.timeline-entry.timeline-right::after { right: auto; left: -2.72rem; }
.timeline-entry.home-entry { width: 58%; margin-left: 21%; }
.timeline-entry.home-entry::after { left: 50%; right: auto; transform: translateX(-50%); top: -.46rem; }
.travel-card { padding: 1.25rem; border-radius: 1rem; }
.travel-card.tentative { border-style: dashed; border-color: rgba(255,193,7,.7); }
.travel-place { display: flex; align-items: flex-start; gap: .85rem; }
.travel-flag { font-size: 2rem; line-height: 1; }
.travel-meta { color: var(--jbb-muted); }
.travel-mode { position: relative; z-index: 2; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: #23272e; border: 1px solid var(--jbb-line); }

.content-panel { padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.25rem; }
.content-panel h2, .content-panel h3 { margin-top: 1.6em; }
.content-panel p, .content-panel li { color: #c8cdd4; line-height: 1.7; }
.content-panel h2:first-child { margin-top: 0; }
.site-footer { margin-top: 5rem; padding: 2rem 0; color: var(--jbb-muted); background: #0a0c0f; border-top: 1px solid var(--jbb-line); }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { color: #d7dbe0; text-decoration: none; }
.admin-header { background: #0a0c0f; border-bottom: 1px solid var(--jbb-line); }
.admin-body .table { --bs-table-bg: transparent; }
.admin-body .form-control, .admin-body .form-select { background-color: #111419; border-color: rgba(255,255,255,.18); color: #fff; }
.admin-body .form-control:focus, .admin-body .form-select:focus { border-color: var(--jbb-orange); box-shadow: 0 0 0 .2rem rgba(255,107,53,.2); }
.admin-body .list-group-item:hover { background: rgba(255,107,53,.1) !important; }

@media (max-width: 767.98px) {
  .brand-mark { width: 52px; height: 52px; }
  .nav-link { padding: .45rem .55rem !important; font-size: .92rem; }
  .hero { padding-top: 3rem; }
  .profile-photo { min-height: 360px; max-height: 520px; }
  .travel-map { min-height: 360px; }
  .timeline { padding-left: 2.5rem; }
  .timeline::before { left: 1rem; transform: none; }
  .timeline-entry, .timeline-entry.timeline-right, .timeline-entry.home-entry { width: 100%; margin-left: 0; }
  .timeline-entry::after, .timeline-entry.timeline-right::after, .timeline-entry.home-entry::after { left: -1.94rem; right: auto; top: 1.4rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
