/* Actual Nomad — Editorial Design */
:root {
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --accent: #1B4332;
  --accent-light: #2D6A4F;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --bg: #FAFAF9;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --content-width: 720px;
  --wide-width: 1100px;
}

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

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-light); }

img { display: block; max-width: 100%; }

/* ── Site Header ── */
.site-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

/* ── Homepage Header ── */
.site-header--home {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 5rem 2rem 1rem;
  text-align: center;
}
.site-header--home .logo {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-family: var(--sans);
  font-weight: 600;
}
.home-hero { max-width: 640px; margin: 0 auto; }
.home-tagline {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 2rem;
  font-weight: 400;
}
.home-sub {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
  font-style: normal;
}

/* ── Homepage City Grid ── */
.city-grid-page {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.section-heading {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.city-card {
  background: var(--bg-card);
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s;
}
.city-card:hover { background: #F5F5F4; }
.city-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.city-country {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.city-subhead {
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}
.city-cost {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--bg-card);
  background: var(--accent);
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.empty-state { color: var(--text-muted); font-style: italic; }

/* ── Article Hero (full-width with overlay) ── */
.article-hero-wrap {
  position: relative;
  width: 100%;
  min-height: 500px;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.article-hero-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.article-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}
.article-hero-content {
  max-width: var(--content-width);
  margin: 0 auto;
}
.article-hero-wrap .breadcrumb {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.article-hero-wrap .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.article-hero-wrap .breadcrumb a:hover { color: #fff; }
.article-hero-wrap h1 {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.article-hero-wrap .subheadline {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.5;
}
.hero-credit {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  z-index: 3;
  font-family: var(--sans);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}
.hero-credit a { color: rgba(255,255,255,0.5); text-decoration: none; }
.hero-credit a:hover { color: rgba(255,255,255,0.8); }

/* ── Article Body ── */
.article-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* ── Verdict Box ── */
.verdict-box {
  margin: 2rem 0 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  background: #F0FDF4;
}
.verdict-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin: 0;
}

/* ── Article Layout (sidebar + content) ── */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}
.toc-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
}
.toc-sticky { padding: 0; }
.toc-sticky-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: block;
}
.toc-sticky ol { list-style: none; padding: 0; margin: 0; }
.toc-sticky li { margin: 0; }
.toc-sticky a {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.35rem 0;
  border-bottom: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.toc-sticky a:hover { color: var(--accent); }
.toc-sticky a.active {
  color: var(--accent);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}

/* ── Mobile TOC (inline, hidden on desktop) ── */
.toc-mobile {
  display: none;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.toc-mobile ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.toc-mobile li { margin: 0; }
.toc-mobile a {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: inline-block;
}
.toc-mobile a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Summary Card (At a Glance) ── */
.summary-card {
  margin: 1.25rem 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.summary-card-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.summary-item { display: flex; flex-direction: column; gap: 0.35rem; }
.summary-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.summary-value {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
}
.stars { color: var(--accent); letter-spacing: 0.08em; }
.summary-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-size: 0.75rem;
  margin-right: 0.35rem;
  font-family: var(--sans);
}
.tag-yes { background: #ECFDF5; color: #065F46; }
.tag-no { background: #FEF2F2; color: #991B1B; }

/* ── TOC (pill nav) ── */
.toc {
  margin: 2rem 0 2.5rem;
  padding: 0;
  border: none;
  background: none;
}
.toc-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.toc ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.toc li { margin: 0; }
.toc a {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
}
.toc a:hover {
  border-color: var(--accent);
  background: #F0FDF4;
  color: var(--accent);
}

/* ── Article Sections ── */
.article-section { margin: 3.5rem 0; }
.article-section h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.25;
}
.article-section h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.article-section p { margin-bottom: 1.15rem; }

/* ── Section Photos ── */
.section-photo { margin: 1.5rem 0 2rem; }
.section-photo img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 2px;
}
.photo-credit {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  text-align: left;
}
.photo-credit a { color: var(--text-muted); text-decoration: none; }

/* ── Neighborhoods ── */
.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.neighborhood-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.neighborhood-card:last-child { border-bottom: none; }
.neighborhood-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.neighborhood-card .tagline {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}
.neighborhood-card dl {
  font-family: var(--sans);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.neighborhood-card dt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.neighborhood-card dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.9rem; }
.neighborhood-dl-group { display: flex; flex-direction: column; }
.honest-take {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  background: #F0FDF4;
  padding: 0.85rem 1.25rem;
  margin-top: 0.25rem;
}

/* ── Cost Table ── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9rem;
  margin: 1.25rem 0;
}
.cost-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.cost-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
.cost-table tbody tr:nth-child(even) td { background: #F9FAFB; }
.cost-table .total-row td {
  font-weight: 700;
  border-top: 2px solid var(--text);
  border-bottom: none;
  background: none;
  padding-top: 0.75rem;
}
.currency-note { font-size: 0.75rem; color: var(--text-muted); font-style: italic; font-family: var(--sans); margin-top: 0.5rem; }

/* ── Honest Negatives ── */
.negatives-list { display: flex; flex-direction: column; gap: 1.25rem; }
.negative-item {
  border-left: 3px solid #DC2626;
  padding-left: 1.25rem;
}
.negative-item strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.3rem;
}
.negative-item p { font-size: 0.95rem; }

/* ── FAQ ── */
.faq-section .faq-item { margin-bottom: 2rem; }
.faq-section .faq-item h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.faq-section .faq-item p { font-size: 1rem; }

/* ── Lead Paragraph ── */
.lead-paragraph {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── Related Footer ── */
.related-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}
.related-footer-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.related-footer-link {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.related-footer-link:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toc-sidebar { display: none; }
  .toc-mobile { display: block; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .article-hero-wrap { min-height: 400px; }
  .article-hero-wrap h1 { font-size: 2rem; }
  .article-hero-wrap .subheadline { font-size: 1.05rem; }
  .article-hero-overlay { padding: 3rem 1.25rem 2rem; }
  .article-body { padding: 0 1.25rem 4rem; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .home-tagline { font-size: 1.75rem; }
  .site-header--home { padding: 3rem 1.25rem 0.5rem; }
  .city-grid-page { padding: 2rem 1.25rem 4rem; }
  .city-grid { grid-template-columns: 1fr; }
  .city-card { padding: 1.5rem; }
  .city-name { font-size: 1.5rem; }
  .neighborhood-card dl { gap: 1.25rem; }
  .verdict-box { padding: 1.25rem; }
  .verdict-text { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .summary-value { font-size: 0.85rem; }
  .article-hero-wrap { min-height: 420px; }
  .article-hero-wrap h1 { font-size: 1.75rem; }
}
