/* ASIA2000 theme styles — layout & components (mobile-first base).
   Dark-mode token overrides: assets/css/dark-mode.css
   Breakpoint adjustments:    assets/css/responsive.css */

:root {
  --bg: 40 33% 97%;
  --fg: 165 30% 9%;
  --card: 0 0% 100%;
  --muted: 160 14% 93%;
  --muted-fg: 165 12% 38%;
  --border: 160 14% 86%;
  --jade: 164 62% 30%;
  --jade-bright: 164 62% 24%;
  --gold: 38 74% 48%;
  --ring: 164 55% 28%;
  --radius: 0.75rem;
  --container: 72rem;
  --container-narrow: 56rem;
}

body {
  background: hsl(var(--bg));
  color: hsl(var(--fg));
}

.font-display { font-family: 'Sora', 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; }

a { color: hsl(var(--jade)); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--container-narrow); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: hsl(var(--gold)); color: #000; padding: .75rem 1rem; border-radius: 0 0 .5rem 0; }
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  cursor: pointer; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn--gold { background: hsl(var(--gold)); color: hsl(165 40% 8%); }
.btn--gold:hover { background: hsl(var(--gold) / .88); text-decoration: none; }
.btn--ghost { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--fg)); }
.btn--ghost:hover { border-color: hsl(var(--jade)); text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--bg) / .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.site-branding { display: flex; align-items: center; gap: .75rem; }
.site-logo svg { display: block; color: hsl(var(--fg)); }
.site-tagline { display: none; margin: 0; font-size: .8rem; color: hsl(var(--muted-fg)); }

.main-nav { display: none; flex: 1; }
.main-nav__list { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav__list a { color: hsl(var(--fg)); font-weight: 500; }
.main-nav__list a:hover { color: hsl(var(--jade)); text-decoration: none; }

.site-header__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.header-auth { display: none; gap: .5rem; }

.theme-toggle {
  background: transparent; border: 1px solid hsl(var(--border)); border-radius: 999px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--fg)); cursor: pointer; transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: hsl(var(--jade)); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Language switcher */
.lang-switcher { display: inline-flex; border: 1px solid hsl(var(--border)); border-radius: 999px; overflow: hidden; }
.lang-switcher a { padding: .3rem .6rem; font-size: .8rem; font-weight: 600; color: hsl(var(--muted-fg)); }
.lang-switcher a.is-active { background: hsl(var(--jade)); color: hsl(var(--bg)); }
.lang-switcher a:hover { text-decoration: none; }

/* Nav toggle (mobile) */
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: hsl(var(--fg)); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.main-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: hsl(var(--bg)); border-bottom: 1px solid hsl(var(--border)); padding: 1rem 1.25rem; }
.main-nav.is-open .main-nav__list { flex-direction: column; gap: .75rem; }

/* Header search */
.header-search { display: none; max-width: var(--container); margin: 0 auto; padding: .5rem 1.25rem .75rem; gap: .5rem; }
.header-search.is-open { display: flex; }
.header-search__input { flex: 1; padding: .55rem .8rem; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); }
.header-search__btn { background: hsl(var(--jade)); color: hsl(var(--bg)); border: 0; border-radius: var(--radius); padding: 0 .8rem; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: hsl(168 30% 5%); color: hsl(45 25% 95%); background-image: var(--hero-img); background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, hsl(168 40% 4% / .55), hsl(168 40% 4% / .85)); }
.hero__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 4rem 1.25rem; width: 100%; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: hsl(var(--gold)); margin: 0 0 .75rem; }
.hero__title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; margin: 0 0 1rem; }
.hero__sub { font-size: clamp(1rem, 2.5vw, 1.35rem); max-width: 40rem; color: hsl(45 25% 95% / .9); margin: 0 0 1.75rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 3.5rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin: 0; }
.section__link { font-weight: 600; color: hsl(var(--jade)); white-space: nowrap; }

/* Cards */
.cards-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.featured-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: hsl(var(--jade) / .5); }
.card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: hsl(var(--muted)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--jade)); }
.card__title { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.3; }
.card__title a { color: hsl(var(--fg)); }
.card__title a:hover { color: hsl(var(--jade)); text-decoration: none; }
.card__excerpt { color: hsl(var(--muted-fg)); font-size: .92rem; margin: 0; }
.card__meta { font-size: .8rem; color: hsl(var(--muted-fg)); margin: 0; }
.card--lead .card__title { font-size: 1.6rem; }
.card--lead .card__media { aspect-ratio: 16/10; }

/* Topics grid */
.topics-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.topic-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); transition: border-color .2s ease, transform .2s ease; }
.topic-card:hover { border-color: hsl(var(--jade)); transform: translateY(-3px); text-decoration: none; }
.topic-card__name { font-size: 1.1rem; font-weight: 700; color: hsl(var(--fg)); }
.topic-card__tagline { font-size: .85rem; color: hsl(var(--muted-fg)); }

/* Archive head */
.archive-head { padding: 2.5rem 0 1rem; border-bottom: 1px solid hsl(var(--border)); }
.archive-head__title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin: .5rem 0 .25rem; }
.archive-head__tagline { color: hsl(var(--muted-fg)); margin: 0; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .82rem; color: hsl(var(--muted-fg)); }
.breadcrumbs li::after { content: '›'; margin-left: .4rem; color: hsl(var(--muted-fg) / .6); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: hsl(var(--muted-fg)); }
.breadcrumbs a:hover { color: hsl(var(--jade)); }
.breadcrumbs [aria-current="page"] { color: hsl(var(--fg)); }

