:root {
  --header-height: 4.5rem;
  --bg: #fffaf5;
  --bg-soft: #fff3e6;
  --text: #1f2430;
  --muted: #5b6475;
  --card: #ffffff;
  --border: #ffd7b3;
  --accent-a: #ff7a18;
  --accent-b: #ff4e50;
  --accent-c: #2ec4b6;
  --accent-d: #f6bd60;
  --shadow: 0 10px 30px rgba(35, 28, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 40%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

a {
  color: #0b5cab;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #084784;
}

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

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

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

.container {
  width: min(1280px, 94vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 250, 245, 0.9);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-icon {
  display: inline-grid;
  place-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.42rem 0.75rem;
  transition: all 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--border);
  background: var(--bg-soft);
}

.main-nav a.is-active {
  border-color: #ffb067;
  background: #ffe9d0;
}

.main-content {
  flex: 1;
  padding-block: 2rem 3rem;
}

.hero {
  background: radial-gradient(circle at top right, #ffe8d9, #fff6ef 55%, #fff);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 2.3rem);
}

.eyebrow {
  color: #a34700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0;
}

.hero h1 {
  margin: 0.55rem 0;
  line-height: 1.2;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, filter 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

.btn-secondary {
  color: #0f2f2b;
  background: linear-gradient(135deg, #b8f2eb, var(--accent-c));
}

.grid-cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.gradient-a {
  background-image: linear-gradient(180deg, #fff 70%, #fff1e3 100%);
}

.gradient-b {
  background-image: linear-gradient(180deg, #fff 70%, #eafffb 100%);
}

.topic-list {
  margin-top: 1.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.topic-list ul {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2 16rem;
  gap: 1.6rem;
}

.topic-list li {
  margin-bottom: 0.45rem;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin-left: 0.4rem;
  color: #969eb1;
}

.prose {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 2rem);
}

.prose h1,
.prose h2,
.prose h3 {
  color: #2a2a2a;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.prose h1 {
  color: #7f2d00;
  margin-top: 0.2rem;
  margin-bottom: 1.05rem;
  padding: 0.55rem 0.75rem 0.6rem 0.95rem;
  border-radius: 0.7rem;
  border: 1px solid #ffd7b3;
  border-left: 5px solid #ff7a18;
  background: linear-gradient(135deg, #fff8ef 0%, #ffeeda 100%);
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.08);
  text-wrap: balance;
}

.prose h2,
.prose h3 {
  padding-bottom: 0.2rem;
}

.prose h2::after,
.prose h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.14rem;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a18, #ff4e50);
  transition: width 220ms ease;
}

.prose h1:hover,
.prose h2:hover,
.prose h3:hover {
  color: #5f2502;
  transform: translateY(-1px);
}

.prose h1:hover {
  border-left-width: 9px;
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.18);
  filter: saturate(1.06);
}

.prose h2:hover::after,
.prose h3:hover::after {
  width: min(4.5rem, 40%);
}

.prose p,
.prose li {
  line-height: 1.65;
}

.prose a,
.related-content a,
.topic-list a {
  color: #0e5ea9;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #7ec8ff;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.18em;
  border-radius: 0.22rem;
  background-image: linear-gradient(120deg, rgba(255, 184, 118, 0) 0%, rgba(255, 184, 118, 0.45) 100%);
  background-repeat: no-repeat;
  background-size: 0 55%;
  background-position: 0 95%;
  transition: color 180ms ease, text-decoration-color 180ms ease, background-size 220ms ease;
}

.prose a:hover,
.prose a:focus-visible,
.related-content a:hover,
.related-content a:focus-visible,
.topic-list a:hover,
.topic-list a:focus-visible {
  color: #8a3200;
  text-decoration-color: #ff8a25;
  background-size: 100% 55%;
}

.prose p,
.prose li,
.prose blockquote {
  max-width: none;
}

.prose table {
  display: block;
  width: max-content;
  min-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid #f2d4b8;
  background: #fffdfb;
}

.prose th,
.prose td {
  border: 1px solid #f2d4b8;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.prose th {
  background: #fff0e0;
}

.code-block {
  position: relative;
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 1px solid #e8974e;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #ff8a25, #ff5f5f);
  color: #fffefb;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.25rem 0.55rem;
}

pre {
  border-radius: 0.8rem;
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid #f0c49c;
  background: linear-gradient(180deg, #fff7ef 0%, #ffe9d4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.prose :not(pre) > code {
  background: #fff1df;
  border: 1px solid #ffc88f;
  border-radius: 0.35rem;
  padding: 0.08rem 0.32rem;
  color: #8d3200;
  font-size: 0.95em;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #3a2a1c;
  font-size: 0.92rem;
}

/* Prism token palette for 11ty syntax highlighting output */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8c7a68;
}

.token.punctuation {
  color: #6e5a49;
}

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

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

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

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #275fb0;
}

.token.function,
.token.class-name {
  color: #9b3f00;
}

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

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

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

.toggle-checklist {
  display: grid;
  gap: 0.45rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #fff7ef;
  border: 1px solid #ffe1c7;
  border-radius: 0.6rem;
  padding: 0.45rem 0.6rem;
}

.check-item input {
  margin-top: 0.25rem;
}

.check-item input:checked + span {
  text-decoration: line-through;
  color: #6f7688;
}

.related-content {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.faq-item {
  margin: 0.8rem 0;
  border: 1px solid #ffd7ae;
  border-left: 4px solid #ff8b32;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #fff9f3 0%, #fff2e6 100%);
  overflow: clip;
}

.faq-question {
  margin: 0;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 2.3rem 0.8rem 0.9rem;
  color: #8a3200;
  font-weight: 700;
  position: relative;
}

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

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0.85rem;
  top: 0.7rem;
  font-size: 1.2rem;
  line-height: 1;
  color: #b04505;
}

.faq-item[open] .faq-question {
  background: #ffeedc;
}

.faq-item[open] .faq-question::after {
  content: "-";
}

.faq-answer {
  margin: 0;
  padding: 0.65rem 0.9rem 0.85rem;
  border-top: 1px dashed #f0c79f;
  color: #3e3f4b;
}

.faq-answer p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff7ee;
}

.footer-inner {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.8rem;
}

@media (max-width: 800px) {
  .header-inner {
    align-items: flex-start;
    padding-block: 0.5rem;
    flex-direction: column;
  }

  .topic-list ul {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prose h1,
  .prose h2,
  .prose h3,
  .prose h2::after,
  .prose h3::after {
    transition: none;
  }

  .prose h1:hover,
  .prose h2:hover,
  .prose h3:hover {
    transform: none;
  }
}

@media (min-width: 1500px) {
  .container {
    width: min(1380px, 94vw);
  }
}

