/* Japan Brief — static news-magazine styles. No build step. */
:root {
  --ink: #161410;
  --ink-soft: #3a342c;
  --muted: #6b6258;
  --paper: #f6f1e8;
  --paper-2: #efe8db;
  --white: #fffcf7;
  --navy: #1b2a41;
  --navy-2: #122033;
  --red: #b42318;
  --red-soft: #d24a3a;
  --rule: #d4cbb8;
  --gold: #8a6a3b;
  --max: 1120px;
  --measure: 42rem;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
h1, h2, h3, .masthead-name, .card-title, .lead-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Masthead */
.masthead {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}
.masthead-inner, .nav-inner, .wrap, .footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.masthead-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 22px;
}
.masthead-brand { text-decoration: none; color: inherit; }
.masthead-name {
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  color: var(--white);
}
.masthead-tag {
  margin: 6px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #e6dcc8;
  font-family: var(--sans);
}
.masthead-meta {
  text-align: right;
  font-size: 0.78rem;
  color: #cfc4b0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav {
  background: var(--navy-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 10px 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-inner a {
  color: #eadfcf;
  text-decoration: none;
}
.nav-inner a:hover,
.nav-inner a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* Homepage lead */
.lead {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 36px;
}
.lead figure { margin: 0; }
.lead img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
}
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin: 0 0 10px;
}
.lead-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 16px;
}
.lead-title a { color: inherit; text-decoration: none; }
.lead-title a:hover { color: var(--red); }
.dek {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.byline { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }

/* Story grid */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin: 10px 0 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.card { display: flex; flex-direction: column; gap: 12px; }
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.card-title { font-size: 1.55rem; margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card p { margin: 0; color: var(--ink-soft); }

.briefing {
  background: var(--navy);
  color: #f3eadb;
  padding: 40px 0;
  margin: 10px 0 0;
}
.briefing h2 { color: #fff; margin: 0 0 12px; font-size: 1.7rem; letter-spacing: 0.01em; }
.briefing p { margin: 0 0 10px; max-width: 46rem; color: #e6dcc8; }
.briefing a { color: #fff; }

.forthcoming {
  padding: 42px 0 56px;
}
.forthcoming ol {
  columns: 2;
  gap: 40px;
  padding: 0 0 0 1.2rem;
  margin: 0;
}
.forthcoming li { margin: 0 0 8px; padding-left: 4px; }

/* Article */
.article-hero { padding: 0; background: var(--navy-2); }
.article-hero img {
  width: 100%;
  height: min(68vh, 640px);
  object-fit: cover;
  margin: 0 auto;
  display: block;
}
.article-head, .article-body { width: min(var(--measure), calc(100% - 40px)); margin: 0 auto; }
.article-head { padding: 40px 0 10px; }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); margin: 0 0 16px; }
.article-body { padding: 10px 0 72px; }
.article-body p, .article-body li { font-size: 1.05rem; line-height: 1.7; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 {
  font-size: 1.7rem;
  margin: 2.1em 0 0.7em;
  padding-top: 0.4em;
  border-top: 1px solid var(--rule);
}
.article-body h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.25rem; }
.article-body li { margin: 0 0 0.4em; }
.article-body .disclosure, .disclosure {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  margin: 0 0 1.6em;
}
.figure, figure.figure {
  margin: 2em -8% 2.2em;
  max-width: none;
  width: 116%;
}
.figure img { width: 100%; height: auto; }
.article-body .figure.portrait {
  width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
}
figcaption, .caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
  max-width: 40rem;
}
.sources { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--rule); }
.sources h2 { border: 0; margin-top: 0; font-size: 1.3rem; }
.sources ul { padding-left: 1.1rem; }
.sources li { font-size: 0.92rem; margin-bottom: 0.5em; overflow-wrap: anywhere; }

.page {
  width: min(var(--measure), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.page h1 { font-size: 2.6rem; margin: 0 0 16px; }
.page h2 { font-size: 1.45rem; margin: 1.8em 0 0.5em; }

.story-list { list-style: none; padding: 0; margin: 0 0 40px; }
.story-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.story-list img { width: 100%; height: 140px; object-fit: cover; }
.story-list h2 { font-size: 1.45rem; margin: 0 0 8px; border: 0; padding: 0; }
.story-list h2 a { color: inherit; text-decoration: none; }
.story-list h2 a:hover { color: var(--red); }

footer.site-footer {
  background: var(--navy-2);
  color: #cfc4b0;
  padding: 36px 0 28px;
  font-size: 0.88rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { color: #eadfcf; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.site-footer p { margin: 0; }

@media (max-width: 880px) {
  .lead, .grid-2, .story-list li { grid-template-columns: 1fr; }
  .lead img, .card img { height: 240px; }
  .article-hero img { height: 52vw; min-height: 220px; }
  .figure, figure.figure { width: 100%; margin-left: 0; margin-right: 0; }
  .forthcoming ol { columns: 1; }
  .masthead-inner { flex-direction: column; gap: 8px; }
  .masthead-meta { text-align: left; }
}
