:root {
  --bg: #140505;
  --bg-deep: #220707;
  --surface: rgba(46, 16, 14, 0.88);
  --surface-strong: rgba(58, 20, 16, 0.94);
  --surface-border: rgba(255, 206, 118, 0.24);
  --text: #f6ead7;
  --muted: #d4c0ac;
  --gold: #f5cc6d;
  --gold-strong: #ca8b1f;
  --gold-soft: rgba(245, 204, 109, 0.18);
  --teal: #0f778e;
  --teal-deep: #093d49;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(15, 119, 142, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 204, 109, 0.14), transparent 20%),
    linear-gradient(180deg, #250707 0%, #130404 46%, #090202 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 206, 118, 0.04), transparent 30%),
    linear-gradient(315deg, rgba(15, 119, 142, 0.06), transparent 28%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffe2a0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.8rem 1rem;
  background: #fff7e7;
  color: #140505;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.header-shell > *,
.hero-panel > *,
.footer-grid > *,
.split-columns > *,
.quotes-grid > * {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(10, 3, 3, 0.92), rgba(10, 3, 3, 0.76));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 206, 118, 0.1);
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(180px, 18vw, 280px);
  height: auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: none;
  justify-self: end;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 206, 118, 0.2);
  background: rgba(255, 206, 118, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  position: relative;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -7px;
}

.burger span::after {
  top: 7px;
}

.site-nav ul,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.68rem 0.96rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  font-size: 0.94rem;
  line-height: 1.15;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(255, 206, 118, 0.24);
  transform: translateY(-1px);
}

.header-actions,
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  min-height: 48px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #1c0904;
  background: linear-gradient(135deg, #ffd77c, #cf8f25);
  box-shadow: 0 14px 28px rgba(190, 122, 20, 0.32);
}

.button-secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(12, 90, 110, 0.95), rgba(6, 50, 59, 0.95));
  border: 1px solid rgba(149, 227, 245, 0.18);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 206, 118, 0.18);
}

.page-main {
  padding: 1.6rem 0 3rem;
}

.section-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 1.6rem;
  padding: clamp(1.2rem, 2vw, 2rem);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7d89b;
}

.hero-copy h1,
.redirect-card h1,
.redirect-card h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  line-height: 1.05;
  color: #fff5de;
}

.hero-copy p {
  color: var(--muted);
  max-width: 62ch;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.5rem;
}

.hero-points li {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 206, 118, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 206, 118, 0.18);
  color: #f8e7c8;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 206, 118, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(8, 37, 45, 0.45), rgba(24, 5, 5, 0.2));
  border: 1px solid rgba(255, 206, 118, 0.16);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 7, 7, 0.02), rgba(17, 7, 7, 0.14));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.hero-visual-mobile {
  display: none;
}

.content-panel {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 1.9vw, 2rem);
}

.breadcrumbs-panel {
  margin-bottom: 1rem;
  padding: 0.95rem 1.2rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.96rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: rgba(255, 206, 118, 0.45);
}

.breadcrumbs a {
  color: #f3d899;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff0c2;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

.article-intro {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.toc {
  margin-bottom: 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 92, 111, 0.18), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(146, 231, 246, 0.15);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 700;
  color: #fff2ce;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "▾";
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.toc[open] summary::after {
  transform: rotate(180deg);
}

.toc-body {
  padding: 0 1.2rem 1.2rem;
}

.toc-body::before {
  content: "";
  display: block;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(146, 231, 246, 0.16);
}

.toc ul {
  margin: 0;
  columns: 2;
  gap: 1.5rem;
}

.toc li {
  margin-bottom: 0.6rem;
}

.content-panel section + section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 206, 118, 0.12);
}

.content-panel h2,
.content-panel h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: #fff2ce;
  line-height: 1.15;
}

.content-panel h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
}

.content-panel h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.content-panel p,
.content-panel li {
  color: var(--muted);
}

.content-panel ul,
.content-panel ol {
  padding-left: 1.3rem;
}

.content-panel li + li {
  margin-top: 0.28rem;
}

.split-columns,
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 206, 118, 0.16);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: rgba(20, 5, 5, 0.35);
}

th,
td {
  padding: 0.92rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 206, 118, 0.1);
}

th {
  color: #fff0c9;
  background: rgba(255, 206, 118, 0.08);
  font-weight: 700;
}

blockquote {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 206, 118, 0.11), rgba(255, 255, 255, 0.02));
  border-left: 4px solid var(--gold);
  color: #f1e0c4;
}

.site-footer {
  padding: 2.2rem 0 2.8rem;
}

.footer-shell {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 1.6rem;
  align-items: start;
}

.footer-brand img {
  width: min(280px, 100%);
  margin-bottom: 0.9rem;
}

.footer-brand p,
.footer-note {
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.footer-links a {
  display: inline-flex;
  padding: 0.3rem 0;
}

.redirect-card {
  text-align: center;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
}

.redirect-page .page-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.redirect-card p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0.8rem auto 0;
}

.redirect-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

@media (max-width: 1120px) {
  .header-shell {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 0.8rem;
  }

  .burger {
    display: inline-flex;
    grid-column: 4;
    grid-row: 1;
    width: 52px;
    height: 52px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .site-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.26s ease, opacity 0.26s ease;
  }

  .header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    width: auto;
    min-width: 0;
    padding-top: 0;
    justify-self: end;
  }

  .header-actions .button {
    width: auto;
    white-space: nowrap;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.25rem;
  }

  .nav-toggle:checked + .burger span {
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .burger span::before {
    transform: translateY(7px) rotate(90deg);
  }

  .nav-toggle:checked + .burger span::after {
    opacity: 0;
  }

  .site-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .hero-panel,
  .footer-grid,
  .split-columns,
  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-visual-desktop {
    display: none;
  }

  .hero-visual-mobile {
    display: flex;
    margin: 1rem 0 1.15rem;
  }

  .toc ul,
  .footer-links {
    columns: 1;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .site-header {
    padding: 0.7rem 0;
  }

  .header-shell {
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
    gap: 0.3rem;
  }

  .brand {
    width: 82px;
  }

  .brand img {
    width: 100%;
  }

  .header-actions {
    gap: 0.28rem;
  }

  .header-actions .button {
    min-height: 38px;
    padding: 0.56rem 0.68rem;
    font-size: 0.78rem;
  }

  .burger {
    grid-column: 4;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hero-copy h1,
  .redirect-card h1,
  .redirect-card h2 {
    font-size: 1.95rem;
  }

  .content-panel,
  .hero-panel,
  .footer-shell {
    border-radius: 22px;
  }

  th,
  td {
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 380px) {
  .header-shell {
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
    gap: 0.2rem;
  }

  .brand img {
    width: 100%;
  }

  .brand {
    width: 72px;
  }

  .header-actions {
    gap: 0.2rem;
  }

  .header-actions .button {
    min-height: 35px;
    padding: 0.5rem 0.54rem;
    font-size: 0.72rem;
  }

  .burger {
    width: 36px;
    height: 36px;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    width: 18px;
  }
}
