/* Just Getting Up — HK/Asia news desk (neo-brutalist + HuffPost layout) */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;700;900&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@500;700&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --paper: #f7f4ec;
  --ink: #0a0a0a;
  --lime: #ccff00;
  --violet: #8B5CF6;
  --white: #ffffff;
  --muted: rgba(10,10,10,.55);
  --line: 3px solid var(--ink);
  /* LOCKED — owner chose Literata */
  --font-body-article: "Literata", "Source Serif 4", Georgia, serif;
  /* Alt A: "Source Serif 4", Georgia, serif; */
  /* Alt B: "IBM Plex Sans", "Space Grotesk", system-ui, sans-serif; */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
img { max-width: 100%; display: block; }
main { flex: 1; }

.tape-lime { height: 6px; background: var(--lime); width: 100%; }
.font-display {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--line);
}
.nav-top {
  max-width: 1200px; margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo span { background: var(--lime); padding: 0 .15em; }
.nav-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem; letter-spacing: .12em;
  color: var(--muted);
}
.section-bar {
  border-top: 2px solid var(--ink);
  background: var(--white);
}
.section-bar nav {
  max-width: 1200px; margin: 0 auto;
  padding: .65rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
}
.section-bar a {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.section-bar a.active { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .5rem;
}
.kicker.lime { color: var(--ink); }
.kicker.lime::before {
  content: ""; display: inline-block;
  width: .55rem; height: .55rem; margin-right: .4rem;
  background: var(--lime); border: 2px solid var(--ink); vertical-align: middle;
}
.byline {
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin-top: .65rem;
}
.byline strong { color: var(--ink); }

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-bottom: var(--line);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-feature {
  padding: 2.5rem 1.5rem 2.5rem 0;
  border-right: var(--line);
}
@media (max-width: 860px) {
  .hero-feature { border-right: none; border-bottom: var(--line); padding-right: 0; }
}
.hero-feature h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: .95;
  margin: 0 0 1rem;
}
.hero-feature h1 a:hover { color: var(--violet); }
.hero-feature .deck {
  font-size: 1.15rem; font-weight: 500;
  max-width: 36rem; opacity: .9;
}
.hero-rail {
  display: flex; flex-direction: column;
}
.rail-item {
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-bottom: var(--line);
  flex: 1;
}
@media (max-width: 860px) {
  .rail-item { padding-left: 0; }
}
.rail-item:last-child { border-bottom: none; }
.rail-item h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.rail-item h3 a:hover { color: var(--violet); }

/* Section blocks */
.sec {
  border-bottom: var(--line);
  padding: 2rem 0 2.5rem;
}
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--ink);
}
.sec-head h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 0;
}
.sec-head a {
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.15rem 1.2rem 1.35rem;
  transition: transform .1s, box-shadow .1s;
}
.card:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.card.accent-lime { box-shadow: 6px 6px 0 var(--lime); }
.card.accent-lime:hover { box-shadow: 4px 4px 0 var(--lime); }
.card.accent-violet { box-shadow: 6px 6px 0 var(--violet); }
.card.accent-violet:hover { box-shadow: 4px 4px 0 var(--violet); }
.card h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: .35rem 0 .6rem;
}
.card p { margin: 0; font-size: .95rem; font-weight: 500; opacity: .85; }

/* Strip */
.asia-strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--line);
  padding: 1.5rem 0;
}
.asia-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
}
.asia-strip .label {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
  color: var(--lime);
}
.asia-strip a { color: var(--paper); }
.asia-strip a:hover { color: var(--lime); }
.asia-strip .item {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase;
}

/* Inner pages */
.page-main { padding: 2.5rem 0 3.5rem; max-width: 720px; }
.page-main.wide { max-width: 1200px; }
.page-main h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: .95;
  margin: 0 0 1rem;
}
.prose {
  font-family: var(--font-body-article);
  font-weight: 400;
  line-height: 1.65;
}
.prose p { font-size: 1.1rem; font-weight: 400; line-height: 1.65; }
.back {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; display: inline-block; margin-bottom: 1.25rem;
}
.story-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.story-list li {
  border: var(--line);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.story-list h3 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 1.4rem;
  margin: .35rem 0;
  line-height: 1.05;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: var(--line);
  padding: 2.75rem 0;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem;
  align-items: flex-end;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--lime); }
.footer-mark {
  font-family: "Archivo Black", sans-serif;
  font-size: 2rem; text-transform: uppercase; letter-spacing: -0.04em;
}
.footer-mark span { color: var(--lime); }
.footer-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem; letter-spacing: .1em;
  opacity: .45; text-transform: uppercase; margin-top: .75rem;
}


