/* Barrio Antiguo — editorial city guide */

:root {
  --paper: #ffffff;
  --paper-2: #f7f4ee;
  --paper-3: #efeae0;
  --ink: #0c0a08;
  --ink-2: #2d2a25;
  --ink-3: #6b6660;
  --ink-4: #aaa49b;
  --rule: #d9d3c4;
  --rule-2: #e8e2d4;
  --accent: #b8431f;
  --accent-2: #8b3115;
  --gold: #b08a3e;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-feature-settings: "kern" 1, "ss01" 1, "cv11" 1, "tnum" 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 18;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s, opacity .18s;
}
a:hover { color: var(--accent); }

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ======================================================
   HEADER
   ====================================================== */
.site-header {
  padding: 1.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  z-index: 60;
  border-bottom: 1px solid var(--rule-2);
}
.site-header .crest {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.site-header .crest::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.55rem;
  vertical-align: 0.5px;
}
.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 13px;
}
.site-header nav a {
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.active { color: var(--ink); }
.site-header nav a.active::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  background: var(--ink);
}

/* ======================================================
   HERO (homepage)
   ====================================================== */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  min-height: 640px;
  max-height: 900px;
  background: var(--ink);
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: contrast(1.06) saturate(1.05) brightness(0.85);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.6) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.3) 100%);
}
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem 3.5rem;
  color: #fff;
  z-index: 2;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
}
.hero-top .right { font-feature-settings: "tnum" 1; }
.hero-bottom { max-width: 1200px; }
.hero-bottom .eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  opacity: 0.85;
  font-weight: 500;
}
.hero-bottom h1 {
  font-weight: 500;
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 1.6rem;
  max-width: 14ch;
  font-variation-settings: "opsz" 144;
}
.hero-bottom h1 em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.hero-bottom .dek {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.4;
  max-width: 50ch;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ======================================================
   EDITORIAL INTRO
   ====================================================== */
.editorial {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 4rem 6rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
}
.editorial .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}
.editorial .label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1rem;
}
.editorial .body {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.012em;
  font-weight: 400;
}
.editorial .body p {
  margin-bottom: 1.4rem;
}
.editorial .body p:last-child { margin-bottom: 0; }
.editorial .body em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

/* ======================================================
   FEATURED GUIDES (homepage — 2-up grid)
   ====================================================== */
.featured-guides {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 6rem;
}
.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.guides-grid.three-up {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) {
  .guides-grid.three-up { grid-template-columns: 1fr 1fr; }
}
.guide-mini {
  display: block;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s, transform .25s;
}
.guide-mini:hover {
  border-color: var(--ink-3);
  color: var(--ink);
  transform: translateY(-2px);
}
.guide-mini-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.guide-mini-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.05);
  transition: transform .8s ease;
}
.guide-mini:hover .guide-mini-photo img { transform: scale(1.04); }
.guide-mini-text {
  padding: 2rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.guide-mini-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.guide-mini h3 {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
}
.guide-mini h3 em { font-style: italic; font-weight: 400; color: var(--ink-2); }
.guide-mini p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.guide-mini-read {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  width: fit-content;
}
@media (max-width: 920px) {
  .featured-guides { padding: 0 1.4rem 4rem; }
  .guides-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .guide-mini-text { padding: 1.6rem 1.4rem 1.8rem; }
}

/* ======================================================
   FEATURED GUIDE (homepage — large variant, kept for backwards compat)
   ====================================================== */
.featured-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 6rem;
}
.guide-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  transition: border-color .2s, transform .25s;
}
.guide-card:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.guide-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.guide-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.05);
  transition: transform .8s ease;
}
.guide-card:hover .guide-photo img { transform: scale(1.04); }
.guide-text {
  padding: 3rem 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}
.guide-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.guide-text h2 {
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.guide-text h2 em { font-style: italic; font-weight: 400; color: var(--ink-2); }
.guide-dek {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
}
.guide-read {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  width: fit-content;
}
@media (max-width: 920px) {
  .featured-guide { padding: 0 1.4rem 4rem; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-photo { aspect-ratio: 16/10; }
  .guide-text { padding: 2rem 1.6rem 2.2rem; }
}

/* ======================================================
   CHAPTERS (homepage directory)
   ====================================================== */
.chapters {
  border-top: 1px solid var(--rule-2);
  background: var(--paper);
}
.chapters-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}
.chapters-head h2 {
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-variation-settings: "opsz" 96;
}
.chapters-head h2 em {
  font-style: italic;
  font-weight: 400;
}
.chapters-head .meta {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  text-align: right;
  font-feature-settings: "tnum" 1;
}

.chapter-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 4rem 6rem;
}
.chapter {
  display: grid;
  grid-template-columns: 64px 1fr 220px 200px 24px;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem 0;
  border-top: 1px solid var(--rule-2);
  transition: padding .25s, color .15s;
  position: relative;
  color: var(--ink);
}
.chapter:last-child { border-bottom: 1px solid var(--rule-2); }
.chapter::before {
  content: "";
  position: absolute;
  inset: 0 -1.5rem;
  background: var(--paper-2);
  opacity: 0;
  transition: opacity .25s;
  border-radius: 4px;
  z-index: -1;
}
.chapter:hover::before { opacity: 1; }
.chapter:hover { padding-left: 1.5rem; padding-right: 1.5rem; color: var(--ink); }
.chapter:hover .arrow { transform: translateX(8px); color: var(--accent); }

