/* No Not Jeff: travel magazine theme */
:root {
  --orange: #e0812f;
  --orange-dark: #c2671a;
  --ink: #1f1c18;
  --ink-soft: #4a443c;
  --muted: #857c70;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #ebe4d8;
  --display: "Lora", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 54px; height: auto; transform: rotate(-4deg); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-tag { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--orange-dark); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 4px 8px; }

.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--orange-dark); }
.btn-ghost { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.85); }
.btn-ghost:hover { background: rgba(255,255,255,0.28); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.62) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 64px; display: flex; justify-content: flex-end; }
.hero-text { max-width: 560px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; margin: 0 0 26px; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-credit { position: absolute; left: 24px; bottom: 18px; z-index: 1; font-size: 0.75rem; color: rgba(255,255,255,0.7); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.section-head a { font-size: 0.9rem; font-weight: 600; color: var(--orange-dark); text-decoration: none; white-space: nowrap; }

.kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-dark); }
.meta { font-size: 0.85rem; color: var(--muted); }

/* Featured (latest) story */
.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; text-decoration: none; }
.featured-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured:hover .featured-img img { transform: scale(1.03); }
.featured h3 { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; margin: 10px 0 14px; letter-spacing: -0.015em; }
.featured p { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 16px; }
.read-more { font-weight: 600; color: var(--orange-dark); }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); margin-bottom: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { font-family: var(--display); font-size: 1.32rem; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -0.01em; }
.card:hover h3 { color: var(--orange-dark); }
.card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.grid-compact { grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.grid-compact .card-img { aspect-ratio: 1 / 1; }
.grid-compact h3 { font-size: 1.12rem; }

/* About strip */
.about-strip { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; margin-top: 80px; }
.about-strip img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 5px solid var(--paper); box-shadow: 0 0 0 2px var(--orange); }
.about-strip h2 { font-family: var(--display); margin: 0 0 10px; font-size: 1.9rem; }
.about-strip p { margin: 0 0 14px; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); }

