/* =========================================================
   City Guide — editorial clone of Weblium template 227
   Tokens per CLAUDE.md; type/colour measured off the live demo.
   ========================================================= */

:root {
  --bg:      #F6F5F1;
  --surface: #FFFFFF;
  --ink:     #1D1F23;
  --muted:   #848B99;
  --body:    #676E7E;
  --rule:    #CACACA;
  --band:    #F1F0EC;
  --accent:  #FC4500;

  --display: "Frank Ruhl Libre", Georgia, serif;
  --sans:    "Lato", sans-serif;

  --wrap:    1200px;
  --gutter:  15px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
}

/* ---------- shared bits ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow.light { color: #fff; }
.ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

.meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.meta span { margin-left: 14px; }
.meta.light { color: rgba(255,255,255,.84); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 19px 54px;
  transition: background .18s ease;
}
.btn:hover { background: #e03d00; }

.section { padding: 90px 0; }
.section.pt0 { padding-top: 0; }
.band { background: var(--band); }

.rule-heading {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 50px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--ink);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 92px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: .02em;
}
.logo-mark { width: 30px; height: 30px; color: var(--accent); fill: var(--accent); flex: none; }

.main-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 15px;
  color: #fff;
}
.main-nav a { transition: color .16s ease; }
.main-nav a:hover { color: var(--accent); }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,.45);
  display: grid; place-items: center;
  transition: border-color .16s ease, color .16s ease;
}
.socials svg { width: 13px; height: 13px; fill: #fff; }
.socials a:hover { border-color: var(--accent); }
.socials a:hover svg { fill: var(--accent); }
.socials.accent a { border-color: var(--accent); }
.socials.accent svg { fill: var(--accent); }

.burger { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  padding-top: 145px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29,31,35,.62), rgba(29,31,35,.62)),
    url("https://res2.weblium.site/res/5ef31083884bd000214405bb/5ef47bce90cc0e0021901ec1?nowebp");
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
}
.hero-inner { position: relative; }

.hero h1 {
  font-size: 90px;
  line-height: 1.1;
  font-weight: 900;
  color: #fff;
  margin: 0 0 34px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.84);
  margin: 0 0 40px;
}

.cat-strip {
  position: relative;
  list-style: none;
  margin: 120px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.cat-strip li { border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 18px; }
.cat-strip .eyebrow { color: #fff; margin-bottom: 14px; }
.cat-strip a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: #fff;
  transition: color .16s ease;
}
.cat-strip a:hover { color: var(--accent); }

/* ---------- feature ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  gap: 60px;
  align-items: center;
}
.feature-text h3 {
  font-size: 38px;
  line-height: 1.22;
  margin: 20px 0 22px;
}
.feature-text h3 a { transition: color .16s ease; }
.feature-text h3 a:hover { color: var(--accent); }
.feature-text p { margin: 0 0 22px; }
.feature-img img { width: 100%; height: 420px; object-fit: cover; }

/* ---------- tabs ---------- */

.tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 46px;
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  padding: 0 0 14px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }

/* ---------- cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card-img { display: block; overflow: hidden; }
.card-img img {
  width: 100%; height: 245px; object-fit: cover;
  transition: transform .5s ease;
}
.card-img:hover img { transform: scale(1.04); }

.card .eyebrow { margin: 22px 0 12px; }
.card h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.card h3 a { transition: color .16s ease; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0 0 16px; font-size: 15px; }
.card .meta { border-top: 1px solid var(--rule); padding-top: 14px; }

/* ---------- overlay cards ---------- */

.overlay-card { position: relative; overflow: hidden; }
.overlay-card img { width: 100%; height: 100%; object-fit: cover; }
.overlay-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(29,31,35,.85) 0%, rgba(29,31,35,.15) 55%, rgba(29,31,35,0) 100%);
}
.overlay-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 34px;
}
.overlay-body h3 {
  color: #fff;
  font-size: 26px;
  line-height: 1.3;
  margin: 14px 0 12px;
}
.overlay-body h3.big { font-size: 40px; }
.overlay-card.tall { min-height: 560px; }
.overlay-card.wide img { height: 520px; }

/* ---------- experience grid ---------- */

.grid-exp {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 44px 0 0;
}
.dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rule);
}
.dots span.is-active { background: var(--accent); }

.link-row {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.link-row li { border-top: 1px solid var(--rule); padding-top: 16px; }
.link-row .eyebrow { color: var(--muted); margin-bottom: 10px; }
.link-row a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  transition: color .16s ease;
}
.link-row a:hover { color: var(--accent); }

/* ---------- quote ---------- */