.chapter .num {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  font-weight: 500;
  font-feature-settings: "tnum" 1;
}
.chapter .title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: "opsz" 72;
}
.chapter .title em {
  font-style: italic;
  font-weight: 400;
}
.chapter .blurb {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.45;
}
.chapter .count {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  text-align: right;
  font-feature-settings: "tnum" 1;
}
.chapter .arrow {
  font-size: 1.4rem;
  color: var(--ink-4);
  transition: transform .25s, color .15s;
}

/* ======================================================
   PAGE BANNER (interior pages)
   ====================================================== */
.page-banner {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 600px;
  overflow: hidden;
  background: var(--ink);
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05) brightness(0.85);
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.65) 100%);
}
.page-banner .inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem;
  color: #fff;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}
.page-banner .crumbs {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
}
.page-banner .crumbs a { opacity: 0.85; }
.page-banner .crumbs a:hover { color: #fff; opacity: 1; }
.page-banner .crumbs .sep { margin: 0 0.5rem; opacity: 0.5; }
.page-banner h1 {
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  max-width: 18ch;
  font-variation-settings: "opsz" 96;
}
.page-banner h1 em { font-style: italic; font-weight: 400; }
.page-banner .meta {
  display: flex;
  gap: 2rem;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.92;
  font-feature-settings: "tnum" 1;
}

/* ======================================================
   INTRO ROW (per-page editorial)
   ====================================================== */
.intro-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
}
.intro-row .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.intro-row .label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 0.9rem;
}
.intro-row p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.intro-row p + p { margin-top: 0.8rem; }

/* ======================================================
   CONTROLS (search + chips)
   ====================================================== */
.controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.controls .search-row {
  position: relative;
}
.controls input[type=search] {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 0.7rem 0;
  width: 100%;
  outline: none;
  letter-spacing: -0.01em;
}
.controls input[type=search]::placeholder { color: var(--ink-3); font-style: italic; }
.controls input[type=search]:focus { border-color: var(--accent); }
.controls .chip-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}
.controls .chip {
  font-family: inherit;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all .15s;
}
.controls .chip:hover { border-color: var(--ink-2); color: var(--ink); }
.controls .chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.controls .chip .n {
  color: var(--ink-4);
  font-weight: 400;
  margin-left: 0.3rem;
}
.controls .chip.active .n { color: rgba(255,255,255,0.6); }

/* ======================================================
   FEATURED (top of listing — first 4 with big imagery)
   ====================================================== */
.featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 4rem 1rem;
}
.featured h3 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.featured-card {
  display: block;
  color: inherit;
}
.featured-card .photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.featured-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.featured-card .photo:hover img { transform: scale(1.03); }
.featured-card .photo.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
  color: var(--ink-4);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: -0.06em;
}
.featured-card .meta-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.featured-card .meta-line .stars { color: var(--accent); letter-spacing: 0; }
.featured-card .name {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 56;
}
.featured-card .addr {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Inline contact info */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.4rem;
}
.contact-line {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
}
.contact-line.addr-line { color: var(--ink-2); }
.contact-line a.contact {
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: all .12s;
  font-weight: 500;
}
.contact-line a.contact:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact-line a.contact.maps {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.contact-line a.contact.maps:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}
.contact-line a.contact.phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.contact-line a.contact.web {
  font-family: 'Inter', sans-serif;
  font-feature-settings: "tnum" 0;
}

/* ======================================================
   LISTING (editorial list with photo on left)
   ====================================================== */
.listing-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  margin-bottom: -1px;
}
.listing-head h3 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.listing-head .right {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  font-feature-settings: "tnum" 1;
}

.listing-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 6rem;
}
.entry {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 1.8rem 0;
  border-top: 1px solid var(--rule-2);
  color: inherit;
  position: relative;
}
.entry:first-of-type { border-top: none; }

.entry .num {
  position: absolute;
  left: -2.6rem;
  top: 1.7rem;
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.05em;
}

.entry .photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: 2px;
  width: 200px;
}
.entry .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.entry .photo:hover img { transform: scale(1.04); }
.entry .photo.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
  color: var(--ink-4);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.06em;
}

