:root {
  color-scheme: dark;
  --bg: #101512;
  --panel: #18211b;
  --panel-strong: #202b21;
  --text: #f5f7ef;
  --muted: #b7c0b2;
  --line: #334238;
  --accent: #ff8a3d;
  --accent-2: #4fd6b8;
  --accent-3: #d7f35f;
  --danger-soft: #3a231f;
  --danger-line: #815340;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(79, 214, 184, 0.08) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(255, 138, 61, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  border: 1px solid var(--accent-2);
  border-radius: 6px;
  background: var(--panel);
  padding: 0.65rem 0.85rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 21, 18, 0.92);
  padding: 1rem;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 7px;
  background: #16160f;
  color: var(--accent-3);
  font-weight: 900;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.site-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  padding: 0.52rem 0.68rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 1rem;
  min-height: 58vh;
  align-items: end;
  padding: 3.5rem 0 2rem;
}

.hero-copy {
  max-width: 760px;
}

.kicker,
.section-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: 3.1rem;
  line-height: 0.88;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.16rem;
  line-height: 1.2;
}

.hero-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border-color: transparent;
  background: var(--accent);
  color: #17110b;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 43, 33, 0.96), rgba(24, 33, 27, 0.96));
  box-shadow: var(--shadow);
  padding: 1rem;
}

.signal-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(215, 243, 95, 0.45);
  border-radius: 6px;
  color: var(--accent-3);
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.signal-panel strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.signal-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.section,
.verification-note,
.disclaimer-block,
.disclaimer-note,
.editorial-note {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 33, 27, 0.88);
  padding: clamp(1rem, 4vw, 1.5rem);
}

.section-heading {
  max-width: 760px;
}

.section-split {
  display: grid;
  gap: 1rem;
}

.section-split p:last-child,
.article-section p:last-child,
.compact-section > :last-child,
.verification-note p:last-child,
.disclaimer-block p:last-child,
.disclaimer-note p:last-child,
.editorial-note p:last-child {
  margin-bottom: 0;
}

.disclaimer-block {
  border-color: var(--danger-line);
  background: var(--danger-soft);
}

.disclaimer-block strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffd0bd;
}

.disclaimer-note {
  border-color: rgba(129, 83, 64, 0.62);
  background: rgba(58, 35, 31, 0.58);
  padding: 0.8rem 1rem;
}

.disclaimer-note strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #ffd0bd;
  font-size: 0.92rem;
}

.disclaimer-note p,
.editorial-note p {
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-grid {
  display: grid;
  gap: 0.85rem;
}

.guide-card {
  display: block;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 1rem;
  text-decoration: none;
}

.guide-card:hover,
.guide-card:focus {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.guide-card span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.popular-section {
  background: rgba(24, 33, 27, 0.72);
}

.popular-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popular-list a {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 18, 0.42);
  padding: 0.85rem;
  text-decoration: none;
}

.popular-list a:hover,
.popular-list a:focus {
  border-color: var(--accent-2);
}

.popular-title {
  color: var(--text);
  font-weight: 800;
}

.popular-title + span {
  color: var(--muted);
  font-size: 0.95rem;
}

.principle-list,
.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.2rem;
}

.verification-note {
  border-color: rgba(255, 138, 61, 0.65);
  background: rgba(52, 38, 24, 0.9);
}

.verification-note p {
  color: #f5d2bd;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: rgba(16, 21, 18, 0.58);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent-3);
  font-size: 0.86rem;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.related-links a:hover,
.related-links a:focus {
  border-color: var(--accent-2);
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 0;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--text);
}

.editorial-note {
  background: transparent;
  padding: 0.85rem 0;
}

.editorial-note h2 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

@media (min-width: 720px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 4vw, 2rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    min-height: 64vh;
    padding-top: 5rem;
  }

  h1 {
    font-size: 5.4rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .signal-panel {
    align-self: center;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-split {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 980px) {
  h1 {
    font-size: 7.25rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .guide-card,
  .button,
  .related-links a,
  .site-nav a {
    transition:
      border-color 160ms ease,
      background 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }
}