.quote-section {
  padding: 96px 0;
  text-align: center;
  background: var(--bg);
}
.quote-mark { width: 34px; height: 34px; fill: var(--accent); margin-bottom: 26px; }
.quote-section blockquote {
  max-width: 760px;
  margin: 0 auto 26px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.5;
  color: var(--ink);
}
.quote-cite {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- getaway ---------- */

.hero-slider { position: relative; margin-bottom: 60px; }
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: opacity .16s ease;
}
.arrow:hover { opacity: 1; }
.arrow.prev { left: 6px; }
.arrow.next { right: 6px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.split-img img { width: 100%; height: 470px; object-fit: cover; }

.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-list li { border-bottom: 1px solid var(--rule); padding: 26px 0; }
.stack-list li:first-child { padding-top: 0; }
.stack-list h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 12px 0 12px;
}
.stack-list h3 a { transition: color .16s ease; }
.stack-list h3 a:hover { color: var(--accent); }

/* ---------- blog posts ---------- */

.post .card-img img { height: 230px; }
.post-date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .05em;
  margin: 20px 0 10px;
}
.post h3 { font-size: 21px; line-height: 1.3; margin: 0 0 12px; }
.post h3 a { transition: color .16s ease; }
.post h3 a:hover { color: var(--accent); }
.post p { font-size: 15px; margin: 0 0 18px; }
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--rule);
  flex: none;
}

/* ---------- cta ---------- */

.cta {
  background: var(--band);
  padding: 96px 0;
  text-align: center;
}
.cta h2 {
  font-size: 46px;
  line-height: 1.2;
  margin: 0 0 26px;
}
.cta p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
}
.cta a { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); padding: 34px 0 26px; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.footer-legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-legal p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: right;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .hero h1 { font-size: 62px; }
  .grid-exp { grid-template-columns: 1fr 1fr; }
  .overlay-card.tall { min-height: 420px; }
  .cat-strip, .link-row { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 30px; }
  .feature, .split { grid-template-columns: 1fr; gap: 34px; }
  .main-nav { gap: 22px; font-size: 14px; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .main-nav, .socials { display: none; }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 34px; height: 34px;
    background: none; border: 0; cursor: pointer;
    padding: 0;
  }
  .burger span { display: block; height: 2px; background: #fff; }

  .hero { padding-top: 72px; padding-bottom: 44px; }
  .hero h1 { font-size: 40px; margin-bottom: 22px; }
  .hero h1 br { display: none; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .btn { padding: 16px 40px; width: 100%; text-align: center; }

  .cat-strip { grid-template-columns: 1fr; margin-top: 56px; gap: 22px; }
  .grid-3, .grid-exp { grid-template-columns: 1fr; gap: 34px; }
  .link-row { grid-template-columns: 1fr; }

  .rule-heading { font-size: 15px; margin-bottom: 32px; }
  .feature-text h3 { font-size: 27px; }
  .feature-img img, .split-img img { height: 240px; }

  .quote-section { padding: 60px 0; }
  .quote-section blockquote { font-size: 19px; }

  .overlay-card.wide img { height: 380px; }
  .overlay-body { padding: 22px; }
  .overlay-body h3, .overlay-body h3.big { font-size: 23px; }
  .overlay-body h3.big br { display: none; }

  .cta { padding: 60px 0; }
  .cta h2 { font-size: 30px; }
  .cta h2 br { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-inner .main-nav,
  .footer-inner .socials { display: flex; }
  .footer-inner .main-nav { flex-wrap: wrap; margin-left: 0; }
  .footer-legal p { text-align: left; }
}

/* =========================================================
   CMS additions — long-form article, archives, search.
   Same tokens and rhythm as the template above; these are the
   views the original city-guide layout had no equivalent for.
   ========================================================= */

.wrap.narrow { max-width: 760px; }

/* ---- header search ---- */
.site-search { margin-left: 22px; }
.site-search input {
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  color: #fff; font: 14px var(--sans);
  padding: 5px 2px; width: 130px;
}
.site-search input::placeholder { color: rgba(255,255,255,.55); }
.site-search input:focus { outline: 0; border-bottom-color: var(--accent); }

/* ---- long-form ---- */
.longform { padding: 76px 0 90px; }
.longform-head { margin-bottom: 40px; }
.longform-head .eyebrow { color: var(--accent); margin-bottom: 20px; text-decoration: none; }
.longform h1 {
  font-size: 54px; line-height: 1.15; font-weight: 700;
  margin: 0 0 22px; letter-spacing: -.01em;
}
.standfirst {
  font-family: var(--display);
  font-size: 21px; line-height: 1.55; color: var(--body);
  margin: 0 0 22px;
}
.longform-cover { width: 100%; height: 460px; object-fit: cover; margin-bottom: 46px; }

/* Reading column. Long philosophical prose needs a tighter measure
   and more generous leading than the card copy above. */
.prose { font-size: 18px; line-height: 1.75; color: #33383F; }
.prose > * + * { margin-top: 1.35em; }
.prose p { margin: 0; }
.prose h2 { font-size: 32px; line-height: 1.25; margin-top: 1.9em; }
.prose h3 { font-size: 24px; line-height: 1.3; margin-top: 1.7em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--display); font-style: italic;
  font-size: 20px; line-height: 1.55; color: var(--ink);
}
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: .5em; }
.prose img { margin: 2em 0; width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.6em 0; }
.prose code {
  background: #ECEBE6; padding: 2px 6px; font-size: .88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre { background: var(--ink); color: #EDEDED; padding: 20px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; }

/* Footnotes — essential for this kind of writing, so they get real styling
   rather than markdown-it's defaults. */
.prose .footnotes {
  margin-top: 3.4em; padding-top: 1.6em;
  border-top: 1px solid var(--rule);
  font-size: 15px; line-height: 1.7; color: var(--muted);
}
.prose .footnotes ol { padding-left: 20px; }
.prose .footnotes li + li { margin-top: .7em; }
.prose .footnotes p { display: inline; }
.prose .footnote-ref a {
  text-decoration: none; font-weight: 700; font-size: .75em;
  vertical-align: super; padding: 0 2px;
}
.prose .footnote-backref { text-decoration: none; }

/* ---- tags, post nav ---- */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 48px 0 0; }
.tag-list a {
  display: inline-block; border: 1px solid var(--rule);
  padding: 6px 13px; font-size: 12.5px; color: var(--body);
  transition: border-color .16s ease, color .16s ease;
}
.tag-list a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.post-nav-next { text-align: right; }
.post-nav-label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); margin-bottom: 7px;
}
.post-nav a { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); }
.post-nav a:hover { color: var(--accent); }