.entry .info { display: flex; flex-direction: column; gap: 0.3rem; }
.entry .info .top-line {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.entry .info .top-line .dot { color: var(--ink-4); }
.entry .info .name {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variation-settings: "opsz" 56;
}
.entry .info .addr {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 0.2rem;
  max-width: 60ch;
}
.entry .end-col {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.4rem;
  font-size: 13px;
  font-feature-settings: "tnum" 1;
  min-width: 120px;
}
.entry .end-col .rating {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.entry .end-col .rating .star { color: var(--accent); }
.entry .end-col .reviews {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
}
.entry .end-col .arrow { display: none; }

/* ======================================================
   SERVICES INDEX (chapter-style cards)
   ====================================================== */
.svc-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 4rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule-2);
  border: 1px solid var(--rule-2);
}
.svc-card {
  display: block;
  background: var(--paper);
  padding: 2rem 1.6rem 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  position: relative;
}
.svc-card:hover { background: var(--paper-2); color: var(--ink); }
.svc-card .num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.15em;
  font-feature-settings: "tnum" 1;
  margin-bottom: 0.6rem;
}
.svc-card h4 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 56;
}
.svc-card p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}
.svc-card .count {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  font-feature-settings: "tnum" 1;
}

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 4rem 4rem 3rem;
  background: var(--paper-2);
  margin-top: 5rem;
}
.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}
.site-footer .crest-block {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.site-footer .crest-block::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: 0.5px;
}
.site-footer .official-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0.5rem 0 0.9rem;
}
.site-footer .official-tag::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  margin-right: 0.5rem;
  vertical-align: 3px;
}
.site-footer .colophon {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 50ch;
}
.site-footer .secondary {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: right;
}

/* ======================================================
   EMPTY
   ====================================================== */
.empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--ink-3);
  font-size: 14px;
  font-style: italic;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 920px) {
  .site-header {
    padding: 0.85rem 0;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }
  .site-header .crest { padding: 0 1.2rem; }
  .site-header nav {
    gap: 1.4rem;
    font-size: 13px;
    overflow-x: auto;
    padding: 0.3rem 1.2rem 0.6rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a {
    flex-shrink: 0;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .hero { min-height: 540px; }
  .hero-inner { padding: 1.6rem 1.4rem 2.2rem; }
  .hero-top { font-size: 10px; gap: 1rem; }
  .editorial { padding: 3.5rem 1.4rem 2.5rem; grid-template-columns: 1fr; gap: 1.2rem; }
  .chapters-head { padding: 3rem 1.4rem 1.5rem; flex-direction: column; align-items: start; gap: 0.8rem; }
  .chapters-head .meta { text-align: left; }
  .chapter-list { padding: 0.5rem 1.4rem 3.5rem; }
  .chapter {
    grid-template-columns: 32px 1fr 20px;
    gap: 1rem;
    padding: 1.2rem 0;
    min-height: 56px;
  }
  .chapter .blurb, .chapter .count { display: none; }
  .chapter:hover { padding-left: 0.8rem; padding-right: 0.8rem; }
  .page-banner { height: auto; min-height: 360px; max-height: none; }
  .page-banner .inner { padding: 1.6rem 1.4rem 1.8rem; }
  .page-banner h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .page-banner .meta { gap: 1rem; flex-wrap: wrap; font-size: 11px; }
  .intro-row { padding: 2.5rem 1.4rem 1.2rem; grid-template-columns: 1fr; gap: 1rem; }
  .controls { padding: 0.8rem 1.4rem 1rem; }
  .controls input[type=search] { font-size: 16px; padding: 0.85rem 0; }
  .controls .chip {
    padding: 0.6rem 1rem;
    font-size: 13px;
    min-height: 40px;
  }
  .featured { padding: 1rem 1.4rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .listing-head { padding: 2.5rem 1.4rem 1rem; flex-direction: column; align-items: start; gap: 0.5rem; }
  .listing-wrap { padding: 0 1.4rem 3.5rem; }
  .entry {
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 1.4rem 0;
    align-items: start;
  }
  .entry .num { display: none; }
  .entry .photo { width: 110px; }
  .entry .end-col {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: -0.4rem;
    min-width: 0;
  }
  .entry .end-col .rating { font-size: 14px; }
  .contact-block { gap: 0.35rem; margin-top: 0.5rem; }
  .contact-line { font-size: 13px; line-height: 1.5; }
  .contact-line a.contact { padding: 4px 0; display: inline-block; min-height: 28px; }
  .svc-grid { padding: 0.5rem 1.4rem 3.5rem; grid-template-columns: 1fr 1fr; }
  .svc-card { padding: 1.4rem 1.1rem; min-height: 140px; }
  .svc-card h4 { font-size: 1.15rem; }
  .site-footer { padding: 2.5rem 1.4rem 2rem; margin-top: 3rem; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer .secondary { text-align: left; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .svc-grid { grid-template-columns: 1fr; }
  .entry {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .entry .photo { width: 100%; max-width: 100%; aspect-ratio: 16/10; }
  .featured-card .photo { aspect-ratio: 16/10; }
  .blog-hero { padding: 2rem 1.4rem 2.5rem !important; }
  .posts { grid-template-columns: 1fr !important; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Print optimization */
@media print {
  .site-header, .site-footer, .controls, .filters { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   Mystery Box giveaway — editorial split card
   Left column: pitch with oversized prize amount as the anchor.
   Right column: form with underline-style inputs (no boxes) and
   a pill CTA with arrow that animates on hover.
   ============================================================ */
.article-subscribe {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 4rem 4rem;
}
.article-subscribe > div {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.02),
    0 16px 48px -22px rgba(20, 12, 6, 0.18);
}

/* Left side — the pitch */
.giveaway-pitch {
  padding: 3rem 2.5rem 2.4rem 3rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(184, 67, 31, 0.06), transparent 55%),
    var(--paper-2);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.giveaway-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.giveaway-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.giveaway-amount-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin-bottom: 0.4rem;
}
.giveaway-amount {
  font-weight: 500;
  font-size: clamp(3.2rem, 6.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
  font-feature-settings: "tnum" 1;
}
.giveaway-currency {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 0.85em;
  display: inline-block;
}
.giveaway-headline {
  font-size: clamp(1.2rem, 1.85vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin: 0.6rem 0 0.7rem;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
}
.giveaway-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}
.giveaway-dek {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 36ch;
}
.giveaway-meta {
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.giveaway-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  color: var(--ink-4);
}

/* Right side — the form */
.giveaway-form-wrap {
  padding: 2.8rem 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.giveaway-form-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.giveaway-form-eyebrow strong {
  color: var(--accent);
  font-weight: 700;
}

.ba-giveaway {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
}
.giveaway-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.giveaway-label > .giveaway-label-row {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.giveaway-label > .giveaway-label-row i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}
.giveaway-label > .giveaway-label-row i.req {
  color: var(--accent);
  font-weight: 700;
}
.ba-giveaway input[type=text],
.ba-giveaway input[type=tel],
.ba-giveaway input[type=email],
.ba-giveaway input[type=number] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  border-radius: 0;
  padding: 0.55rem 0;
  font-size: 16px;
  letter-spacing: -0.005em;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .18s ease;
}
.ba-giveaway input::placeholder {
  color: var(--ink-4);
  font-weight: 400;
}
.ba-giveaway input:hover { border-bottom-color: var(--ink-3); }
.ba-giveaway input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.ba-giveaway input:not(:placeholder-shown) {
  border-bottom-color: var(--ink-2);
}
.ba-giveaway input[type=number]::-webkit-outer-spin-button,
.ba-giveaway input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.ba-giveaway input[type=number] { -moz-appearance: textfield; }

.giveaway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.4rem;
}

.giveaway-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1.05rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  margin-top: 0.6rem;
  width: 100%;
}
.giveaway-cta svg {
  flex: 0 0 auto;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.giveaway-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.giveaway-cta:hover svg { transform: translateX(4px); }
.giveaway-cta:active { transform: translateY(1px); }
.giveaway-cta[disabled] {
  opacity: 0.55; cursor: not-allowed;
  background: var(--ink-2); border-color: var(--ink-2);
}

.ba-giveaway .ba-msg {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  min-height: 1em;
  text-align: center;
  margin-top: 0.2rem;
}
.ba-giveaway .ba-msg.ok  { color: #2a7a44; }
.ba-giveaway .ba-msg.err { color: #b8431f; }

/* Legacy classes — still produced by some pre-redesign markup; harmless */
.ba-prize { display: none; }   /* the eyebrow is now part of .giveaway-pitch */
.ba-fineprint {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-top: 0.7rem;
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* End-of-article subscribe (newsletter) — kept lightweight in case we
   reintroduce the simple form anywhere; harmless when not used. */
.ba-subscribe { display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.ba-subscribe .ba-row { display: flex; gap: 0.6rem; align-items: stretch; }

@media (max-width: 820px) {
  .article-subscribe { padding: 1rem 1.6rem 3rem; }
  .article-subscribe > div { grid-template-columns: 1fr; border-radius: 12px; }
  .giveaway-pitch {
    padding: 2.2rem 1.8rem 1.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .giveaway-form-wrap { padding: 2rem 1.8rem 2rem; }
  .giveaway-amount { font-size: 3.4rem; }
  .giveaway-meta { padding-top: 1.2rem; }
}
@media (max-width: 480px) {
  .giveaway-grid { grid-template-columns: 1fr; }
  .giveaway-amount { font-size: 2.9rem; }
}
