/* Blog index and article layout. Loaded after /preview.css on /blog/ pages.
   Colors come from the --p-* tokens in /themes/, so the black theme works too. */

/* ---- Shared ---------------------------------------------- */
.blog-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--p-gold-text);
  margin: 0 0 14px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--p-mut);
}
.post-meta .sep { color: var(--p-gold-text); }
.post-meta a { color: var(--p-fg); text-decoration: none; border-bottom: 1px solid var(--p-gold); }
.post-meta a:hover { color: var(--p-gold-text); }

/* ---- Blog index ------------------------------------------ */
.blog-hero { padding: 4.5rem 0 4rem; }
.blog-hero h1 { max-width: 15ch; }
.blog-hero .lead { font-size: 19px; max-width: 58ch; }

.blog-list { padding-top: 5rem; }
.post-card { position: relative; }
.post-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--p-alt);
  border: 1px solid var(--p-line);
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.post-card:hover .post-card-media img,
.post-card:focus-within .post-card-media img { transform: scale(1.04); }
.post-card-title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.06;
  margin: 0 0 0.45em;
}
.post-card-title a {
  color: var(--p-fg);
  text-decoration: none;
  background-image: linear-gradient(var(--p-gold), var(--p-gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.6s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s ease;
}
.post-card:hover .post-card-title a,
.post-card-title a:focus-visible { background-size: 100% 1px; }
main .post-card-dek { color: var(--p-mut); font-size: 17px; line-height: 1.6; margin: 0 0 1.2rem; max-width: 52ch; }
.post-card-more {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--p-gold-text);
  text-decoration: none;
}
.post-card-more::after { content: " \2192"; transition: margin-left 0.3s ease; }
.post-card-more:hover::after { margin-left: 4px; }

.post-feature {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--p-line);
}
.post-feature .post-card-title { font-size: clamp(32px, 4vw, 52px); }
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-top: 4.5rem;
}
.post-grid .post-card-media { margin-bottom: 26px; }
.post-grid .post-card-title { font-size: clamp(26px, 2.6vw, 34px); }

/* ---- Article --------------------------------------------- */
.post-hero { padding: 4.5rem 0 0; border-bottom: 0; }
.post-head { max-width: 1000px; }
.post-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; max-width: 19ch; }
main .post-dek {
  font-size: 20px;
  line-height: 1.55;
  color: var(--p-mut);
  max-width: 60ch;
  margin: 0 0 1.75rem;
}
.post-figure { margin: 3.25rem 0 0; }
.post-figure-frame {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--p-alt);
  border: 1px solid var(--p-line);
}
.post-figure-frame img { width: 100%; height: 100%; object-fit: cover; }
.post-figure figcaption { margin-top: 10px; }

.post-main { padding-top: 5rem; }
.post-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.post-toc {
  position: sticky;
  top: 104px;
  border-top: 1px solid var(--p-gold);
  padding-top: 18px;
}
.post-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.post-toc li { counter-increment: toc; border-bottom: 1px solid var(--p-line); }
.post-toc a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 11px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--p-mut);
  text-decoration: none;
  transition: color 0.25s ease;
}
.post-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--p-gold-text);
}
.post-toc a:hover, .post-toc a:focus-visible { color: var(--p-fg); }

.post-body { max-width: 720px; min-width: 0; font-size: 18px; line-height: 1.75; }
main .post-body p, main .post-body li { color: var(--p-fg); }
.post-body p { margin: 0 0 1.15rem; }
.post-body h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  margin: 3.75rem 0 1.1rem;
  scroll-margin-top: 100px;
}
.post-body h3 { font-size: clamp(23px, 2.2vw, 28px); margin: 2.4rem 0 0.7rem; scroll-margin-top: 100px; }
.post-body a {
  color: var(--p-fg);
  text-decoration: underline;
  text-decoration-color: var(--p-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}
.post-body a:hover { color: var(--p-gold-text); }
.post-body ul { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.post-body ul li { margin: 0 0 0.6rem; padding-left: 0.2rem; }
.post-body ul li::marker { color: var(--p-gold-text); }

main .post-body .post-lede { font-size: 21px; line-height: 1.65; }
.post-lede::first-letter {
  float: left;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.4em;
  line-height: 0.8;
  font-weight: 500;
  padding: 0.08em 0.1em 0 0;
  color: var(--p-gold-text);
}

/* Numbered map of bill sections */
.bill-map { list-style: none; margin: 1.6rem 0 2.2rem; padding: 0; counter-reset: bm; border-top: 1px solid var(--p-line); }
.bill-map li {
  counter-increment: bm;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 12px;
  padding: 20px 0;
  margin: 0;
  border-bottom: 1px solid var(--p-line);
}
.bill-map li::before {
  content: counter(bm, decimal-leading-zero);
  grid-row: span 2;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  line-height: 1;
  color: var(--p-gold-text);
}
.bill-map b { font-family: 'Cormorant Garamond', serif; font-size: 23px; font-weight: 500; line-height: 1.2; color: var(--p-fg); }
.bill-map span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--p-mut); }

/* Pull quote from an official source */
.post-pull {
  display: block;
  margin: 2.8rem 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--p-gold);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
}
.post-pull p { margin: 0; color: var(--p-fg); }
.post-pull cite {
  display: block;
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--p-mut);
}

