/* The Asia Pacific Herald — lean v1 */

:root {
  --ink: #1a1a1a;
  --paper: #fdfcf9;
  --rule: #d8d3c8;
  --accent: #a3231f;   /* editorial red */
  --navy: #14233b;
  --muted: #6b675f;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top bar ---- */
.topbar {
  background: var(--navy);
  color: #cfd6e0;
  font-size: 12px;
  letter-spacing: .04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ---- Masthead ---- */
.masthead {
  text-align: center;
  padding: 28px 24px 14px;
  border-bottom: 3px solid var(--ink);
}
.masthead .kicker-row {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.masthead h1 {
  font-family: var(--serif);
  font-size: 52px;
  margin: 0;
  letter-spacing: .01em;
}
.masthead h1 a { color: var(--ink); }
.masthead .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

/* ---- Nav ---- */
nav.mainnav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
nav.mainnav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 10px 24px;
  max-width: 1080px;
  margin: 0 auto;
  flex-wrap: wrap;
}
nav.mainnav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
nav.mainnav a:hover { color: var(--accent); text-decoration: none; }
nav.mainnav li.active a { color: var(--accent); }

/* ---- Home layout ---- */
main { padding: 36px 0 60px; }

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.hero .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.hero h2 {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero .dek {
  font-size: 17px;
  color: #333;
  margin: 0 0 14px;
}
.hero .meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero-side {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
.hero-side h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.side-item { margin-bottom: 18px; }
.side-item .tag-small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.side-item h4 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 4px 0 0;
  line-height: 1.3;
}

/* ---- Story grid ---- */
.section-title {
  font-family: var(--serif);
  font-size: 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin: 0 0 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.card .tag-small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card h4 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 6px 0 8px;
  line-height: 1.3;
}
.card p {
  font-size: 14px;
  color: #444;
  margin: 0;
}
.card .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---- Notice / lean-launch banner ---- */
.notice {
  background: #f3efe4;
  border: 1px solid var(--rule);
  padding: 14px 18px;
  font-size: 13px;
  color: #4a4636;
  margin-bottom: 36px;
}
.notice strong { color: var(--navy); }

/* ---- Article page ---- */
.article-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: left;
}
.article-head .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 14px;
}
.article-head h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.article-head .dek {
  font-size: 19px;
  color: #333;
  font-family: var(--serif);
  font-style: italic;
  margin: 0 0 16px;
}
.byline {
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

article.body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  color: #222;
}
article.body p { margin: 0 0 20px; }
article.body p.lede::first-letter {
  font-family: var(--serif);
  font-size: 54px;
  float: left;
  line-height: .8;
  padding: 6px 8px 0 0;
  color: var(--accent);
  font-weight: 700;
}
blockquote.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--navy);
  border-left: 4px solid var(--accent);
  margin: 32px 0;
  padding: 4px 0 4px 22px;
}
.tags-footer {
  max-width: 760px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}
.tags-footer .tagset { margin-bottom: 6px; }
.tags-footer .tagset b { color: var(--navy); }
.tags-footer .chip {
  display: inline-block;
  background: #f1efe8;
  border: 1px solid var(--rule);
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 3px;
  font-size: 11.5px;
}
.sources {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 12.5px;
  color: var(--muted);
}
.sources li { margin-bottom: 4px; }

/* ---- Footer ---- */
footer {
  background: var(--navy);
  color: #b9c1cf;
  font-size: 12.5px;
  padding: 26px 0;
  margin-top: 40px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: #e4e8ee; }

/* ---- About page ---- */
.about-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
}
.about-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin-top: 34px;
}
.about-body ul { padding-left: 20px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
  .grid3 { grid-template-columns: 1fr; }
  .masthead h1 { font-size: 36px; }
}
