:root {
  --bg: #f7f2e6;
  --surface: #fffaf0;
  --surface-2: #fff6dc;
  --surface-3: #fff1c9;
  --text: #2f281f;
  --muted: #6f6657;
  --brand: #a56a1f;
  --brand-2: #b58b2a;
  --olive: #6f7a34;
  --pumpkin: #c9742d;
  --plum: #81517e;
  --link: #8c4d12;
  --link-hover: #5d320d;
  --border: #e8d8b7;
  --header-height: 96px;
  --shadow: 0 10px 30px rgba(111, 102, 87, 0.15);
  --shadow-strong: 0 18px 40px rgba(111, 102, 87, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(circle at top right, #fff9e8, var(--bg) 45%, #f3ebd8);
}

:target {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0.65rem;
  z-index: 20;
  height: var(--header-height);
  width: min(1460px, calc(100% - 1rem));
  margin: 0.65rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  background: linear-gradient(135deg, rgba(255, 249, 231, 0.96), rgba(255, 237, 196, 0.94) 44%, rgba(235, 218, 171, 0.94));
  border: 1px solid rgba(181, 139, 42, 0.24);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(111, 102, 87, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.site-header::before {
  top: -1.5rem;
  left: 10%;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(255, 245, 205, 0.75), rgba(255, 245, 205, 0));
}

.site-header::after {
  right: -2rem;
  bottom: -3rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(111, 122, 52, 0.16), rgba(111, 122, 52, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0.45rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 26px rgba(111, 102, 87, 0.12);
}

.brand-mark-shell {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 223, 0.9));
  border: 1px solid rgba(181, 139, 42, 0.22);
  box-shadow: 0 14px 30px rgba(111, 102, 87, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover .brand-mark-shell {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: 0 18px 34px rgba(111, 102, 87, 0.18);
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-kicker {
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b6e59;
}

.brand-text {
  font-size: 1rem;
  line-height: 1.15;
  color: #342a1f;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  border: 1px solid rgba(181, 139, 42, 0.14);
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 18px rgba(111, 102, 87, 0.08);
  transition: transform 0.16s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.25));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 139, 42, 0.34);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 26px rgba(111, 102, 87, 0.12);
}

.site-nav a:hover::before {
  opacity: 1;
}

.site-nav a.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(111, 102, 87, 0.16);
}

.site-nav a:nth-child(1).is-active {
  background: linear-gradient(135deg, #cd9730, #c56f24);
}

.site-nav a:nth-child(2).is-active {
  background: linear-gradient(135deg, #7d9140, #5f6f2d);
}

.site-nav a:nth-child(3).is-active {
  background: linear-gradient(135deg, #c87430, #8b597f);
}

.nav-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.nav-home { background: var(--brand); }
.nav-core { background: var(--olive); }
.nav-mono { background: var(--pumpkin); }

.site-main {
  width: min(1320px, 100% - 2rem);
  margin: 1.2rem auto 2rem;
  flex: 1;
}

.breadcrumbs {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs a {
  color: var(--brand);
}

.page-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(135deg, rgba(255, 246, 220, 0.96), rgba(255, 252, 241, 0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(111, 102, 87, 0.16);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-pill:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-strong);
  filter: saturate(1.05);
  color: #fff;
}

.cta-pill-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.cta-pill-gold {
  background: linear-gradient(135deg, #d7a02e, #b9791b);
}

.cta-pill-olive {
  background: linear-gradient(135deg, #7f9340, #5f702a);
}

.cta-pill-pumpkin {
  background: linear-gradient(135deg, #d78234, #ba5c20);
}

.cta-pill-plum {
  background: linear-gradient(135deg, #8d5f87, #67435f);
}

.crumb-sep {
  color: #a6977d;
}

.content-card,
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 2rem);
}

.related-card {
  margin-top: 1rem;
}

.related-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

h1, h2, h3 {
  line-height: 1.22;
  color: #2a2418;
}

.content-card > h1:first-child {
  position: relative;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border: 1px solid rgba(181, 139, 42, 0.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 244, 202, 0.95), transparent 32%),
    linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(255, 243, 216, 0.98));
  box-shadow: var(--shadow);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  overflow: hidden;
}

.content-card > h1:first-child::before {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 122, 52, 0.18), rgba(111, 122, 52, 0));
}

.content-card > h1:first-child::after {
  content: "";
  display: block;
  width: 6rem;
  height: 0.4rem;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--pumpkin), var(--olive));
}

.content-card > h1:first-child + p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand-2);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(135deg, rgba(255, 251, 239, 0.96), rgba(255, 247, 225, 0.96));
  font-size: 1.06rem;
  color: #4b4236;
}

.content-card h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 216, 183, 0.95);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9ec, #fff2d4);
  box-shadow: 0 8px 18px rgba(111, 102, 87, 0.08);
}

.content-card h2::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--pumpkin));
  box-shadow: 0 0 0 5px rgba(181, 139, 42, 0.14);
}

.content-card h3 {
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 4px solid var(--pumpkin);
  font-size: 1.2rem;
}

a {
  color: var(--link);
}

