:root {
  color-scheme: dark;
  --navy: #0d1928;
  --deep: #081321;
  --surface: #122336;
  --surface-hover: #172c44;
  --ink: #f3f2ec;
  --muted: #b8c4d0;
  --subtle: #a4b8c8;
  --line: #31475c;
  --gold: #d8be80;
  --gold-dim: #7a6e4d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --my: "Noto Sans Myanmar", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--navy); font: 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; color: var(--navy); background: var(--ink); padding: 12px 18px; border-radius: 4px; font-weight: 500; }
.skip-link:focus { top: 12px; }
.local-preview { padding: 12px 24px; background: #25423f; color: #eef2e6; font-size: 12px; text-align: center; }

/* Sticky editorial header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(13, 25, 40, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand > span { font: 500 26px/1.1 var(--serif); }
.brand small { display: block; font: 600 10px var(--sans); letter-spacing: .22em; margin-top: 6px; color: var(--gold); }

.site-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 13px; color: var(--muted); }
.site-navigation a { padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; transition: color .15s; }
.site-navigation a:hover,
.site-navigation a[aria-current="page"],
.header-research:hover { color: var(--gold); }

.header-controls { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-research { font-size: 13px; color: var(--gold); padding: 10px 0; border-bottom: 1px solid var(--gold-dim); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, color .15s; }
.header-research:hover { border-bottom-color: var(--gold); color: #fff1c8; }

.lang-switch { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--deep); }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  min-height: 40px;
  min-width: 48px;
  font-size: 12px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--gold); color: var(--deep); font-weight: 600; }

main > section { max-width: 1240px; padding-inline: 24px; margin: auto; scroll-margin-top: 96px; }

/* Hero */
.gateway-hero { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 80px; padding-block: 72px 60px; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 16px; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.03em; margin: 0; }
h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.14; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 600px; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 20px;
  min-height: 48px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
}
.button-gold { color: var(--deep); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.button-gold:hover { background: #e5d39f; border-color: #e5d39f; }
.button-outline { color: var(--gold); background: transparent; border-color: var(--gold-dim); }
.button-outline:hover { background: rgba(216, 190, 128, 0.12); border-color: var(--gold); }

.gateway-principle { border-left: 1px solid #716447; padding: 16px 0 16px 32px; }
.chapter-label { font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--subtle); }
.gateway-principle p { font: 400 21px/1.75 var(--serif); color: #dde4e8; margin: 20px 0; }
.principle-rule { height: 1px; width: 56px; background: #716447; margin-bottom: 16px; }
.gateway-principle small { display: block; color: var(--subtle); font-size: 12px; line-height: 1.85; max-width: 300px; }

/* Trust & Proof Strip */
.proof-strip { padding-block: 0 56px; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 35, 54, 0.55);
}
.proof-item { padding: 20px 24px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font: 500 17px/1.4 var(--serif); color: var(--gold); margin-bottom: 4px; }
.proof-item span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* See What's Inside Preview */
.preview-section { padding-block: 24px 72px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.preview-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(18, 35, 54, 0.92), rgba(8, 19, 33, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
}
.preview-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(216, 190, 128, 0.12);
  border: 1px solid rgba(216, 190, 128, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.preview-meta { font-size: 12px; font-weight: 500; color: var(--subtle); margin-bottom: 8px; }
.preview-card h3 { font: 500 22px/1.4 var(--serif); margin: 0 0 12px; color: var(--ink); }
.preview-card p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0 0 20px; flex: 1; }
.preview-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.preview-tags li {
  font-size: 11px;
  color: #d7e2cc;
  border: 1px solid #485e54;
  background: rgba(72, 94, 84, 0.22);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Section Headings */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; }
.section-heading > p { max-width: 340px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Products */
.product-section { padding-block: 64px 72px; border-top: 1px solid var(--line); }
.product-directory { border-top: 1px solid var(--line); }
.product-row { display: grid; grid-template-columns: 36px 1fr 1.5fr 164px; align-items: center; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.product-number { font-size: 12px; color: var(--subtle); align-self: start; padding-top: 8px; font-weight: 500; }
.product-kind { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.product-name h3 { font: 500 23px/1.45 var(--serif); margin: 0; }
.product-description p { font-size: 14px; color: #d5dde3; margin: 0 0 16px; line-height: 1.8; }
.product-status { display: inline-block; font-size: 11px; font-weight: 500; color: #d7e2cc; border: 1px solid #536356; background: rgba(83, 99, 86, 0.16); padding: 4px 10px; border-radius: 3px; }
.product-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gold-dim); color: var(--gold); font-size: 13px; min-height: 44px; transition: color .15s, border-color .15s; }
.product-action:hover { color: #fff1c8; border-bottom-color: var(--gold); }

/* Audience / Starting Points */
.audience-section { padding-block: 64px 72px; border-top: 1px solid var(--line); }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.audience-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .15s, background .15s;
}
.audience-card:hover { border-color: var(--gold-dim); background: var(--surface-hover); }
.audience-tag { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.audience-card h3 { font: 500 22px/1.35 var(--serif); margin: 0 0 12px; color: var(--ink); }
.audience-card p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0 0 24px; flex: 1; }
.audience-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--gold); font-size: 13px; font-weight: 500; min-height: 44px; transition: color .15s; }
.audience-link:hover { color: #fff1c8; }

/* News Preview & Archive */
.news-preview-section { padding-block: 64px 72px; border-top: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 11px; color: var(--subtle); }
.news-category { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.news-card h3 { font: 500 19px/1.45 var(--serif); margin: 0 0 12px; color: var(--ink); }
.news-card h3 a:hover, .news-row h2 a:hover { color: var(--gold); }
.news-card p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0 0 20px; flex: 1; }

.news-list { border-top: 1px solid var(--line); }
.news-row { padding: 32px 0; border-bottom: 1px solid var(--line); }
.news-row h2 { font: 500 26px/1.35 var(--serif); margin: 0 0 12px; }
.news-row p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0 0 12px; max-width: 720px; }

/* Boundaries & FAQ */
.connections { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; padding-block: 72px 80px; border-top: 1px solid var(--line); }
.connections h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; }
.connections > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 440px; margin: 24px 0; }
.text-link { display: inline-flex; align-items: center; color: var(--gold); font-size: 13px; min-height: 44px; padding: 10px 0; border: 0; background: transparent; text-align: left; transition: color .15s; }
.text-link:hover { color: #fff1c8; }

.access-questions details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.access-questions details:first-child { border-top: 1px solid var(--line); }
.access-questions summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  color: var(--ink);
}
.access-questions summary::-webkit-details-marker { display: none; }
.access-questions summary::after { content: "+"; color: var(--gold); font-size: 18px; font-weight: 400; flex-shrink: 0; }
.access-questions details[open] summary::after { content: "−"; }
.access-questions p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 8px 0 4px; }

/* Services / Support */
.service-section { padding-block: 64px 80px; border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.service-grid article { border-top: 1px solid #486071; padding-top: 24px; }
.service-index { font-size: 11px; font-weight: 600; color: var(--gold); }
.service-grid h3 { font: 500 22px/1.35 var(--serif); margin: 14px 0; }
.service-grid p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0 0 12px; }
.service-grid small { display: block; color: var(--subtle); line-height: 1.8; font-size: 12px; margin-top: 10px; }
.service-grid code { display: block; font-size: 12px; color: #d7e1de; padding: 12px 14px; background: var(--deep); border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; margin: 8px 0 4px; }
.social-links-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.social-links-list a { display: inline-flex; align-items: center; padding: 6px 0; color: var(--gold); font-size: 13px; min-height: 40px; transition: color .15s; }
.social-links-list a:hover { color: #fff1c8; }
.social-links-row { display: flex; flex-wrap: wrap; gap: 12px; }
#copy-status { color: var(--gold); font-size: 12px; min-height: 20px; margin-top: 12px; }

/* Content Pages (About, News, Article, Policies) */
.content-page { max-width: 840px; margin: 0 auto; padding: 56px 24px 88px; }
.content-page-wide { max-width: 1040px; }
.policy-back { display: inline-flex; align-items: center; color: var(--gold); font-size: 13px; margin-bottom: 24px; padding: 10px 0; min-height: 44px; }
.policy-back:hover { color: #fff1c8; }
.page-hero { margin-bottom: 40px; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.2; margin-bottom: 16px; }
.page-lead { color: var(--muted); font-size: 16px; line-height: 1.85; margin: 0; }
.content-section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 32px; scroll-margin-top: 96px; }
.content-section h2 { font-size: 26px; margin-bottom: 16px; }
.content-section p, .article-body p { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0 0 18px; }
.content-section p:last-child, .article-body p:last-child { margin-bottom: 0; }
.article-body { border-top: 1px solid var(--line); padding-top: 32px; }
.apply-callout {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
}
.apply-callout h2 { font-size: 24px; margin-bottom: 12px; }
.apply-callout p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0 0 20px; }
.studio-return { margin: 20px 0 0 !important; font-size: 13px !important; color: var(--subtle) !important; }
.inline-gold-link { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.inline-gold-link:hover { color: #fff1c8; }

/* Bookseller Guide (/sell/ & /my/sell/) */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 600; }
.tier-excluded { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tier-excluded-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--subtle); }
.exclude-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.exclude-list li { position: relative; padding-left: 22px; color: var(--subtle); font-size: 13px; line-height: 1.75; }
.exclude-list li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--gold-dim); font-weight: 600; }

.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.tier-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tier-card-featured { border-color: var(--gold-dim); background: linear-gradient(180deg, rgba(18, 35, 54, 0.96), rgba(8, 19, 33, 0.98)); }
.tier-card h3 { font: 500 20px/1.4 var(--serif); margin: 0 0 16px; color: var(--ink); }
.csv-download-wrap { margin-top: 20px; }

.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.step-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.step-num { display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .14em; margin-bottom: 10px; }
.step-card h3 { font: 500 20px/1.4 var(--serif); margin: 0 0 10px; color: var(--ink); }
.step-card p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding: 48px max(24px, calc((100vw - 1240px) / 2)) 32px;
}
.footer-lead p { color: var(--subtle); font-size: 13px; margin: 16px 0 0; max-width: 320px; line-height: 1.8; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #c7d3dc; }
.footer-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin-bottom: 8px; }
.site-footer nav a { min-height: 36px; display: inline-flex; align-items: center; transition: color .15s; }
.site-footer nav a:hover { color: var(--gold); }
.footer-bottom { grid-column: 1 / -1; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 12px; }

/* Bilingual Myanmar typography overrides */
html[lang="my"] body { font-family: var(--my); font-size: 15px; line-height: 1.9; letter-spacing: 0; }
html[lang="my"] p { text-wrap: pretty; }
html[lang="my"] h1,
html[lang="my"] h2,
html[lang="my"] h3,
html[lang="my"] .gateway-principle p,
html[lang="my"] .proof-item strong { font-family: var(--my); letter-spacing: 0; line-height: 1.48; font-weight: 600; text-wrap: balance; }
html[lang="my"] h1 { font-size: clamp(28px, 3.6vw, 44px); }
html[lang="my"] .eyebrow,
html[lang="my"] .product-kind,
html[lang="my"] .audience-tag,
html[lang="my"] .chapter-label,
html[lang="my"] .news-category,
html[lang="my"] .footer-col-title,
html[lang="my"] .brand small { font-family: var(--my); letter-spacing: 0; text-transform: none; font-size: 12px; }
html[lang="my"] .brand small { font-size: 11px; }

/* Responsive */
@media (max-width: 1050px) {
  .site-header { flex-wrap: wrap; gap: 12px 20px; min-height: 76px; }
  .site-navigation { order: 3; width: 100%; justify-content: flex-start; gap: 8px 20px; border-top: 1px solid rgba(49, 71, 92, 0.6); padding-top: 4px; }
  .gateway-hero { gap: 48px; padding-block: 56px 48px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(1), .proof-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .preview-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 28px 1fr 1.4fr; gap: 20px; }
  .product-action { grid-column: 2 / -1; justify-self: start; min-width: 170px; }
  .audience-grid, .news-grid, .tier-grid, .steps-grid { grid-template-columns: 1fr; }
  .connections { gap: 48px; }
  .service-grid { gap: 24px; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .site-header { padding-inline: 16px; }
  .brand > span { font-size: 22px; }
  .brand img { width: 34px; height: 34px; }
  .header-research { font-size: 12px; }
  .site-navigation { font-size: 12px; gap: 4px 16px; flex-wrap: wrap; padding-top: 6px; }
  .site-navigation a { white-space: nowrap; min-height: 36px; padding: 6px 0; }
  .gateway-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 40px; }
  h1 { font-size: 34px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .gateway-principle { padding: 4px 0 4px 20px; }
  .gateway-principle p { font-size: 19px; margin: 14px 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .proof-item:last-child { border-bottom: 0; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-heading > p { max-width: none; }
  .product-row { grid-template-columns: 24px 1fr; gap: 12px; padding: 28px 0; }
  .product-description, .product-action { grid-column: 2; }
  .product-name h3 { font-size: 22px; }
  .connections, .service-grid { grid-template-columns: 1fr; }
  .connections { gap: 36px; padding-block: 48px; }
  .service-grid { gap: 32px; }
  .site-footer { grid-template-columns: 1fr; padding-inline: 20px; }
}

@media (max-width: 440px) {
  .header-research { display: none; }
  main > section, .content-page { padding-inline: 16px; }
  .lang-btn { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