/* Single article */
.article { max-width: var(--container-narrow); margin: 0 auto; padding: 1.5rem 1.25rem 3.5rem; }
.article__hero { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--jade)); margin: 0 0 .5rem; }
.article__title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin: 0 0 .75rem; line-height: 1.15; }
.article__excerpt { font-size: 1.15rem; color: hsl(var(--muted-fg)); margin: 0 0 1.25rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: hsl(var(--muted-fg)); padding-bottom: 1.25rem; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 1.5rem; }
.article__rating { color: hsl(var(--gold)); font-weight: 700; }

.prose-editorial h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; font-family: 'Sora', sans-serif; letter-spacing: -0.01em; }
.prose-editorial p { margin: 0 0 1.15rem; line-height: 1.75; }
.prose-editorial details { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0 0 .75rem; background: hsl(var(--card)); }
.prose-editorial details summary { cursor: pointer; font-weight: 600; }
.prose-editorial details[open] summary { margin-bottom: .5rem; }

.article__author-box { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.article__author-box h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.article__author-role { color: hsl(var(--jade)); font-size: .85rem; margin: 0 0 .5rem; }

.related { margin-top: 3rem; }
.related__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.25rem; }

/* Static page */
.static-page { padding: 2rem 1.25rem 3.5rem; }
.static-page__title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 1rem 0 1.5rem; }

/* Sidebar + widgets */
.sidebar { display: grid; gap: 1.5rem; }
.widget { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.25rem; }
.widget-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .75rem; font-family: 'Sora', sans-serif; }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.widget a { color: hsl(var(--fg)); }
.widget a:hover { color: hsl(var(--jade)); }

/* Search filters */
.search-filters { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.search-filters select { padding: .55rem .8rem; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); }
.search-form { display: flex; gap: .5rem; margin: 1rem 0; }
.search-field { flex: 1; padding: .6rem .8rem; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); }

/* Pagination */
.pagination, .nav-links { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0 0; flex-wrap: wrap; }
.pagination a, .pagination span, .nav-links a, .nav-links span { padding: .45rem .8rem; border: 1px solid hsl(var(--border)); border-radius: .5rem; font-size: .9rem; }
.pagination .current, .nav-links .current { background: hsl(var(--jade)); color: hsl(var(--bg)); border-color: hsl(var(--jade)); }

.empty-state { text-align: center; padding: 3rem 1rem; color: hsl(var(--muted-fg)); }
.error-404 { text-align: center; padding: 5rem 0; }
.error-404__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: hsl(var(--jade)); margin: 0; line-height: 1; }

/* Footer */
.site-footer { background: hsl(168 30% 4%); color: hsl(45 25% 95%); margin-top: 3rem; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 3rem 1.25rem 2rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer__brand .site-logo svg { color: hsl(45 25% 95%); }
.site-footer__desc { color: hsl(45 25% 95% / .7); font-size: .9rem; margin: .75rem 0 0; }
.site-footer__heading { font-size: .95rem; font-weight: 700; margin: 0 0 .75rem; color: hsl(var(--gold)); }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.site-footer__nav a { color: hsl(45 25% 95% / .8); font-size: .9rem; }
.site-footer__nav a:hover { color: hsl(var(--gold)); }
.site-footer__sub { font-size: .85rem; color: hsl(45 25% 95% / .7); margin: 0 0 .75rem; }
.site-footer__bottom { border-top: 1px solid hsl(45 25% 95% / .12); padding: 1.25rem; text-align: center; font-size: .82rem; color: hsl(45 25% 95% / .6); }

/* Newsletter form */
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 12rem; padding: .6rem .8rem; border-radius: var(--radius); border: 1px solid hsl(45 25% 95% / .2); background: hsl(168 30% 8%); color: hsl(45 25% 95%); }
.newsletter-form input::placeholder { color: hsl(45 25% 95% / .4); }
.newsletter-msg { font-size: .85rem; margin-top: .5rem; color: hsl(var(--gold)); }

/* Mobile floating banner */
.asia2000-mobile-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none;
  background: linear-gradient(90deg, hsl(164 62% 24%), hsl(158 50% 40%));
  color: hsl(40 33% 97%);
  box-shadow: 0 -6px 24px hsl(168 40% 4% / .35);
}
.asia2000-mobile-banner__link { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1rem; color: inherit; font-weight: 700; text-decoration: none; animation: asia2000-banner-rise 480ms cubic-bezier(.22,1,.36,1) both; }
.asia2000-mobile-banner__link:hover { text-decoration: none; filter: brightness(1.08); }
.asia2000-mobile-banner__text { font-size: .95rem; }
@keyframes asia2000-banner-rise {
  from { transform: translate3d(0, 120%, 0); opacity: 0; }
  to   { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Contact form */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form textarea { padding: .65rem .8rem; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); font-family: inherit; }
.contact-form textarea { min-height: 140px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .asia2000-mobile-banner__link { animation: none; }
  * { scroll-behavior: auto !important; }
}