.content-card a:not(.cta-card):not(.cta-pill),
.related-card a,
.breadcrumbs a,
.site-footer a {
  text-decoration: none;
  background-image: linear-gradient(transparent calc(100% - 0.12rem), rgba(181, 139, 42, 0.45) 0);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: color 0.2s ease, background-image 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

.content-card a:not(.cta-card):not(.cta-pill):hover,
.related-card a:hover,
.breadcrumbs a:hover,
.site-footer a:hover {
  background-image: linear-gradient(transparent calc(100% - 0.12rem), rgba(201, 116, 45, 0.6) 0);
  box-shadow: inset 0 -0.7rem 0 rgba(255, 230, 176, 0.45);
}

code:not([class*="language-"]) {
  padding: 0.08rem 0.28rem;
  border-radius: 0.45rem;
  background: rgba(181, 139, 42, 0.08);
  color: #5b5043;
}

pre,
pre[class*="language-"] {
  position: relative;
  overflow: auto;
  border-radius: 18px;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(232, 216, 183, 0.95);
  background: linear-gradient(180deg, #fffdf7 0%, #fff5de 100%);
  color: #3b3328;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 28px rgba(111, 102, 87, 0.12);
}

pre code,
pre[class*="language-"] code[class*="language-"] {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.9rem;
  text-shadow: none;
  color: inherit;
  background: transparent;
}

pre[class*="language-"]::before {
  content: "code";
  position: absolute;
  top: 0.55rem;
  left: 0.8rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(181, 139, 42, 0.16);
  color: #7c5518;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

pre[class*="language-"] {
  padding-top: 2.4rem;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8b8474;
  font-style: italic;
}

.token.punctuation {
  color: #7a6a52;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #b24831;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #4d7a24;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #7c5518;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #7e4b99;
}

.token.function,
.token.class-name {
  color: #145f8a;
}

.token.regex,
.token.important,
.token.variable {
  color: #b86f16;
}

.token.important,
.token.bold {
  font-weight: 700;
}

.token.italic {
  font-style: italic;
}

.copy-button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: 1px solid rgba(181, 139, 42, 0.25);
  background: rgba(255, 250, 240, 0.92);
  color: #6f4a18;
  border-radius: 7px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  background: #fff7e2;
  border-color: rgba(181, 139, 42, 0.5);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

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

th {
  background: var(--surface-2);
}

blockquote {
  border-left: 4px solid var(--brand-2);
  margin: 1rem 0;
  padding: 0.5rem 0.9rem;
  background: #fffbef;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(130deg, #fffef8, #fff4cf);
  box-shadow: 0 12px 26px rgba(111, 102, 87, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.2s ease;
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(181, 139, 42, 0.6);
}

.cta-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7e3a2;
  color: #66390e;
}

.cta-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.cta-text {
  font-weight: 600;
  color: #3e2f1d;
}

.click-boxes {
  display: grid;
  gap: 0.8rem;
}

.click-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.2rem 0.8rem;
  background: #fffbef;
}

.click-box summary {
  cursor: pointer;
  padding: 0.55rem 0;
  font-weight: 600;
}

.task-list {
  padding-left: 0;
  list-style: none;
}

.task-list-item {
  list-style: none;
  margin: 0.7rem 0;
}

.task-list-control {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(232, 216, 183, 0.95);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 251, 240, 0.98), rgba(255, 245, 221, 0.98));
  box-shadow: 0 10px 22px rgba(111, 102, 87, 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.task-list-control:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(111, 102, 87, 0.11);
  border-color: rgba(181, 139, 42, 0.35);
}

.task-list-checkbox {
  margin-top: 0.15rem;
  inline-size: 1.15rem;
  block-size: 1.15rem;
  accent-color: #7f9340;
  cursor: pointer;
  flex: 0 0 auto;
}

.task-list-text {
  flex: 1;
  color: #3b3328;
}

.task-list-item.is-checked .task-list-control {
  background: linear-gradient(135deg, rgba(242, 249, 230, 0.96), rgba(232, 244, 215, 0.96));
  border-color: rgba(111, 122, 52, 0.28);
}

.task-list-item.is-checked .task-list-text {
  color: #5e6950;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.faq-heading {
  margin-bottom: 1rem;
}

.faq-item {
  margin: 0.95rem 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(232, 216, 183, 0.95);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 251, 240, 0.98), rgba(255, 245, 221, 0.98));
  box-shadow: 0 10px 22px rgba(111, 102, 87, 0.08);
}

.faq-question {
  display: block;
  margin-bottom: 0.45rem;
  color: #2f281f;
  font-size: 1.04rem;
}

.faq-answer-label {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--brand);
}

.faq-section-content + .faq-item {
  margin-top: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fffaf0;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

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

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

@media (min-width: 1280px) {
  .site-main {
    width: min(1380px, 100% - 3rem);
  }

  .content-card,
  .related-card {
    padding: clamp(1.4rem, 2vw, 2.4rem);
  }
}

@media (max-width: 880px) {
  .site-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 1rem);
  }

  :root {
    --header-height: 136px;
  }

  .brand {
    width: 100%;
  }

  .brand-text {
    font-size: 0.94rem;
  }

  .page-cta-strip {
    padding: 0.85rem;
  }

  .cta-pill {
    width: 100%;
    justify-content: center;
  }

  .content-card > h1:first-child {
    padding: 1rem 1rem 1.15rem;
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .task-list-control {
    padding-inline: 0.85rem;
  }
}
