/* Static pages (legal, blog, news, 404) outside the 3D ride. Colors and fonts from src/styles.css. */
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/fonts/archivo-vietnamese-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/fonts/archivo-latin-ext-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/fonts/archivo-latin-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-vietnamese-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }


:root {
  --red: #c4161f; --cream: #fff3cf; --yellow: #ffd23a; --ink: #2a0d0b; --night: #070a1c;
  --panel: #10152e; --panel-2: #161c3b; --line: #ffffff17; --text: #eef0fa; --soft: #b7bcd6; --dim: #8a90b0;
  --wide: 'Archivo Variable', 'Inter Variable', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; color: var(--text); font: 17px/1.7 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(80vw 60vh at 90% -10%, #2b1a5a66, transparent 70%), radial-gradient(70vw 50vh at -10% 30%, #5a0e1440, transparent 70%), var(--night) fixed; }
img { display: block; max-width: 100%; }
a { color: var(--yellow); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: #ffe680; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--night); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1160px; }

/* header: the 3D site's night bar */
.top { position: sticky; top: 0; z-index: 5; background: #070a1cd9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1160px; min-height: 68px; margin: 0 auto; padding: 10px 20px; flex-wrap: wrap; }
.brand img { width: auto; height: 34px; }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.top nav a:hover { background: #ffffff14; color: #fff; }
.top nav .pill { background: var(--yellow); color: var(--night); margin-left: 6px; }
.top nav .pill:hover { background: #ffe06b; color: var(--night); }

main { padding: 48px 20px 80px; }
h1, h2, h3 { font-family: var(--wide); font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance; color: #fff; }
h1 { font-size: clamp(32px, 5.4vw, 54px); font-weight: 800; line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: 25px; font-weight: 750; line-height: 1.2; margin: 44px 0 10px; }
h3 { font-size: 20px; font-weight: 700; margin: 28px 0 6px; }
.lede { font-size: 20px; line-height: 1.55; margin: 0 0 14px; color: var(--soft); }
.meta, .muted, time { color: var(--dim); font-size: 15px; }
.eyebrow { margin: 0 0 16px; }
.eyebrow a, .tag { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #ffd23a1f; color: var(--yellow); border: 1px solid #ffd23a40; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* list pages */
.hero { padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 5vw, 52px); }
.hero .kicker { margin: 0 0 12px; color: var(--yellow); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(52px, 10vw, 112px); font-stretch: 120%; line-height: .92; margin-bottom: 18px; padding-bottom: .1em;
  background: linear-gradient(100deg, #fff 30%, #ffd23a 75%, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { max-width: 620px; font-size: clamp(18px, 2vw, 22px); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { position: relative; border-radius: 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 24px 50px -30px #000; transition: transform .3s cubic-bezier(.2,.9,.25,1), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); border-color: #ffd23a66; box-shadow: 0 30px 60px -28px #000, 0 0 0 1px #ffd23a33; }
.card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0b0f24; transition: transform .6s cubic-bezier(.2,.9,.25,1); }
.card:hover img { transform: scale(1.04); }
.card > a > img { border-bottom: 1px solid var(--line); }
.card .body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 20px 24px 22px; background: inherit; }
.card .tag { align-self: flex-start; margin-bottom: 12px; }
.card h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.22; }
.card:hover h2 { color: var(--yellow); }
.card p { margin: 0 0 18px; color: var(--soft); font-size: 15.5px; line-height: 1.6; }
.card .meta { margin-top: auto; font-size: 13.5px; }
.card .meta time { font-size: inherit; }
@media (min-width: 900px) {
  .cards .card:first-child { grid-column: 1 / -1; }
  .cards .card:first-child > a { flex-direction: row; }
  .cards .card:first-child img { width: 58%; aspect-ratio: auto; height: auto; min-height: 340px; align-self: stretch; border-bottom: 0; border-right: 1px solid var(--line); }
  .cards .card:first-child .body { justify-content: center; padding: 40px 44px; }
  .cards .card:first-child h2 { font-size: clamp(28px, 3vw, 38px); font-stretch: 118%; }
  .cards .card:first-child p { font-size: 17px; }
}

/* article */
.article .meta { margin: 0 0 8px; }
.cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 28px 0 4px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px #000; background: #0b0f24; }
.prose { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); color: #dfe2f2; }
.prose li { margin: 8px 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--yellow); transform: rotate(45deg); }
.prose ol { padding-left: 22px; }
.prose ol li::marker { color: var(--yellow); font-weight: 700; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--yellow); background: var(--panel); border-radius: 0 14px 14px 0; }
.prose strong { color: #fff; }
.legal .prose h2 { font-size: 22px; }
.cta { margin: 40px 0; padding: 26px 28px; border-radius: 22px; border: 1px solid #ffd23a40;
  background: radial-gradient(100% 140% at 100% 0%, #3a1f6b 0%, transparent 60%), var(--panel); }
.cta .eyebrow { margin: 0 0 12px; color: var(--yellow); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.cta p { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cta a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 99px; background: var(--yellow); color: var(--night); font-weight: 700; text-decoration: none; }
.cta a:hover { background: #ffe06b; color: var(--night); }
.related { margin-top: 44px; }
.related h2 { font-size: 22px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related li { padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.related li a { font-weight: 700; text-decoration: none; }
.related li time { display: block; font-size: 14px; }

.foot { border-top: 1px solid var(--line); background: #05071499; color: var(--soft); padding: 32px 0; font-size: 15px; }
.foot p { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .card, .card img { transition: none; } .card:hover, .card:hover img { transform: none; } }