.post-callout {
  margin: 2.4rem 0;
  padding: 26px 28px;
  background: var(--p-alt);
  border: 1px solid var(--p-line);
  border-left: 2px solid var(--p-gold);
}
.post-head .post-callout { margin: 1.75rem 0 0; max-width: 720px; }
main .post-callout p { font-size: 17px; line-height: 1.6; margin: 0; }
main .post-callout p + p { margin-top: 0.8rem; }
main .post-callout a:not(.btn) {
  color: var(--p-fg);
  text-decoration: underline;
  text-decoration-color: var(--p-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main .post-callout a:not(.btn):hover { color: var(--p-gold-text); }
main .post-body a.btn,
main .post-callout a.btn {
  text-decoration: none;
  color: var(--p-fg);
  overflow-wrap: normal;
}
main .post-body a.btn:hover,
main .post-body a.btn:focus-visible,
main .post-callout a.btn:hover,
main .post-callout a.btn:focus-visible {
  color: var(--p-gold-ink);
  text-decoration: none;
}
main p.post-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

/* City notes */
.post-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6rem 0 2rem; }
.post-city {
  padding: 22px 22px 20px;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.post-city:hover { border-color: var(--p-gold); box-shadow: var(--p-shadow); }
.post-city h3 { margin: 0 0 0.4rem; font-size: 26px; }
.post-body .post-city h3 a { text-decoration: none; color: var(--p-fg); }
.post-body .post-city h3 a:hover { color: var(--p-gold-text); }
main .post-body .post-city p { font-size: 15.5px; line-height: 1.6; color: var(--p-mut); margin: 0; }
.post-city .blog-kicker { margin-bottom: 8px; }

/* Utility by city rows */
.utility-group { margin: 2.2rem 0 0; }
.utility-group > .blog-kicker { max-width: none; margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--p-line); }
.utility-row {
  display: grid;
  grid-template-columns: 150px 160px minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--p-line);
}
.utility-row h3 { margin: 0; font-size: 26px; }
.post-body .utility-row h3 a { text-decoration: none; color: var(--p-gold-text); }
.post-body .utility-row h3 a:hover { color: var(--p-fg); }
.utility-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-fg);
}
main .post-body .utility-row p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--p-mut); }

/* What each utility means: three panels */
.utility-paths { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 1.6rem 0 2rem; }
.utility-path { padding: 26px 26px 22px; background: var(--p-alt); border: 1px solid var(--p-line); border-top: 2px solid var(--p-gold); }
.utility-path h3 { margin: 0 0 0.6rem; }
.utility-path ul { margin-bottom: 0.8rem; }
main .post-body .utility-path li { font-size: 16px; }
main .post-body .utility-path p { font-size: 16px; margin: 0; }

/* Sources and author */
.post-sources { margin-top: 4.5rem; padding-top: 1.6rem; border-top: 1px solid var(--p-line); }
.post-sources h2 { font-size: 30px; margin: 0 0 1rem; }
.post-sources ol { margin: 0; padding-left: 1.4rem; }
main .post-body .post-sources li { font-size: 15px; line-height: 1.6; color: var(--p-mut); margin: 0 0 0.7rem; }
.post-sources li::marker { color: var(--p-gold-text); font-family: 'Cormorant Garamond', serif; }
main .post-body .post-sources p { font-size: 14px; color: var(--p-mut); }

.post-author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 3rem;
  padding: 26px 0;
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
}
.post-author-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--p-gold);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--p-gold-text);
  letter-spacing: 0.04em;
}
main .post-body .post-author p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--p-mut); }
main .post-body .post-author .post-author-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--p-fg);
  margin-bottom: 2px;
}

/* Keep reading */
.post-related .post-grid { padding-top: 2.5rem; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 900px) {
  .post-feature, .post-grid { grid-template-columns: 1fr; gap: 28px; }
  .post-grid { gap: 48px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .post-toc { position: static; }
  .post-body { max-width: none; }
  .utility-row { grid-template-columns: 130px minmax(0, 1fr); }
  .utility-row p { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .blog-hero, .post-hero { padding-top: 2.75rem; }
  .post-head h1 { font-size: 38px; line-height: 1.05; }
  main .post-dek { font-size: 18px; }
  .post-figure { margin-top: 2.25rem; }
  .post-figure-frame { aspect-ratio: 4 / 3; }
  .post-main, .blog-list { padding-top: 3rem; }
  .post-body { font-size: 17px; }
  main .post-body .post-lede { font-size: 19px; }
  .post-body h2 { margin-top: 3rem; }
  .post-cities { grid-template-columns: 1fr; }
  .post-feature { padding-bottom: 3rem; }
  .post-grid { padding-top: 3rem; }
}
@media (max-width: 560px) {
  .post-head h1 { font-size: 34px; }
  .utility-row { grid-template-columns: minmax(0, 1fr); }
  .post-callout { padding: 20px 18px; }
  .post-city { padding: 18px 18px 16px; }
  .utility-path { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card-media img, .post-card-title a, .post-city { transition: none; }
  .post-card:hover .post-card-media img { transform: none; }
}
