:root {
  --ink: #14211d;
  --ink-soft: #3f5049;
  --muted: #607069;
  --canvas: #f4f6ef;
  --surface: #ffffff;
  --surface-soft: #e9eee6;
  --lime: #d9ff5d;
  --lime-strong: #c7f53e;
  --blue: #dcefff;
  --peach: #ffe1ce;
  --line: rgba(20, 33, 29, 0.14);
  --line-strong: rgba(20, 33, 29, 0.24);
  --shadow: 0 26px 72px rgba(24, 42, 34, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(217, 255, 93, 0.48), transparent 26rem),
    radial-gradient(circle at 96% 18%, rgba(167, 216, 255, 0.35), transparent 25rem),
    var(--canvas);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #315e4a;
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: none;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(244, 246, 239, 0.9);
  border-bottom: 1px solid rgba(20, 33, 29, 0.09);
  backdrop-filter: blur(18px);
}

.site-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
}

.brand-soft {
  color: #55705f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #43544d;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(20, 33, 29, 0.07);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(20, 33, 29, 0.14);
}

.nav-links .nav-cta:hover {
  color: var(--ink);
  background: var(--lime);
}

.page-main {
  padding: 64px 0 104px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 4%, rgba(217, 255, 93, 0.17), transparent 22rem),
    radial-gradient(circle at 0 100%, rgba(167, 216, 255, 0.11), transparent 28rem),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.page-hero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -170px;
  bottom: -220px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(255, 255, 255, 0.018),
    0 0 0 108px rgba(255, 255, 255, 0.012);
  content: "";
}

.page-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 12px;
  color: var(--lime);
  background: rgba(217, 255, 93, 0.09);
  border: 1px solid rgba(217, 255, 93, 0.2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-kicker::before {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  content: "";
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.page-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.58;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 750;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-meta span::before {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  content: "";
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.31fr) minmax(0, 0.69fr);
  align-items: start;
  gap: clamp(32px, 6vw, 78px);
  margin-top: 64px;
}

.page-aside {
  position: sticky;
  top: 110px;
}

.aside-label {
  margin: 0 0 13px;
  color: #597066;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.toc li {
  border-bottom: 1px solid var(--line);
}

.toc a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.toc a::after {
  color: #8a9992;
  content: "↘";
}

.toc a:hover {
  color: var(--ink);
}

.aside-note {
  margin-top: 24px;
  padding: 18px;
  background: rgba(217, 255, 93, 0.36);
  border: 1px solid rgba(78, 104, 42, 0.18);
  border-radius: var(--radius-md);
}

.aside-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.83rem;
}

.aside-note p {
  margin: 0;
  color: #4e6058;
  font-size: 0.76rem;
  line-height: 1.55;
}

.aside-note a {
  font-weight: 850;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-card {
  scroll-margin-top: 110px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(26, 45, 37, 0.055);
}

.content-card h2 {
  margin: 0 0 13px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.content-card h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

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

.content-card p + p,
.content-card p + ul,
.content-card ul + p {
  margin-top: 13px;
}

.content-card ul,
.content-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.content-card li::marker {
  color: #486758;
  font-weight: 900;
}

.content-card a {
  color: #294d3c;
  font-weight: 850;
}

.content-card strong {
  color: var(--ink);
}

.notice-card {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 255, 93, 0.14), transparent 17rem),
    var(--ink);
  border-color: rgba(255, 255, 255, 0.1);
}

.notice-card p,
.notice-card li {
  color: rgba(255, 255, 255, 0.68);
}

.notice-card a,
.notice-card strong {
  color: var(--lime);
}

.accent-card {
  background: linear-gradient(145deg, rgba(255, 225, 206, 0.72), rgba(255, 255, 255, 0.96));
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.info-tile {
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(20, 33, 29, 0.08);
  border-radius: var(--radius-md);
}

.info-tile strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.info-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.support-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.support-cta .button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid rgba(217, 255, 93, 0.2);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.support-cta .button:hover {
  background: var(--lime-strong);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 850;
  list-style: none;
}

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

.faq-list summary::after {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: var(--surface-soft);
  border-radius: 9px;
  content: "+";
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: -3px 48px 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.78rem;
  text-decoration: none;
}

.quick-links a:hover {
  background: var(--lime);
}

.site-footer {
  color: #dfe9e4;
  background: #0e1814;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(2, minmax(130px, 0.55fr));
  gap: 54px;
  padding: 58px 0 44px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-soft {
  color: #9bb0a6;
}

.footer-intro p {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.footer-group {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}

.footer-group strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--lime);
}

.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.68rem;
}

@media (max-width: 860px) {
  .page-main {
    padding-top: 36px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .page-aside {
    position: static;
  }

  .toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .toc li {
    border-bottom: 1px solid var(--line);
  }

  .toc li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .toc a {
    padding-inline: 14px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    min-height: 70px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links .nav-cta {
    min-height: 42px;
    padding-inline: 13px;
  }

  .page-hero {
    padding: 30px 23px 34px;
    border-radius: 25px;
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .page-lead {
    font-size: 1rem;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .toc li:nth-child(odd) {
    border-right: 0;
  }

  .content-card {
    padding: 23px 20px;
    border-radius: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .support-cta {
    grid-template-columns: 1fr;
  }

  .support-cta .button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-intro {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .page-kicker,
  .support-cta .button {
    border: 1px solid ButtonText;
  }
}
