/* ── Gazette — broadsheet anatomy, clinical-cool edition ────────────────────
   Article-first: clinics, studios, writers. Layout devices: centered
   masthead with hairline rules (nav collapses beneath it), left-set hero on
   a measuring column, blog index as a front page (lead story + two columns),
   products as catalogue rows. Motion: the lead-story rule draws once,
   nav underlines draw on hover. No ticker — restraint is the point. */

.theme-gazette {
  --ink: #17322b;
  --ink-soft: #2f4a43;
  --muted: #5f7a72;
  --line: #d8ded9;
  --bg: #f5f6f3;
  --card: #fbfcfa;
  --radius: 4px;
  font-family: 'Noto Serif Thai', Georgia, serif;
  font-size: 16.5px;
  line-height: 1.75;
}

.theme-gazette h1, .theme-gazette h2, .theme-gazette h3, .theme-gazette h4,
.theme-gazette .brand, .theme-gazette .post-title, .theme-gazette .tenant-name {
  font-family: 'Fraunces', 'Noto Serif Thai', Georgia, serif;
  letter-spacing: -0.01em;
}

/* ── Masthead: name centered and large, links row beneath ── */
.theme-gazette .nav {
  background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: none; position: static;
}
.theme-gazette .nav-inner {
  height: auto; flex-direction: column; gap: 10px; padding: 30px 24px 0;
}
.theme-gazette .brand { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; }
.theme-gazette .brand-logo { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; }
.theme-gazette .nav-links { flex: initial; justify-content: center; gap: 28px; width: 100%; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.theme-gazette .nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  border-bottom: none; background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 0% 1.5px;
  padding: 2px 1px; transition: background-size 0.25s ease;
}
.theme-gazette .nav-links a:hover, .theme-gazette .nav-links a.active { background-size: 100% 1.5px; color: var(--ink); }
.theme-gazette .nav-actions { position: absolute; top: 30px; right: 24px; flex-direction: row; }
@media (max-width: 900px) { .theme-gazette .nav-actions { position: static; padding-top: 6px; } }

/* ── Hero: left-set on a measuring column ── */
.theme-gazette .hero { text-align: left; padding: 64px 0 40px; }
.theme-gazette .hero::before { display: none; }
.theme-gazette .hero .container { position: relative; padding-left: 40px; }
.theme-gazette .hero .container::before {
  content: ""; position: absolute; left: 24px; top: 6px; bottom: 6px; width: 2px; background: color-mix(in srgb, var(--brand) 45%, var(--line));
}
.theme-gazette .hero-grid { grid-template-columns: 1fr; }
.theme-gazette .hero-visual { display: none; }
.theme-gazette .hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; max-width: 20ch; line-height: 1.12; }
.theme-gazette .hero-sub { margin: 0; max-width: 54ch; font-size: 1.12rem; color: var(--ink-soft); }
.theme-gazette .hero-cta {
  justify-content: flex-start; margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 16px;
}
.theme-gazette .eyebrow {
  border: none; background: none; padding: 0; color: var(--brand);
  font-family: 'Noto Serif Thai', serif; font-style: italic; font-size: 1.05rem;
  text-transform: none; letter-spacing: 0; font-weight: 500;
}

/* ── Buttons: printed labels ── */
.theme-gazette .btn { border-radius: 3px; font-weight: 600; padding: 11px 22px; font-family: 'Noto Serif Thai', serif; }
.theme-gazette .btn-primary { box-shadow: none; }
.theme-gazette .btn-primary:hover { background: var(--ink); }
.theme-gazette .btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }

/* ── Front page: lead story spans, then two columns ── */
.theme-gazette .post-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px;
  border-top: 3px solid var(--ink); padding-top: 26px;
}
.theme-gazette .post-list .post-row {
  grid-column: 1 / -1; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line);
  padding: 26px 4px;
}
.theme-gazette .post-list .post-row:first-child {
  grid-column: 1 / -1; display: block; padding: 0 0 30px; border-bottom: 1px solid var(--ink); position: relative;
}
.theme-gazette .post-list .post-row:first-child::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--brand); transform-origin: left; animation: ss-rule 0.9s ease 0.15s both;
}
@keyframes ss-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.theme-gazette .post-list .post-row:first-child .post-title { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin: 8px 0 10px; }
.theme-gazette .post-list .post-row:first-child .post-excerpt { font-size: 1.05rem; max-width: 68ch; }
.theme-gazette .post-list .post-row:nth-child(n + 2) { grid-column: auto; margin-bottom: 0; }
.theme-gazette .post-list .post-row:hover { background: transparent; }
.theme-gazette .post-title { font-size: 1.2rem; font-weight: 700; }
.theme-gazette .post-date { font-style: italic; color: var(--muted); }
.theme-gazette .post-read { display: none; }
@media (max-width: 760px) { .theme-gazette .post-list { grid-template-columns: 1fr; } }

/* ── Shop (if enabled): catalogue rows, image left ── */
.theme-gazette .grid.cols-3 { grid-template-columns: 1fr; gap: 0; border-top: 3px solid var(--ink); }
.theme-gazette .product-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
  border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none;
  padding: 22px 4px; background: var(--card);
}
.theme-gazette .product-card:hover { transform: none; }
.theme-gazette .product-media { border-radius: 0; aspect-ratio: 4 / 3; }
.theme-gazette .product-body { padding: 0; display: block; }
.theme-gazette .price { font-family: 'Fraunces', serif; font-weight: 700; }
@media (max-width: 640px) { .theme-gazette .product-card { grid-template-columns: 1fr; } }

/* ── Cards & rules ── */
.theme-gazette .card { border: none; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; background: var(--card); }
.theme-gazette .section-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; }
.theme-gazette .section-head h2 { font-size: 1.7rem; font-weight: 900; }
.theme-gazette .page-head { margin-bottom: 34px; }
.theme-gazette .page-head h1 { font-weight: 900; }
.theme-gazette .section-alt { background: linear-gradient(180deg, transparent, rgb(13 148 136 / 4%)); }

/* ── Essay: drop cap + pull quotes ── */
.theme-gazette .prose { font-size: 1.08rem; }
.theme-gazette .prose > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 3.4em;
  float: left; line-height: 0.82; padding: 6px 10px 0 0; color: var(--brand);
}
.theme-gazette .prose h2 { font-size: 1.6rem; font-weight: 700; }
.theme-gazette .prose blockquote {
  font-style: italic; border-left: none; background: transparent;
  padding: 8px 28px; position: relative; color: var(--ink-soft);
}
.theme-gazette .prose blockquote::before {
  content: "“"; position: absolute; left: 0; top: -6px; font-family: 'Fraunces', serif;
  font-size: 2.6rem; color: var(--brand); opacity: 0.5;
}
.theme-gazette .article-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; }
.theme-gazette .article-meta { font-style: italic; }
.theme-gazette .article-cover { border-radius: 0; }
.theme-gazette .contact-card { border-top: 2px solid var(--ink); }
.theme-gazette .pill { border-radius: 3px; font-weight: 500; font-family: 'Noto Serif Thai', serif; }
.theme-gazette .table.card { border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.theme-gazette .footer { background: var(--ink); margin-top: 30px; }
.theme-gazette .footer-note { border-top: 1px solid rgb(255 255 255 / 12%); }
.theme-gazette .mobile-cart-bar { background: var(--ink); border-radius: 4px; }