/* ---- topic index (tag cloud with counts) ---- */
.topic-index { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 46px; }
.topic-index li {
  break-inside: avoid;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.topic-index a { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.topic-index a:hover { color: var(--accent); }
.topic-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- search ---- */
.search-big { display: flex; gap: 10px; margin-bottom: 40px; max-width: 620px; }
.search-big input {
  flex: 1; border: 1px solid var(--rule); background: var(--surface);
  padding: 15px 16px; font: 16px var(--sans); color: var(--ink);
}
.search-big input:focus { outline: 0; border-color: var(--accent); }
.search-big .btn { padding: 15px 30px; }
.results li:first-child { padding-top: 0; }
.results h3 { margin-bottom: 8px; }
.results p { margin: 0 0 8px; font-size: 15px; }

/* ---- pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 54px; }
.pagination a {
  min-width: 40px; padding: 9px 12px; text-align: center;
  border: 1px solid var(--rule); font-size: 14px; color: var(--body);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* ---- empty / placeholder states ---- */
.img-placeholder { width: 100%; height: 245px; background: #E4E3DE; }
.img-placeholder.full { position: absolute; inset: 0; height: 100%; }
.card .img-placeholder, .post .img-placeholder { height: 245px; }
.feature-img .img-placeholder, .split-img .img-placeholder { height: 420px; position: static; }
.empty-slot { color: var(--muted); font-style: italic; font-size: 14px; }
.empty-state { text-align: center; padding: 60px 0; }
.empty-state h2 { font-size: 32px; margin-bottom: 14px; }
.empty-state a { color: var(--accent); }

/* Category strip reused on the light background needs dark text. */
.strip-section { padding: 60px 0 0; }
.cat-strip.on-light li { border-bottom-color: var(--rule); }
.cat-strip.on-light .eyebrow, .cat-strip.on-light a { color: var(--ink); }
.cat-strip.on-light a:hover { color: var(--accent); }

@media (max-width: 1024px) { .topic-index { columns: 2; } }
@media (max-width: 720px) {
  .longform { padding: 44px 0 60px; }
  .longform h1 { font-size: 33px; }
  .standfirst { font-size: 18px; }
  .longform-cover { height: 220px; margin-bottom: 30px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .topic-index { columns: 1; }
  .post-nav { grid-template-columns: 1fr; gap: 20px; }
  .post-nav-next { text-align: left; }
  .site-search { display: none; }
  .search-big { flex-direction: column; }
}

/* markdown-it-footnote emits its own <hr class="footnotes-sep">; the .footnotes
   border-top already draws that rule, so the separator would double it. */
.prose hr.footnotes-sep { display: none; }
.prose .footnotes { margin-top: 3em; }