/* Staging banner */
.draft-banner {
  background: var(--lime);
  border-bottom: 3px solid var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: .55rem 1rem;
}

/* Article */
.article-hero {
  border-bottom: 3px solid var(--ink);
  background: var(--white);
}
.article-hero img {
  width: 100%; max-height: 420px; object-fit: cover;
  display: block; border-bottom: 3px solid var(--ink);
}
.article-body {
  padding: 2rem 0 3rem;
  max-width: 720px;
  font-family: var(--font-body-article);
  font-weight: 400;
  line-height: 1.65;
  font-optical-sizing: auto;
}
.article-body .lede {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.article-body p {
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.65;
}
.article-body ol,
.article-body ul { padding-left: 1.25rem; }
.article-body li {
  margin-bottom: .65rem;
  font-weight: 400;
  line-height: 1.65;
}
/* Keep heds/meta on brutalist stack inside articles */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body .font-display {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  line-height: 1.05;
}
.article-body .kicker,
.article-body .byline,
.article-body .sources,
.article-body .font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  line-height: 1.4;
}
.sources {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-size: .9rem;
}
.sources a { color: var(--violet); text-decoration: underline; }
.card-thumb {
  width: 100%; height: 140px; object-fit: cover;
  border-bottom: 3px solid var(--ink);
  display: block; background: #ddd;
}
.card { padding: 0; overflow: hidden; }
.card .card-pad { padding: 1.15rem 1.2rem 1.35rem; }
.hero-feature .hero-img {
  width: 100%; max-height: 280px; object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  margin-bottom: 1.25rem;
}

/* === MOBILE READABILITY === */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

@media (max-width: 640px) {
  .nav-top {
    padding: .65rem 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .nav-meta {
    width: 100%;
    font-size: .6rem;
    line-height: 1.4;
  }
  .section-bar {
    overflow-x: hidden;
  }
  .section-bar nav {
    padding: .55rem 1rem;
    gap: .55rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .section-bar nav::-webkit-scrollbar { display: none; }
  .section-bar a {
    font-size: .65rem;
    white-space: nowrap;
    padding: .35rem 0;
  }
  .wrap { padding: 0 1rem; }

  .hero-feature {
    padding: 1.35rem 0 1.5rem;
  }
  .hero-feature h1 {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
    overflow-wrap: break-word;
  }
  .hero-feature .deck {
    font-size: 1.05rem;
    line-height: 1.55;
  }
  .hero-feature .hero-img {
    max-height: 200px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .rail-item h3 {
    font-size: 1.15rem;
    line-height: 1.1;
    overflow-wrap: break-word;
  }
  .sec { padding: 1.5rem 0 1.75rem; }
  .sec-head h2 {
    font-size: 1.45rem;
  }
  .card {
    box-shadow: 4px 4px 0 var(--ink);
  }
  .card.accent-lime { box-shadow: 4px 4px 0 var(--lime); }
  .card.accent-violet { box-shadow: 4px 4px 0 var(--violet); }
  .card h3 {
    font-size: 1.1rem;
    overflow-wrap: break-word;
  }
  .card-thumb { height: 160px; }

  .page-main {
    padding: 1.5rem 0 2.5rem;
  }
  .page-main h1,
  .article-body h1 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  /* Article reading comfort */
  .article-body {
    padding: 1.35rem 0 2.5rem;
    max-width: 100%;
  }
  .article-body .lede {
    font-size: 1.125rem;
    line-height: 1.7;
  }
  .article-body p,
  .article-body li,
  .prose p {
    font-size: 1.125rem; /* ~18px */
    line-height: 1.7;
  }
  .article-body ol,
  .article-body ul {
    padding-left: 1.1rem;
  }
  .article-hero img {
    max-height: 220px;
  }
  .sources {
    font-size: .95rem;
    line-height: 1.55;
    word-break: break-word;
  }

  .footer-mark { font-size: 1.55rem; }
  .site-footer { padding: 2rem 0; }
  .asia-strip .wrap { gap: .75rem 1.25rem; }
  .asia-strip .item { font-size: .65rem; line-height: 1.45; }
}

/* Mid phones / large phones: keep body a touch roomier */
@media (min-width: 641px) and (max-width: 860px) {
  .article-body p,
  .article-body li,
  .prose p {
    font-size: 1.12rem;
    line-height: 1.68;
  }
  .hero-feature h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
}
