:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f1310;
  --muted: #78716c;
  --line: #e7e0d6;
  --blue: #ea580c;
  --cyan: #0d9488;
  --navy: #1f1310;
  --shadow: 0 18px 55px rgba(31, 19, 16, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.main { min-height: 62vh; padding-top: 68px; }
.eyebrow { color: #fb923c; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.gradient-text { background: linear-gradient(90deg, #ea580c, #0d9488); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.section { padding: 70px 0; }
.section-soft { background: #f5efe6; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 5px 0 0; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.15; letter-spacing: -.04em; }
.section-head p { margin: 0; max-width: 560px; color: var(--muted); }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 68px; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.is-scrolled { border-color: rgba(231,224,214,.9); box-shadow: 0 8px 30px rgba(31,19,16,.07); backdrop-filter: blur(16px); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 900; letter-spacing: -.04em; }
.brand img { width: 37px; height: 37px; border-radius: 11px; object-fit: cover; box-shadow: 0 8px 18px rgba(234,88,12,.20); }
.desktop-nav { display: flex; align-items: center; gap: 3px; }
.desktop-nav a { padding: 9px 12px; border-radius: 10px; color: #57534e; font-size: .82rem; font-weight: 700; transition: .2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--blue); background: #fff7ed; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: #f5efe6; cursor: pointer; }
.mobile-menu, .menu-overlay { display: none; }

.hero { position: relative; overflow: hidden; min-height: 565px; display: grid; align-items: center; color: #fff; background: #1a0f0a; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(18,10,6,.96), rgba(15,23,42,.72) 55%, rgba(180,83,9,.42)); z-index: 1; }
.hero-bg, .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: radial-gradient(circle at 1px 1px, rgba(251,146,60,.25) 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(to right, #000, transparent 80%); }
.hero-content { position: relative; z-index: 2; padding: 80px 0; max-width: 820px; }
.hero h1 { margin: 10px 0 20px; max-width: 800px; font-size: clamp(2.65rem, 6.5vw, 5.4rem); line-height: .99; letter-spacing: -.065em; }
.hero-copy { max-width: 660px; color: #e7e0d6; font-size: clamp(1rem, 2vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; border-radius: 12px; font-size: .86rem; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(90deg, #ea580c, #c2410c); box-shadow: 0 12px 30px rgba(234,88,12,.35); }
.button-ghost { color: #e7e0d6; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; color: #a8a29e; font-size: .78rem; }
.hero-stats strong { display: block; color: #fff; font-size: 1.18rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { position: relative; overflow: hidden; min-height: 166px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.9); transition: .25s; }
.category-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -58px; bottom: -74px; border-radius: 999px; background: color-mix(in srgb, var(--category) 12%, transparent); transition: .3s; }
.category-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--category) 35%, #fff); box-shadow: var(--shadow); }
.category-card:hover::after { transform: scale(1.2); }
.category-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 13px; color: #fff; background: var(--category); font-size: 1.15rem; font-weight: 900; box-shadow: 0 10px 24px color-mix(in srgb, var(--category) 25%, transparent); }
.category-card h3 { margin: 0 0 5px; font-size: 1.02rem; }
.category-card p { margin: 0; max-width: 88%; color: var(--muted); font-size: .79rem; line-height: 1.55; }
.category-count { display: inline-block; margin-top: 14px; color: var(--category); font-size: .72rem; font-weight: 800; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { overflow: hidden; height: 100%; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: .25s; }
.article-card:hover { transform: translateY(-5px); border-color: #fed7aa; box-shadow: var(--shadow); }
.card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, #fed7aa, #ffedd5); }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.article-card:hover .card-image { transform: scale(1.045); }
.card-badge { position: absolute; top: 13px; left: 13px; padding: 5px 9px; color: #fff; border-radius: 999px; background: var(--category, #ea580c); font-size: .63rem; font-weight: 800; box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 9px; font-size: 1.03rem; line-height: 1.35; letter-spacing: -.02em; }
.card-body p { display: -webkit-box; margin: 0 0 15px; overflow: hidden; color: var(--muted); font-size: .79rem; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid #f5efe6; color: #a8a29e; font-size: .68rem; }
.featured { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 390px; margin-bottom: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 20px 65px rgba(31,19,16,.08); }
.featured-media { position: relative; min-height: 330px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.featured:hover .featured-media img { transform: scale(1.035); }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.featured-copy h2 { margin: 11px 0 14px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.13; letter-spacing: -.045em; }
.featured-copy p { margin: 0 0 20px; color: var(--muted); }

/* Homepage structure mirrors the source site's editorial layout. */
.featured-stories { position: relative; overflow: hidden; padding: 42px 0 34px; background: linear-gradient(135deg, #1f1310, #3b1f0f 55%, #1f1310); }
.featured-stories::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at 1px 1px, #fb923c 1px, transparent 0); background-size: 30px 30px; }
.featured-stories .container { position: relative; z-index: 1; }
.feature-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #fb923c; font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.story-carousel { position: relative; overflow: hidden; border-radius: 22px; background: #120a06; box-shadow: 0 28px 70px rgba(18,10,6,.45); }
.carousel-track { position: relative; aspect-ratio: 21/9; min-height: 390px; }
.carousel-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .48s ease, visibility .48s ease; }
.carousel-slide.is-active { visibility: visible; opacity: 1; }
.carousel-slide > img { width: 100%; height: 100%; object-fit: cover; }
.carousel-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,10,6,.96), rgba(18,10,6,.40) 65%, rgba(18,10,6,.12)); }
.carousel-copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-start; flex-direction: column; padding: clamp(24px, 5vw, 48px); color: #fff; }
.carousel-copy strong { max-width: 760px; margin: 13px 0 8px; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.16; letter-spacing: -.03em; }
.carousel-summary { display: -webkit-box; max-width: 720px; overflow: hidden; color: #e7e0d6; font-size: .86rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.carousel-copy small { margin-top: 12px; color: #a8a29e; }
.carousel-arrow { position: absolute; z-index: 3; top: 50%; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; color: #fff; background: rgba(18,10,6,.55); backdrop-filter: blur(8px); cursor: pointer; transform: translateY(-50%); opacity: 0; transition: .2s; font-size: 1.5rem; }
.story-carousel:hover .carousel-arrow, .carousel-arrow:focus-visible { opacity: 1; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { position: absolute; z-index: 3; right: 28px; bottom: 24px; display: flex; gap: 7px; }
.carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.42); cursor: pointer; transition: .25s; }
.carousel-dots button.is-active { width: 27px; background: #fff; }
.home-heading { margin-bottom: 28px; }
.home-heading > span { color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.home-heading h2 { margin: 3px 0 0; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -.04em; }
.home-heading h2 b { font-weight: inherit; background: linear-gradient(90deg, #ea580c, #0d9488); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-heading p { max-width: 680px; margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.home-heading.centered { text-align: center; }
.home-heading.centered p { margin-inline: auto; }
.editor-picks { display: grid; gap: 20px; }
.editor-main { display: grid; grid-template-columns: 3fr 2fr; min-height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: .25s; }
.editor-main:hover, .latest-feature:hover, .medium-story:hover, .mini-story:hover, .compact-story:hover { border-color: #fed7aa; box-shadow: var(--shadow); transform: translateY(-3px); }
.editor-main-media { position: relative; overflow: hidden; }
.editor-main-media > img { width: 100%; height: 100%; object-fit: cover; }
.editor-main-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 55%, rgba(18,10,6,.40)); }
.editor-label { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 5px 9px; border-radius: 99px; color: #fff; background: rgba(18,10,6,.52); backdrop-filter: blur(8px); font-size: .68rem; font-weight: 800; }
.editor-main-copy { display: flex; justify-content: center; flex-direction: column; padding: 30px; }
.editor-main-copy h3 { margin: 12px 0 9px; font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.25; letter-spacing: -.035em; }
.editor-main-copy p { margin: 0 0 13px; color: var(--muted); font-size: .84rem; }
.editor-main-copy small { color: #a8a29e; }
.editor-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mini-story, .compact-story { display: flex; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .25s; }
.mini-story > img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.mini-story > span, .compact-story > span { min-width: 0; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; }
.mini-story small, .compact-story small, .trending-list small { display: inline-block; padding: 2px 6px; border-radius: 5px; color: #fff; font-size: .56rem; font-weight: 800; font-style: normal; }
.mini-story strong { display: -webkit-box; margin: 5px 0; overflow: hidden; font-size: .84rem; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-story em, .compact-story em, .trending-list em { color: #a8a29e; font-size: .64rem; font-style: normal; }
.latest-mixed { display: grid; gap: 20px; }
.latest-feature { display: grid; grid-template-columns: 2fr 3fr; min-height: 290px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: .25s; }
.latest-feature-media { position: relative; min-height: 280px; }
.latest-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.latest-feature-copy { display: flex; justify-content: center; flex-direction: column; padding: 32px; }
.editor-choice { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.editor-choice::before { content: ""; width: 4px; height: 18px; border-radius: 99px; background: var(--category); }
.latest-feature-copy h3 { margin: 11px 0; font-size: clamp(1.4rem, 2.7vw, 2.1rem); line-height: 1.18; letter-spacing: -.04em; }
.latest-feature-copy p { margin: 0 0 14px; color: var(--muted); font-size: .88rem; }
.latest-feature-copy small { color: #a8a29e; }
.latest-medium-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.medium-story { display: grid; grid-template-columns: 2fr 3fr; min-height: 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: .25s; }
.medium-story > div { position: relative; }
.medium-story > div img { width: 100%; height: 100%; object-fit: cover; }
.medium-story > span { display: flex; justify-content: center; flex-direction: column; padding: 20px; }
.medium-story strong { font-size: 1rem; line-height: 1.35; }
.medium-story p { display: -webkit-box; margin: 8px 0 12px; overflow: hidden; color: var(--muted); font-size: .75rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.medium-story small { color: #a8a29e; }
.latest-small-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.compact-story { min-width: 0; }
.compact-story > img { flex: 0 0 78px; width: 78px; height: 78px; border-radius: 9px; object-fit: cover; }
.compact-story strong { display: -webkit-box; margin: 4px 0; overflow: hidden; font-size: .77rem; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deep-dive { position: relative; display: block; min-height: 390px; overflow: hidden; border-radius: 22px; background: #120a06; }
.deep-dive > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.deep-dive:hover > img { transform: scale(1.035); }
.deep-dive-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,10,6,.95), rgba(18,10,6,.58) 58%, rgba(18,10,6,.14)), linear-gradient(to top, rgba(2,6,23,.65), transparent); }
.deep-dive-copy { position: relative; min-height: 390px; max-width: 760px; display: flex; align-items: flex-start; justify-content: flex-end; flex-direction: column; padding: clamp(27px, 5vw, 48px); color: #fff; }
.deep-dive-copy > small:first-child { color: #fb923c; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.deep-dive-copy em { margin-top: 12px; padding: 3px 8px; border-radius: 99px; font-size: .62rem; font-weight: 800; font-style: normal; }
.deep-dive-copy strong { margin: 12px 0 8px; font-size: clamp(1.5rem, 3.2vw, 2.55rem); line-height: 1.16; letter-spacing: -.04em; }
.deep-dive-copy > span { display: -webkit-box; overflow: hidden; color: #e7e0d6; font-size: .85rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deep-dive-copy > small:last-child { margin-top: 13px; color: #a8a29e; }
.about-home { position: relative; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url('/assets/category/hero-tech-bg.png') center/cover; }
.about-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-home-card { padding: 27px; border: 1px solid #fed7aa; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 12px 35px rgba(31,19,16,.05); }
.about-home-card i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #ea580c; background: #fff7ed; font-size: 1.25rem; font-style: normal; }
.about-home-card h3 { margin: 15px 0 7px; font-size: 1rem; }
.about-home-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.trending-wrap { max-width: 850px; }
.trending-list { display: grid; gap: 12px; }
.trending-list a { display: flex; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.9); transition: .2s; }
.trending-list a:hover { border-color: #fed7aa; box-shadow: 0 10px 30px rgba(31,19,16,.07); }
.trending-list a > i { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: linear-gradient(135deg, #ea580c, #0d9488); font-size: .74rem; font-weight: 850; font-style: normal; }
.trending-list a > span { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; }
.trending-list strong { margin: 5px 0 3px; font-size: .92rem; line-height: 1.35; }
.popular-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.popular-story { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 128px; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: .25s; }
.popular-story:hover { transform: translateY(-3px); border-color: #fed7aa; box-shadow: var(--shadow); }
.popular-story > img { width: 112px; height: 96px; border-radius: 11px; object-fit: cover; }
.popular-rank { position: absolute; top: 7px; left: 7px; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: rgba(31,19,16,.85); backdrop-filter: blur(6px); font-size: .62rem; font-weight: 900; }
.popular-copy { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; }
.popular-copy small { font-size: .61rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.popular-copy strong { display: -webkit-box; margin: 5px 0 8px; overflow: hidden; font-size: .91rem; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.popular-copy em { color: #a8a29e; font-size: .65rem; font-style: normal; }

.page-hero { position: relative; overflow: hidden; min-height: 310px; display: flex; align-items: center; color: #fff; background: #1f1310; }
.page-hero-content { position: relative; z-index: 2; padding: 66px 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: #a8a29e; font-size: .76rem; }
.breadcrumbs a:hover { color: #fff; }
.page-hero h1 { margin: 8px 0 10px; max-width: 900px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.055em; }
.page-hero p { max-width: 730px; margin: 0; color: #e7e0d6; }
.category-title-row { display: flex; align-items: center; gap: 18px; }
.category-title-row .category-icon { flex: 0 0 auto; width: 58px; height: 58px; margin: 0; border-radius: 18px; }

.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 38px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #57534e; font-size: .78rem; font-weight: 750; }
.pagination a:hover, .pagination .current { color: #fff; border-color: var(--blue); background: var(--blue); }
.pagination .disabled { color: #e7e0d6; background: #faf7f2; }

.article-hero { position: relative; min-height: 480px; display: flex; align-items: end; overflow: hidden; color: #fff; background: #1f1310; }
.article-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,10,6,.40), rgba(18,10,6,.95)); }
.article-hero-content { position: relative; z-index: 2; width: 100%; padding: 60px 0 54px; }
.article-hero h1 { max-width: 900px; margin: 13px 0 17px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }
.article-lead { max-width: 800px; margin: 0; color: #fed7aa; font-size: clamp(.95rem, 2vw, 1.09rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 23px; color: #e7e0d6; font-size: .76rem; }
.reading-progress { position: fixed; z-index: 80; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, #ea580c, #fb923c); box-shadow: 0 0 12px rgba(244,63,94,.5); }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 45px; align-items: start; padding: 52px 0 75px; }
.article-layout.no-toc { grid-template-columns: minmax(0, 960px); justify-content: center; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: 0 12px 35px rgba(31,19,16,.06); }
.toc strong { display: block; margin-bottom: 12px; font-size: .83rem; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.toc a.sub { padding-left: 12px; color: #a8a29e; }
.toc a:hover { color: var(--blue); }
.article-panel { min-width: 0; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 22px 75px rgba(31,19,16,.07); }
.article-body { color: #44403c; font-size: 1.015rem; line-height: 1.85; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { color: #1f1310; line-height: 1.25; letter-spacing: -.035em; scroll-margin-top: 95px; }
.article-body h2 { margin: 2.3em 0 .75em; padding-bottom: .4em; border-bottom: 1px solid #e7e0d6; font-size: 1.75rem; }
.article-body h3 { margin: 1.8em 0 .65em; font-size: 1.34rem; }
.article-body p { margin: 1.1em 0; }
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-color: #fed7aa; text-underline-offset: 3px; }
.article-body img { width: auto; max-height: 720px; margin: 1.7em auto; border-radius: 15px; box-shadow: 0 14px 40px rgba(31,19,16,.13); }
.article-body blockquote { margin: 1.6em 0; padding: 10px 20px; border-left: 4px solid #fb923c; border-radius: 0 12px 12px 0; background: #fff7ed; color: #57534e; }
.article-body pre { overflow: auto; padding: 18px; border-radius: 14px; background: #1f1310; color: #e7e0d6; }
.article-body code { padding: .15em .35em; border-radius: 5px; background: #f5efe6; font-size: .88em; }
.article-body pre code { padding: 0; background: transparent; }
.article-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.disclaimer { margin-top: 38px; padding: 18px 20px; border: 1px solid #fde68a; border-radius: 15px; background: #fffbeb; color: #92400e; font-size: .76rem; }

.content-page { padding: 70px 0; }
.content-card { max-width: 900px; margin: 0 auto; padding: clamp(25px, 5vw, 54px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.content-card h2 { margin-top: 1.7em; font-size: 1.5rem; letter-spacing: -.03em; }
.content-card p, .content-card li { color: #57534e; }
.content-card a { color: var(--blue); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 25px 0; }
.info-box { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #faf7f2; }
.info-box h3 { margin: 0 0 7px; font-size: .95rem; }
.info-box p { margin: 0; font-size: .83rem; }

.site-footer { color: #a8a29e; background: #1f1310; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 70px; padding: 60px 0 42px; }
.footer-brand p { max-width: 390px; margin-top: 15px; color: #78716c; font-size: .83rem; }
.footer-title { margin: 0 0 15px; color: #fff; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #78716c; font-size: .8rem; }
.footer-links a:hover { color: #fb923c; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 30px; border-top: 1px solid #2e1f18; color: #78716c; font-size: .72rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); }

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; place-items: center; }
  .menu-overlay { display: block; position: fixed; z-index: 59; inset: 0; visibility: hidden; opacity: 0; background: rgba(18,10,6,.50); transition: .25s; }
  .menu-overlay.is-open { visibility: visible; opacity: 1; }
  .mobile-menu { display: block; position: fixed; z-index: 60; top: 0; right: 0; width: min(330px, 86vw); height: 100vh; padding: 23px; background: #fff; transform: translateX(102%); transition: transform .28s ease; box-shadow: -24px 0 60px rgba(18,10,6,.25); }
  .mobile-menu.is-open { transform: none; }
  .mobile-menu .brand { margin-bottom: 28px; }
  .mobile-menu nav { display: grid; gap: 5px; }
  .mobile-menu nav a { padding: 12px 14px; border-radius: 11px; color: #57534e; font-weight: 750; }
  .mobile-menu nav a:hover { color: var(--blue); background: #fff7ed; }
  .category-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-copy { padding: 28px; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .footer-grid { gap: 35px; }
  .carousel-track { aspect-ratio: 16/9; min-height: 360px; }
  .latest-small-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 50px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .hero { min-height: 540px; }
  .hero-content { padding: 66px 0; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-stats { gap: 17px; }
  .category-grid, .article-grid, .info-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 150px; }
  .featured-copy { padding: 23px; }
  .page-hero { min-height: 290px; }
  .category-title-row { align-items: flex-start; }
  .category-title-row .category-icon { width: 48px; height: 48px; border-radius: 14px; }
  .article-hero { min-height: 0; display: block; background: #1f1310; }
  .article-hero-image { position: relative; inset: auto; height: 340px; object-position: center 58%; }
  .article-hero::after { display: none; }
  .article-hero-content { padding: 30px 0 38px; background: #1f1310; }
  .article-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .article-panel { border-radius: 18px; }
  .article-body { font-size: .96rem; }
  .article-body h2 { font-size: 1.45rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .featured-stories { padding: 24px 0 22px; }
  .carousel-track { min-height: 410px; aspect-ratio: 4/5; }
  .carousel-copy strong { font-size: clamp(1.65rem, 8.5vw, 2.25rem); line-height: 1.13; }
  .carousel-summary { -webkit-line-clamp: 3; }
  .carousel-dots { right: 20px; bottom: 18px; }
  .carousel-arrow { display: none; }
  .editor-main, .latest-feature, .medium-story { grid-template-columns: 1fr; }
  .editor-main-media, .latest-feature-media, .medium-story > div { min-height: 220px; aspect-ratio: 16/10; }
  .editor-main-media::after { background: linear-gradient(to top, rgba(18,10,6,.40), transparent); }
  .editor-mini-grid, .latest-medium-grid, .latest-small-grid, .about-home-grid { grid-template-columns: 1fr; }
  .mini-story > img { flex-basis: 86px; width: 86px; height: 86px; }
  .compact-story > img { flex-basis: 82px; width: 82px; height: 82px; }
  .deep-dive, .deep-dive-copy { min-height: 470px; }
  .deep-dive-shade { background: linear-gradient(to top, rgba(18,10,6,.95), rgba(18,10,6,.32)); }
  .popular-grid { grid-template-columns: 1fr; }
  .popular-story { grid-template-columns: 96px minmax(0, 1fr); }
  .popular-story > img { width: 96px; height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
