/* =====================================================================
 * Aware — Risk Briefings (blog)
 * Dark-brand listing + long-form article styles. Linked AFTER
 * colors_and_type.css and site-chrome.css on every blog page. Nav,
 * footer, buttons, language toggle, mobile sheet, and the locale-aware
 * type foundation all come from the shared files — NOT redefined here.
 *
 * Layout decision: the article uses a single centered reading column
 * (.post-wrap, 760px) with an in-flow heading anchor offset for the
 * sticky nav. No TOC sidebar — briefings are short, scannable, and read
 * cleaner as one column on every breakpoint.
 * ===================================================================== */

/* ─────────────────────────────────────────────────────────────────────
 * Base resets blog pages need (the shared files don't carry these)
 * ───────────────────────────────────────────────────────────────────── */
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans-role);
  font-size: clamp(16px, 1.1vw, 17px);
  line-height: var(--lh-body, 1.6);
}
img, svg, video { max-width: 100%; height: auto; }
input, textarea, select { font-size: max(16px, 1em); }
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────
 * Listing — hero
 * ───────────────────────────────────────────────────────────────────── */
.blog-hero {
  padding: var(--space-16) 0 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 194, 51, 0.10) 0%, transparent 50%),
    var(--bg-primary);
}
.blog-hero .wrap {
  max-width: var(--max-narrow);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--hairline);
}
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-accent-trs);
  border: 1px solid var(--primary-accent-trs-30);
  font-family: var(--font-mono-role);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-accent);
  margin: 0 0 var(--space-6);
}
.blog-hero .eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-accent);
  box-shadow: 0 0 8px var(--primary-accent-trs-60);
  display: inline-block;
}
html[data-locale="ja"] .blog-hero .eyebrow { letter-spacing: 0.04em; text-transform: none; }
.blog-hero h1 {
  font-family: var(--font-mono-role);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
  max-width: 20ch;
}
html[data-locale="ja"] .blog-hero h1 { letter-spacing: -0.03em; line-height: 1.2; }
.blog-hero .sub {
  font-family: var(--font-sans-role);
  font-weight: 400;
  font-size: var(--fs-subhead);
  line-height: var(--lh-subhead);
  color: var(--text-secondary);
  max-width: 60ch;
  margin: var(--space-6) 0 0;
  text-wrap: pretty;
}

/* ─────────────────────────────────────────────────────────────────────
 * Listing — post cards
 * ───────────────────────────────────────────────────────────────────── */
.post-list {
  display: grid;
  gap: var(--space-5);
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: var(--space-12) var(--gutter);
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
@media (hover: hover) {
  .post-card {
    transition: transform 0.2s var(--ease-out),
                border-color 0.2s var(--ease-out),
                box-shadow 0.2s var(--ease-out);
  }
  .post-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-accent-trs-30);
    box-shadow: var(--card-shadow);
  }
}
.post-tag {
  font-family: var(--font-mono-role);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-accent);
}
html[data-locale="ja"] .post-tag { letter-spacing: 0.02em; text-transform: none; }
.post-date {
  font-family: var(--font-mono-role);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-left: 6px;
  font-feature-settings: "tnum" 1;
}
.post-card h2 {
  font-family: var(--font-mono-role);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: var(--space-3) 0 var(--space-3);
  text-wrap: balance;
}
.post-card h2 a {
  color: var(--text-primary);
  transition: color var(--dur-2) var(--ease-out);
}
.post-card h2 a:hover { color: var(--primary-accent); }
.post-card p {
  font-family: var(--font-sans-role);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  text-wrap: pretty;
}
.post-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono-role);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-accent);
  transition: gap var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  .post-card:hover .more { gap: 10px; }
}

/* ─────────────────────────────────────────────────────────────────────
 * Article — reading column
 * ───────────────────────────────────────────────────────────────────── */
.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-12) var(--gutter) var(--space-20);
}

