/* SuperChinaTravel — "Red Packet Pop". Tokens documented in BRAND.md */
:root {
  --red: #E53935;        /* primary: surfaces, large display text, borders */
  --red-ink: #C62828;    /* primary, AA-safe shade for small text, links, buttons with white text */
  --gold: #FFC233;       /* accent */
  --cream: #FFF7EC;      /* background */
  --paper: #FFFFFF;      /* card surface */
  --ink: #2A1A14;        /* text */
  --ink-soft: #5E4A40;   /* secondary text (AA on cream & paper) */
  --line: #F1DCC4;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 3px 0 rgba(42, 26, 20, .9);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tap: 44px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 900; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
.shell { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { background: var(--red); color: #fff; border-bottom: 4px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.3rem; min-height: var(--tap); }
.brand b { background: var(--gold); color: var(--ink); font-weight: 900; padding: 0 .3rem; margin: 0 .1rem; border-radius: 6px; }
.brand:hover { color: #fff; }
.brand-mark { width: 26px; height: 32px; fill: var(--red); stroke: var(--gold); stroke-width: 2.5; }
.brand-mark circle { fill: var(--gold); stroke: none; }
.header-cta { display: none; background: var(--gold); color: var(--ink); font-weight: 900; text-decoration: none; padding: .55rem 1rem; border-radius: 999px; min-height: var(--tap); align-items: center; box-shadow: var(--shadow); }
.header-cta:hover { color: var(--ink); transform: translateY(-1px); }
.cat-nav { background: #B71C1C; }
.cat-nav-inner { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: 0 .9rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; border: 2px solid rgba(255,255,255,.35); }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.nav-stamp { font-weight: 900; }

/* Stamps (passport-style category tags) */
.stamp { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border: 2px dashed var(--red-ink); border-radius: 8px; color: var(--red-ink); background: var(--paper); font-weight: 900; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transform: rotate(-2deg); line-height: 1.6; }
a.stamp { min-height: var(--tap); padding-inline: .8rem; }
a.stamp:hover { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.stamp span { font-size: 1rem; letter-spacing: 0; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.4rem; border-radius: 999px; background: var(--red-ink); color: #fff; font-weight: 900; font-size: 1.05rem; text-decoration: none; box-shadow: var(--shadow); border: 2px solid var(--ink); }
.btn-primary:hover { color: #fff; background: var(--ink); transform: translateY(-1px); }

/* Lead */
.lead { margin: 1.25rem 0 2rem; display: grid; gap: 0; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.lead-photo { margin: 0; aspect-ratio: 16 / 9; background: var(--gold); }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-card { padding: 1.25rem 1.25rem 1.5rem; border-top: 6px solid var(--gold); }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.fresh { background: var(--gold); color: var(--ink); font-weight: 900; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.lead h1 { font-size: clamp(1.75rem, 5.5vw, 2.9rem); }
.lead-hook { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 40ch; }

/* Section titles */
.section-title { font-size: 1.6rem; display: inline-block; background: linear-gradient(transparent 62%, var(--gold) 62%); padding: 0 .2rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
.section-head span { color: var(--ink-soft); font-weight: 700; }

/* Passport category grid */
.stamps { margin-bottom: 2.25rem; }
.passport-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.passport-stamp { display: flex; align-items: center; gap: .7rem; min-height: 64px; padding: .7rem .9rem; background: var(--paper); border: 2px dashed var(--red-ink); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 900; line-height: 1.2; }
.passport-stamp:nth-child(odd) { transform: rotate(-1deg); }
.passport-stamp:nth-child(even) { transform: rotate(1deg); }
.passport-stamp:hover { background: var(--gold); color: var(--ink); border-style: solid; border-color: var(--ink); }
.passport-glyph { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-ink); color: #fff; font-size: 1.15rem; }

/* Ticket cards */
.latest { margin-bottom: 3rem; }
.ticket-grid { display: grid; gap: 1rem; }
.ticket-link { display: grid; grid-template-columns: 1fr; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); height: 100%; }
.ticket-link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.ticket-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--gold); }
.ticket-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticket-body { display: block; padding: 1rem 1.1rem .5rem; }
.ticket-body h3 { font-size: 1.2rem; margin: .7rem 0 .35rem; }
.ticket-body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.ticket-stub { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; padding: .7rem 1.1rem; border-top: 2px dashed var(--line); font-weight: 900; font-size: .9rem; color: var(--ink-soft); position: relative; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); }
.ticket-stub::before { left: -12px; }
.ticket-stub::after { right: -12px; }
.ticket-go { color: var(--red-ink); }

/* Category page */
.cat-header { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.cat-header h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0; }
.cat-header p { margin: .25rem 0 0; color: var(--ink-soft); }
.cat-glyph { flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: 1.8rem; border: 3px dashed var(--gold); }
.empty { font-weight: 700; color: var(--ink-soft); }

/* Article */
.article { padding-bottom: 3rem; }
.article-head { padding-top: 1.5rem; }
.article-head h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.back-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.article-dek { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-weight: 700; font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.article-photo { margin-block: 0 1.5rem; }
.article-photo img { border-radius: var(--radius); border: 3px solid var(--ink); }
.key-facts { background: var(--gold); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 5px 0 var(--ink); margin-bottom: 2rem; }
.key-facts h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.key-facts h2 span { font-weight: 700; font-size: .95rem; }
.key-facts dl { margin: 0; display: grid; gap: .6rem; }
.key-facts dt { font-weight: 900; text-transform: uppercase; font-size: .8rem; letter-spacing: .07em; }
.key-facts dd { margin: 0; font-weight: 700; }
.article-body { font-size: 1.1rem; }
.article-body h2 { font-size: 1.55rem; margin-top: 2rem; padding-top: .3rem; border-top: 4px solid var(--red); display: inline-block; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.article-body p, .article-body li { max-width: 68ch; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote { margin: 1.5rem 0; padding: .8rem 1.1rem; background: var(--paper); border-left: 6px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 700; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .98rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { background: var(--red-ink); color: #fff; font-weight: 900; }
.article-body strong { font-weight: 900; }
.article-body code { background: var(--paper); padding: .05rem .3rem; border-radius: 4px; }
.article-end { margin-top: 2.5rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.tag-list span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.sources { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.sources summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 1rem; cursor: pointer; font-weight: 900; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary span:last-child { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }
.sources ul { margin: 0; padding: 0 1rem 1rem 2rem; font-size: .95rem; }
.sources li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.source-note { color: var(--ink-soft); font-size: .92rem; font-weight: 700; }
.read-next { margin-top: 2rem; }
.read-next a { display: block; background: var(--red-ink); color: #fff; text-decoration: none; padding: 1.4rem 1.3rem; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); }
.read-next a:hover { color: #fff; transform: translateY(-2px); }
.next-label { display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; background: var(--gold); color: var(--ink); padding: .15rem .6rem; border-radius: 999px; margin: 0 .6rem .6rem 0; }
.read-next h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin: .8rem 0 .4rem; }
.read-next p { margin: 0 0 1.1rem; font-weight: 700; }
.read-next .btn-primary { background: var(--gold); color: var(--ink); }

/* Static & 404 */
.static-page, .not-found { padding: 2rem 0 3rem; }
.static-page h1, .not-found h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); margin-top: 1rem; }
.static-page h2 { font-size: 1.35rem; margin-top: 1.75rem; }

/* Footer */
.site-footer { background: var(--ink); color: #F6E7D6; padding: 2rem 0; border-top: 6px solid var(--gold); }
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { color: var(--gold); font-weight: 900; font-size: 1.25rem; text-decoration: none; }
.site-footer p { margin: .4rem 0 0; max-width: 60ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-links a { color: #fff; display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.copyright { font-size: .9rem; opacity: .9; }

@media (min-width: 640px) {
  .passport-grid { grid-template-columns: repeat(3, 1fr); }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: inline-flex; }
}
@media (min-width: 960px) {
  .lead { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .lead-photo { aspect-ratio: auto; min-height: 100%; }
  .lead-card { border-top: 0; border-left: 6px solid var(--gold); padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
  .passport-grid { grid-template-columns: repeat(6, 1fr); }
  .passport-stamp { flex-direction: column; text-align: center; justify-content: center; min-height: 120px; }
  .ticket-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ticket-link:hover, .btn-primary:hover, .read-next a:hover, .header-cta:hover { transform: none; }
}