/* Subscribe band */
.subscribe-band { background: var(--orange); color: #fff; margin-top: 88px; padding: 64px 0; }
.subscribe-band .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.subscribe-band h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; margin: 0 0 10px; }
.subscribe-band p { margin: 0; color: rgba(255,255,255,0.92); font-size: 1.05rem; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input { flex: 1 1 160px; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 0; font: inherit; font-size: 0.95rem; color: var(--ink); }
.signup button { background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.signup button:hover { background: #000; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 48px 0 40px; font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 64px; transform: rotate(-4deg); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Post page ---------- */
.post-head { max-width: 780px; margin: 0 auto; padding: 64px 24px 32px; text-align: center; }
.post-head h1 { font-family: var(--display); font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 18px; }
.post-head .meta { display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-head .meta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.post-cover { max-width: 1100px; margin: 0 auto 48px; padding: 0 24px; }
.post-cover img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 14px; background: #efe9df; }

.prose { max-width: 680px; margin: 0 auto; padding: 0 24px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; color: #2a2621; }
.prose p { margin: 0 0 1.3em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); line-height: 1.2; margin: 2em 0 0.6em; color: var(--ink); }
.prose a { color: var(--orange-dark); }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 22px; border-left: 4px solid var(--orange); font-style: italic; color: var(--ink-soft); }
.prose img { border-radius: 10px; margin: 2em auto 0.5em; cursor: zoom-in; max-height: 85vh; width: auto; }
.prose p:has(> img) { margin: 0; }

/* Galleries: natural shapes, no cropping */
.prose .gallery { columns: 3 200px; column-gap: 12px; margin: 2.2em -100px; }
.prose .gallery img { margin: 0 0 12px; width: 100%; max-height: none; break-inside: avoid; }
.prose .gallery p { margin: 0; break-inside: avoid; }

.post-end { max-width: 780px; margin: 64px auto 0; padding: 0 24px; }
.next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.next-prev a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.next-prev a:hover { border-color: var(--orange); }
.next-prev .meta { display: block; margin-bottom: 4px; }
.next-prev strong { font-family: var(--display); font-size: 1.1rem; }
.next-prev a:last-child { text-align: right; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15, 13, 10, 0.94); display: none; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-compact { grid-template-columns: repeat(2, 1fr); }
  .prose .gallery { margin-left: 0; margin-right: 0; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1rem; }
  .nav .btn { margin-top: 8px; padding: 10px 20px; }
  .menu-toggle { display: block; }
  .brand-tag { display: none; }
  .featured { grid-template-columns: 1fr; gap: 20px; }
  .about-strip { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .about-strip img { margin: 0 auto; width: 140px; height: 140px; }
  .subscribe-band .wrap { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
  .section-head { flex-wrap: wrap; }
  .prose { font-size: 1.1rem; }
  .prose .gallery { columns: 2 140px; }
  .next-prev { grid-template-columns: 1fr; }
  .next-prev a:last-child { text-align: left; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .grid, .grid-compact { grid-template-columns: 1fr; }
  .grid-compact { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .brand img { width: 44px; }
  .brand-name { font-size: 1.15rem; }
  .hero .wrap { padding-bottom: 44px; }
}

/* ---------- Extras for the real site ---------- */
.hp { position: absolute; left: -5000px; }

/* Signup on light backgrounds */
.about-strip .signup input, .signup-box .signup input { border: 1px solid var(--line); background: var(--paper); }
.signup-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 1.5em 0 2em; font-family: var(--sans); }
.signup-box .signup button, .about-strip .signup button { background: var(--orange); }
.signup-box .signup button:hover, .about-strip .signup button:hover { background: var(--orange-dark); }
.post-end .about-strip p { margin-bottom: 16px; }

/* Page headers */
.post-head .intro { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); margin: 0 auto; max-width: 36rem; }
.post-head a.kicker { text-decoration: none; }
.page .prose { padding-bottom: 24px; }
.prose-wide { max-width: 900px; }
.category-page .grid { margin-bottom: 24px; }

/* Captions: an image followed by an italic line */
.prose p > img + em { display: block; text-align: center; font-family: var(--sans); font-size: 0.88rem; font-style: normal; color: var(--muted); margin: 10px 0 2.2em; }
.prose p:has(> img) { margin: 0 0 1.3em; }
.prose img { height: auto; }

/* Galleries: two photos side by side, three or more in columns */
.prose .gallery:not(:has(> p:nth-child(3))) { columns: 2 200px; }
.prose .gallery img { cursor: zoom-in; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lists in posts */
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* About page photo */
.prose img.about-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; margin: 0 auto 2em; box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--orange); cursor: default; }

/* Archive */
.archive-year { font-family: var(--display); font-size: 1.8rem; margin: 1.6em 0 0.4em; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.archive-list { list-style: none; padding: 0 !important; margin: 0; }
.archive-list li { margin: 0; border-bottom: 1px solid var(--line); }
.archive-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; text-decoration: none; color: var(--ink); align-items: baseline; }
.archive-list a:hover .archive-title { color: var(--orange-dark); }
.archive-title { font-family: var(--display); font-size: 1.15rem; }
.archive-list .meta { white-space: nowrap; font-family: var(--sans); }

/* Countries map */
#visited-map { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }

/* Footer text colour */
.site-footer strong { color: #fff; }

/* Next and previous links on phones */
@media (max-width: 760px) {
  .archive-list a { flex-direction: column; gap: 2px; }
  .post-head { padding-top: 40px; }
  .post-cover { margin-bottom: 32px; }
}

/* Center every photo in a story, including narrow portrait ones */
.prose p:has(> img) { text-align: center; }
.prose img { margin-left: auto; margin-right: auto; }
.prose .gallery p:has(> img) { text-align: left; }

/* Card for a story with no photos */
.card-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--orange); }
.card-noimg img { width: 45%; height: auto; transform: rotate(-4deg); }