/* Header */
.post-header {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-10);
}
.post-meta {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  margin: 0 0 var(--space-5);
}
.post-header h1 {
  font-family: var(--font-mono-role);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
html[data-locale="ja"] .post-header h1 { letter-spacing: -0.03em; line-height: 1.3; }
.post-dek {
  font-family: var(--font-sans-role);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: var(--lh-subhead);
  color: var(--text-secondary);
  margin: var(--space-5) 0 0;
  text-wrap: pretty;
}

/* ─────────────────────────────────────────────────────────────────────
 * Article — prose body
 * ───────────────────────────────────────────────────────────────────── */
.post-body {
  font-family: var(--font-sans-role);
}
.post-body h2 {
  font-family: var(--font-mono-role);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: var(--space-12) 0 var(--space-4);
  scroll-margin-top: 84px;       /* clears the sticky nav for in-page anchors */
  text-wrap: balance;
}
.post-body h3 {
  font-family: var(--font-mono-role);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: var(--space-8) 0 var(--space-3);
  scroll-margin-top: 84px;
}
.post-body p {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
  text-wrap: pretty;
}
.post-body ul,
.post-body ol {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-6);
  display: flex; flex-direction: column;
  gap: var(--space-3);
}
.post-body ul { list-style: none; padding-left: var(--space-5); }
.post-body ul li {
  position: relative;
  padding-left: var(--space-5);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--text-primary);
  text-wrap: pretty;
}
.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 9px; height: 1px;
  background: var(--primary-accent);
}
.post-body ol {
  padding-left: var(--space-6);
}
.post-body ol li {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--text-primary);
  text-wrap: pretty;
  padding-left: var(--space-2);
}
.post-body ol li::marker {
  font-family: var(--font-mono-role);
  color: var(--primary-accent);
  font-weight: 700;
}
.post-body li ul,
.post-body li ol { margin: var(--space-3) 0 0; }
.post-body strong { color: var(--text-primary); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body a.inline {
  color: var(--primary-accent);
  border-bottom: 1px solid var(--primary-accent-trs-30);
  transition: border-color var(--dur-2) var(--ease-out);
}
.post-body a.inline:hover { border-bottom-color: var(--primary-accent); }
.post-body hr {
  margin: var(--space-12) 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}
.post-body blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 2px solid var(--primary-accent);
  color: var(--text-secondary);
  font-style: italic;
}
.post-body blockquote p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────────────
 * Briefing blocks — the "Who it hits: / The cost: / Next move:" lines
 * ───────────────────────────────────────────────────────────────────── */
.brief-label {
  font-family: var(--font-mono-role);
  color: var(--primary-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cost {
  color: var(--primary-accent);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}

/* ─────────────────────────────────────────────────────────────────────
 * Post CTA — gold-edged call-to-book
 * ───────────────────────────────────────────────────────────────────── */
.post-cta {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary-accent);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-12) 0;
  display: flex; flex-direction: column; gap: var(--space-5);
}
.post-cta .cta-line {
  font-family: var(--font-mono-role);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
  max-width: 46ch;
}
html[data-locale="ja"] .post-cta .cta-line { letter-spacing: -0.02em; line-height: 1.5; }
.post-cta .btn { align-self: flex-start; }

/* ─────────────────────────────────────────────────────────────────────
 * Source note + disclaimer
 * ───────────────────────────────────────────────────────────────────── */
.source-note {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono-role);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}
.source-note a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--hairline);
  transition: color var(--dur-2) var(--ease-out);
}
.source-note a:hover { color: var(--text-primary); }
html[data-locale="ja"] .source-note { letter-spacing: 0; }

/* ─────────────────────────────────────────────────────────────────────
 * Responsive
 * ───────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-hero { padding-top: var(--space-12); }
}
@media (max-width: 640px) {
  .blog-hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .post-header h1 { font-size: clamp(26px, 8vw, 34px); }
  .post-wrap { padding-top: var(--space-10); }
  .post-cta { padding: var(--space-5); }
  .post-cta .btn { align-self: stretch; width: 100%; }
}
