:root {
  --cream: #F6F1EB;
  --warm-white: #FAF7F2;
  --chocolate: #2C1810;
  --chocolate-light: #4A3228;
  --chocolate-mid: #6B4D3E;
  --accent: #8B5E3C;
  --accent-warm: #A0724E;
  --rule: #D4C4B0;
  --rule-light: #E8DDD0;
  --pull-bg: #EDE6DC;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--cream);
  color: var(--chocolate);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 350;
  line-height: 1.72;
  padding: 0;
}

/* ---- Top bar / brand strip ---- */
.brand-strip {
  position: relative;
  text-align: center;
  padding: 2.4rem 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
  background: var(--warm-white);
}

.brand-strip .brand-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-strip .brand-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chocolate-mid);
  margin-top: 0.3rem;
}

/* ---- Archive nav link in brand strip ---- */
.brand-nav {
  position: absolute;
  top: 50%;
  right: 1.8rem;
  transform: translateY(-50%);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.brand-nav:hover {
  color: var(--chocolate);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .brand-nav {
    position: static;
    transform: none;
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.65rem;
  }
}

/* ---- Issue label ---- */
.issue-label {
  text-align: center;
  padding: 1.8rem 1.5rem 0;
}

.issue-label span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chocolate-mid);
}

/* ---- Article container ---- */
.article {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 5rem;
}

/* ---- Headline ---- */
.headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 400;
  color: var(--chocolate);
  text-align: center;
  margin: 1.6rem 0 2.4rem;
  padding: 0 0.5rem;
}

@media (max-width: 600px) {
  .headline {
    font-size: 2rem;
    padding: 0;
  }
}

/* ---- Section h2 (added for multi-section issues like June) ---- */
.article h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--chocolate);
  margin: 2.8rem 0 1rem;
}

/* ---- Body paragraphs ---- */
.article p {
  margin-bottom: 1.35rem;
  font-size: 1rem;
  color: var(--chocolate-light);
}

.article p:last-child {
  margin-bottom: 0;
}

/* ---- Section dividers ---- */
.divider {
  text-align: center;
  margin: 2.2rem auto;
  width: 3rem;
  height: 0;
  border: none;
  border-top: 1px solid var(--chocolate-mid);
  opacity: 0.35;
}

.divider::before {
  content: none;
}

/* ---- The Plan block — styled as a tight call-and-response ---- */
.plan-block {
  margin: 2.2rem 0;
}

.plan-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.plan-text {
  font-size: 1rem;
  color: var(--chocolate-light);
  line-height: 1.72;
  margin-bottom: 1.6rem;
}

/* ---- Pullquote / blockquote ---- */
.pullquote {
  background: var(--pull-bg);
  border-left: 3px solid var(--accent-warm);
  padding: 1.6rem 1.8rem;
  margin: 2.4rem 0;
  border-radius: 0 4px 4px 0;
}

.pullquote .pq-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--chocolate-mid);
  margin-bottom: 0.8rem;
}

.pullquote p {
  font-style: italic;
  color: var(--chocolate-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- Brand reveal ---- */
.brand-reveal {
  text-align: center;
  margin: 2.8rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.brand-reveal .reveal-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.2rem;
  color: var(--chocolate);
  margin-bottom: 0.4rem;
}

.brand-reveal .reveal-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chocolate-mid);
}

/* ---- Italic emphasis (inline) ---- */
.article em {
  font-style: italic;
  color: var(--chocolate-mid);
}

/* ---- Strong ---- */
.article strong {
  font-weight: 500;
  color: var(--chocolate);
}

/* ---- CTA Button ---- */
.cta-wrap {
  text-align: center;
  margin: 2.8rem 0;
}

.cta-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  padding: 1rem 2.6rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.cta-btn:hover {
  background: var(--chocolate);
  transform: translateY(-1px);
}

.cta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--chocolate-mid);
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
}

/* ---- Closing section ---- */
.closing {
  border-top: 1px solid var(--rule);
  padding-top: 2.4rem;
  margin-top: 3rem;
}

