/* BarReps public blog layout. Colors come from /blog-brand.css, generated
   from the approved homepage. Fonts come from shared /brand-fonts.css assets. */
:root {
  color-scheme: light dark;
  --body: "DM Sans", Arial, sans-serif;
  --heading: "Libre Baskerville", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  .gc-logo text { fill: var(--ink); }
}
html[data-theme="dark"] .gc-logo text { fill: var(--ink); }

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.8 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selected); color: var(--ink); }
a { color: var(--accent-blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; color: var(--ink); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: 1rem;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

/* The header, book mark, sign-in control and footer use the public site markup. */
.header {
  width: min(1250px, calc(100% - 3rem));
  margin: 0 auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; text-decoration: none; }
.br-brand { width: 235px; max-width: 100%; flex-shrink: 0; }
.gc-logo { display: block; width: 235px; height: auto; }
.gc-serious-wordmark { display: none; }
.nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.main-product-nav > a, .main-product-nav > [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 650 .92rem/1.25 var(--body);
  text-decoration: none;
  white-space: nowrap;
}
.main-product-nav > [href="/#br-preview"] { background: var(--surface-gold); }
.main-product-nav > .active, .main-product-nav > [aria-current="page"] {
  background: var(--primary);
  color: var(--button-ink);
  border-color: var(--primary);
  box-shadow: 0 3px 0 var(--ink);
}
.main-product-nav > [aria-current="location"] { background: var(--selected); border-color: var(--primary); }
.main-product-nav > a:hover { border-color: var(--ink); }
.gc-subject-icon { display: inline-block; width: 19px; height: 19px; flex: none; }
.main-product-nav > .profile-button { padding: .3rem .6rem .3rem .3rem; border-radius: 999px; }
.profile-avatar { display: inline-flex; width: 32px; height: 32px; flex: none; }
.profile-avatar svg { display: block; width: 100%; height: 100%; }
.profile-label { white-space: nowrap; }

.container { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: 4rem 0 2.5rem; }
.page-header { max-width: 760px; margin-bottom: 2.5rem; }
.page-header h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -.035em; }
.page-header p { margin: 0; max-width: 55ch; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.featured, .post-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.featured { grid-column: 1 / -1; padding: 2rem 2.25rem; background: var(--surface-blue); }
.featured:hover, .post-row:hover { border-color: var(--ink); }
.featured:hover .featured-title, .post-row:hover .post-row-title { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.featured-title, .post-row-title { margin: 0; overflow-wrap: anywhere; }
.featured-title { max-width: 34ch; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; letter-spacing: -.025em; }
.featured-excerpt { max-width: 78ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.featured-meta, .post-row-date { color: var(--muted); font: 500 .8rem/1.6 var(--body); }
.post-row { min-height: 190px; }
.post-row-title { font-size: 1.25rem; line-height: 1.5; letter-spacing: -.02em; }
.post-row-tag { order: -1; }
.post-row-tag, .tag { color: var(--accent-plum); font: 750 .7rem/1.6 var(--body); text-transform: uppercase; letter-spacing: .1em; }
.post-row-date { margin-top: auto; }

.br-button, .back, .post-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .7rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: var(--button-ink);
  font: 700 .94rem/1.4 var(--body);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.br-button.secondary, .back { background: var(--white); border-color: var(--line); color: var(--ink); }
.br-button:hover, .back:hover, .post-cta > a:hover { border-color: var(--ink); text-decoration: none; }
.blog-article .container { max-width: 42rem; }
.back { margin: 0 0 2.25rem; }
.tag { margin-bottom: .75rem; }
.blog-article h1 { margin: 0 0 1rem; font-size: clamp(1.85rem, 3.7vw, 2.75rem); line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
.meta { margin-bottom: 2.5rem; font-size: .875rem; color: var(--muted); }
article { color: var(--ink); font-size: 1.125rem; line-height: 1.85; overflow-wrap: break-word; }
article > h1 { display: none; }
article h2 { margin: 2.5rem 0 1rem; font-size: 1.55rem; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
article h3 { margin: 2rem 0 .8rem; font-size: 1.2rem; line-height: 1.5; overflow-wrap: anywhere; }
article p, article ul, article ol { margin: 0 0 1.25rem; }
article ul, article ol { padding-left: 1.5rem; }
article li { padding-left: .2rem; margin-bottom: .6rem; }
article a { color: var(--accent-blue); text-decoration: underline; text-decoration-thickness: 1px; }
article a:hover { text-decoration-thickness: 2px; }
article blockquote { margin: 1.75rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--primary); background: var(--surface-cream); color: var(--muted); }
article blockquote p:last-child { margin-bottom: 0; }
article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.75rem 0; font-size: .94rem; }
article th, article td { padding: .75rem; text-align: left; vertical-align: top; border: 1px solid var(--line); }
article th { background: var(--surface-blue); }
article pre { max-width: 100%; overflow-x: auto; padding: 1rem; border-radius: 8px; background: var(--white); }
.post-cta { margin: 3rem 0 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-blue); }
.post-cta h3 { margin: 0 0 .75rem; font-size: 1.3rem; line-height: 1.45; }
.post-cta p { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.7; color: var(--muted); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: min(1250px, calc(100% - 3rem));
  margin: 1rem auto 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-blue);
  font-size: .875rem;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-book { width: 46px; height: 46px; flex: none; }
.footer-book svg { display: block; width: 100%; height: 100%; }
.footer-brand strong, .footer-brand > div > span { display: block; }
.footer-brand strong { margin-bottom: .25rem; font-family: var(--heading); font-size: 1.1rem; line-height: 1.45; }
.footer-brand > div > span { color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.footer-links > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .85rem; }

/* One quiet seasonal band, below all articles. The art retains its own colors. */
.br-season-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.br-season-ribbon {
  --season-dot: #E2AC89;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(45rem, calc(100% - 3rem));
  min-height: 46px;
  gap: clamp(.45rem, 2.5vw, 1.6rem);
  margin: 1rem auto;
  padding: .16rem .5rem;
  pointer-events: none;
  user-select: none;
}
.br-season-ribbon::before, .br-season-ribbon::after {
  content: "";
  flex: 1;
  height: 8px;
  background: radial-gradient(circle, var(--season-dot) 1.5px, transparent 2.5px) left center / 14px 8px repeat-x;
}
.br-season-motif { display: block; flex: none; width: clamp(31px, 4vw, 47px); height: auto; rotate: -9deg; }
.br-season-motif:nth-child(3n + 2) { rotate: 6deg; }
.br-season-motif:nth-child(3n) { rotate: -3deg; }
@media (prefers-color-scheme: dark) { .br-season-ribbon { --season-dot: #C9AEAA; } }
html[data-theme="dark"] .br-season-ribbon { --season-dot: #C9AEAA; }

@media (max-width: 900px) {
  .header { align-items: flex-start; }
  .header .nav { justify-content: flex-start; }
  .container { padding-top: 3rem; }
}
@media (max-width: 600px) {
  .header, .container, .footer { width: calc(100% - 2rem); }
  .header { gap: 1rem; padding: 1rem 0; }
  .br-brand, .gc-logo { width: 195px; }
  .header .nav { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .main-product-nav > a, .main-product-nav > [aria-current="page"] { min-width: 0; min-height: 46px; font-size: .875rem; padding: .6rem .55rem; white-space: normal; }
  .main-product-nav > .profile-button { border-radius: 10px; }
  .container { padding-top: 2.25rem; }
  .page-header { margin-bottom: 1.75rem; }
  .page-header p { font-size: 1rem; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .featured { padding: 1.5rem; }
  .post-row { padding: 1.4rem; min-height: 0; gap: .7rem; }
  .post-row-date { margin-top: .35rem; }
  .featured-title, .post-row-title { font-size: 1.25rem; line-height: 1.5; }
  .blog-article h1 { font-size: 1.8rem; line-height: 1.35; }
  .back { margin-bottom: 1.75rem; }
  .meta { margin-bottom: 2rem; }
  article { font-size: 1.0625rem; line-height: 1.85; }
  article h2 { font-size: 1.35rem; }
  .post-cta { padding: 1.4rem; }
  .post-cta > a { width: 100%; }
  .footer { padding: 1.2rem; gap: 1rem; }
  .br-season-ribbon { min-height: 38px; width: calc(100% - 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .br-season-ribbon, .br-season-symbols { display: none; }
  .featured, .post-row, .footer, .post-cta, .br-button, .back, .main-product-nav > a { border-color: CanvasText; }
  a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline-color: Highlight; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #FFFFFF; color: #000000; font-size: 11pt; }
  .header, .footer, .back, .skip-link, .br-season-ribbon, .br-season-symbols, .post-cta { display: none; }
  .container, .blog-article .container { width: 100%; max-width: none; padding: 0; }
  article, h1, h2, h3, .meta, article a { color: #000000; }
  h1, h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}
