:root {
  --gold: #ffc400;
  --ink: #f5f2e9;
  --muted: #bcb7aa;
  --bg: #080808;
  --panel: #151515;
  --line: #3e351c;
  --surface: #f4f4f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 system-ui, -apple-system, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.tng-blog-card,
.ai-content-disclosure,
.tng-footer-author {
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--gold);
  color: #111;
  font-weight: 750;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Site header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.site-header .nav {
  max-width: 1100px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .logo {
  width: 130px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-header .nav-link:hover {
  color: var(--gold);
}

.btn-cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 9px;
  background: linear-gradient(#8c6900, var(--gold));
  color: #14110a;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 40px;
  align-items: center;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero-copy .kicker {
  color: var(--gold);
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
  margin: 0 0 10px;
}

.hero-copy h1 {
  color: var(--gold);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-copy p {
  color: #ddd;
  margin: 0 0 22px;
  max-width: 52ch;
}

.hero-copy .fine-print {
  margin: 16px 0 0;
  font-size: .85rem;
  color: var(--muted);
  max-width: 46ch;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }
}

/* Article */
.tng-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 56px;
  color: #eee;
  line-height: 1.75;
}

.tng-article h2 {
  color: var(--gold);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 48px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.tng-article h3 {
  color: #ffe085;
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

.tng-article p {
  margin: 0 0 18px;
  text-align: justify;
}

.tng-article ul,
.tng-article ol {
  padding-left: 24px;
  margin: 10px 0 24px;
}

.tng-article li {
  margin: 7px 0;
}

.tng-content-image {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  margin: 0 0 30px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.tng-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.tng-article table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: #111;
}

.tng-article th,
.tng-article td {
  padding: 13px 15px;
  border: 1px solid var(--line);
  text-align: left;
}

.tng-article th {
  background: var(--gold);
  color: #000;
}

.tng-article details {
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 17px;
  margin: 10px 0;
}

.tng-article summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}

.tng-article details p {
  margin: 12px 0 0;
}

.tng-article .disclaimer {
  display: block;
  background: #16130a;
  border-left: 4px solid var(--gold);
  padding: 18px;
  margin-top: 42px;
  color: #ddd;
}

.ai-content-disclosure {
  margin-top: 18px;
  padding: 18px;
  background: #16130a;
  border-left: 4px solid var(--gold);
}

.ai-content-disclosure p {
  margin: 0;
  color: #ddd;
}

@media (max-width: 640px) {
  .tng-article {
    padding: 0 14px 54px;
  }
  .tng-article p {
    text-align: left;
  }
}

/* Blog listing (homepage) */
.tng-blog-listing {
  background: var(--surface);
  padding: 48px 20px;
}

.tng-blog-inner {
  max-width: 1200px;
  margin: auto;
}

.tng-blog-listing h2 {
  margin: 0 0 24px;
  color: #111;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.tng-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tng-blog-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #d8d4c8;
  border-radius: 12px;
  background: #fff;
}

.tng-blog-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.tng-blog-card h3 a {
  color: #161616;
  text-decoration: none;
}

.tng-blog-card h3 a:hover {
  color: #6b4f00;
}

.tng-blog-card p {
  margin: 0 0 12px;
  color: #555;
  line-height: 1.55;
}

.tng-blog-card > a {
  margin-top: auto;
  color: #7a5a00;
  font-weight: 750;
}

@media (max-width: 700px) {
  .tng-blog-grid {
    grid-template-columns: 1fr;
  }
  .tng-blog-listing {
    padding: 36px 16px;
  }
}

/* Footer */
.tng-footer-author {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 0;
  color: var(--ink);
}

.tng-footer-author strong {
  display: block;
  color: var(--gold);
  margin-bottom: 6px;
}

.tng-footer-author span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 28px 22px;
  text-align: center;
  color: var(--muted);
}

.site-footer .footer-nav {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer .footer-nav a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