.closing p {
  font-size: 0.95rem;
  color: var(--chocolate-mid);
}

.closing .dogs {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent-warm);
  margin: 1.2rem 0;
}

.closing .sign-off {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.1rem;
  color: var(--chocolate);
  margin-top: 1.6rem;
}

.closing .byline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--chocolate-mid);
  margin-top: 0.4rem;
  letter-spacing: 0.01em;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--rule-light);
  margin-top: 2rem;
}

.footer .footer-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rule);
  margin-bottom: 0.6rem;
}

.footer .footer-loc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rule);
}

.footer a {
  color: var(--accent-warm);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
  transition: border-color 0.2s ease;
}

.footer a:hover {
  border-color: var(--accent-warm);
}

/* ---- Links in body ---- */
.article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

.article a.cta-btn {
  color: #FFFFFF;
  border-bottom: none;
}

.article a.cta-btn:hover {
  color: #FFFFFF;
  border-bottom: none;
}

.article a:hover {
  border-color: var(--accent);
}

/* ---- Fade-in animation ---- */

.top-cta {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--chocolate-light);
  margin-bottom: 2.4rem;
  letter-spacing: 0.01em;
  background: var(--pull-bg);
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

.top-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  transition: border-color 0.2s ease;
}

.top-cta a:hover {
  border-color: var(--chocolate);
  color: var(--chocolate);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-strip {
  animation: fadeUp 0.8s ease both;
}

.headline {
  animation: fadeUp 0.8s ease 0.15s both;
}

.article-body {
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ---- Images ---- */
.article-img {
  margin: 2rem 0;
  text-align: center;
}

.article-img img {
  width: 100%;
  max-width: 100%;
  border-radius: 3px;
}

.article-img .img-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--chocolate-mid);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
  font-style: italic;
}

/* ---- Photo placeholder (for unrendered images) ---- */
.article-img-placeholder {
  background: var(--pull-bg);
  border: 1px dashed var(--rule);
  padding: 2.4rem 1.6rem;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--chocolate-mid);
  font-style: italic;
  line-height: 1.5;
  margin: 2rem 0;
  border-radius: 3px;
}

.article-img-placeholder::before {
  content: "photo placeholder";
  display: block;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ---- Editorial placeholder (for to-fill prose like dog update) ---- */
.editor-placeholder {
  font-style: italic;
  color: var(--chocolate-mid);
  background: var(--pull-bg);
  padding: 1.2rem 1.6rem;
  border-left: 3px solid var(--accent);
  margin: 1.6rem 0;
  font-size: 0.95rem;
}

/* ---- Taste list (June: "things that matter") ---- */
.article ul.taste-list,
.article ol.taste-list {
  margin: 1.4rem 0 1.8rem 1.4rem;
  padding-left: 0.4rem;
}

.article ul.taste-list li,
.article ol.taste-list li {
  font-size: 1rem;
  color: var(--chocolate-light);
  line-height: 1.72;
  margin-bottom: 1rem;
  padding-left: 0.4rem;
}

/* ---- Archive page: preview cards ---- */
.archive-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 5rem;
}

.preview-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1.8rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.preview-card:hover {
  transform: translateY(-2px);
}

.preview-card .pc-body {
  min-width: 0;
}

.preview-card .pc-issue {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chocolate-mid);
  margin-bottom: 0.6rem;
}

.preview-card .pc-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--chocolate);
  margin-bottom: 0.7rem;
  font-weight: 400;
}

.preview-card:hover .pc-headline {
  color: var(--accent);
}

.preview-card .pc-dek {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  color: var(--chocolate-light);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.preview-card .pc-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--chocolate-mid);
  letter-spacing: 0.04em;
}

.preview-card .pc-cover {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--pull-bg);
}

.preview-card .pc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .preview-card {
    grid-template-columns: 1fr;
  }
  .preview-card .pc-cover {
    width: 100%;
    height: 220px;
    order: -1;
    margin-bottom: 0.6rem;
  }
}
