:root {
  --bg: #f6ece9;
  --bg-elev: #fff8f4;
  --text: #332730;
  --muted: #6d5962;
  --accent: #c46f7b;
  --accent-2: #935473;
  --accent-coral: #d98a79;
  --accent-blush: #efd0c8;
  --line: #e6d1ca;
  --header-height: 74px;
  --shadow: 0 12px 34px rgba(105, 63, 78, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #fbf7f5 0%, var(--bg) 100%);
}

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

.container {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: linear-gradient(100deg, rgba(255, 246, 242, 0.96) 0%, rgba(246, 230, 224, 0.94) 48%, rgba(237, 219, 228, 0.92) 100%);
  border-bottom: 1px solid #dfc2c5;
  box-shadow: 0 8px 24px rgba(124, 72, 93, 0.12);
}

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

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

.brand-logo {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(140deg, #f6d9cf 0%, #cb7b86 52%, #8f4f71 100%);
  box-shadow: 0 4px 12px rgba(139, 74, 95, 0.25);
  border: 1px solid #c9999e;
}

.brand-logo img {
  width: 1.25rem;
  height: 1.25rem;
}

.brand-text {
  line-height: 1.1;
}

.brand:hover {
  color: #6a3457;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #d98a79 0%, #c46f7b 50%, #935473 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.brand:hover::after {
  transform: scaleX(1);
}

.main-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid #d8b0b7;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(180deg, #fff9f6 0%, #f5e3de 100%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(180deg, #f9dfd9 0%, #f1cfd8 100%);
  border-color: #c78c99;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(143, 80, 108, 0.15);
}

.badge {
  border: 1px solid #ce9fa8;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #60344c;
  background: linear-gradient(180deg, #fff 0%, #f4dfde 100%);
}

.main-content {
  flex: 1;
  padding-block: 2.2rem 3.2rem;
}

.hero {
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(130deg, #fff7f2 0%, #f7d9cf 42%, #e8c9d8 75%, #d8c0d2 100%);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #7b3556 0%, #c06a74 45%, #d98a79 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 22px rgba(160, 97, 110, 0.18);
}

.hero h1 + p {
  margin-top: 0.9rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

h1, h2, h3 {
  line-height: 1.2;
  color: #2e2631;
}

.content-page .prose h1 {
  color: #6a3457;
  position: relative;
  padding-bottom: 0.45rem;
}

.content-page .prose h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(220px, 40%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d98a79 0%, #c46f7b 50%, #935473 100%);
}

.content-page .prose h2 {
  color: #7f3f5f;
  border-bottom: 1px solid #e4c5cb;
  padding-bottom: 0.3rem;
  position: relative;
}

.content-page .prose h2::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #d98a79 0%, #b25e72 100%);
  box-shadow: 0 2px 6px rgba(146, 79, 101, 0.25);
  transform: translateY(-1px);
}

.content-page .prose h3,
.content-page .prose h4 {
  color: #8e4e6b;
}

.content-page .prose h3 {
  padding-left: 0.6rem;
  border-left: 3px solid #d3a2a8;
}

.content-page .prose a {
  color: #8b3f66;
  text-decoration: none;
  background-image: linear-gradient(90deg, #d98a79 0%, #c46f7b 55%, #935473 100%);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left 100%;
  transition: color 0.2s ease, background-size 0.25s ease;
}

.content-page .prose a:hover {
  color: #6b2f50;
  background-size: 100% 2px;
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta {
  text-decoration: none;
  color: #472637;
  border: 1px solid #c88d97;
  background: linear-gradient(130deg, #ffece4 0%, #f7d5cd 46%, #ecc5d4 100%);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.52) 35%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(143, 80, 108, 0.22);
  border-color: #b77284;
}

.cta:hover::before {
  transform: translateX(120%);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--accent-2);
  text-decoration: none;
}

.content-page .breadcrumbs {
  background: linear-gradient(180deg, #fff7f3 0%, #f6e7e2 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.prose {
  background: linear-gradient(180deg, var(--bg-elev) 0%, #fff6f2 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1rem, 2vw, 2rem);
}


.content-page .prose ul li::marker,
.content-page .prose ol li::marker {
  color: #b56574;
}

.prose p code,
.prose li code {
  background: #f3e7e3;
  border: 1px solid #e4cbc7;
  color: #6b2f50;
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
}

.prose pre {
  position: relative;
  border-radius: 10px;
  overflow: auto;
  background: linear-gradient(180deg, #fff8f4 0%, #f6e9e4 100%);
  color: #3a2a34;
  border: 1px solid #dcc2bd;
  padding: 1rem;
}

.prose pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  color: inherit;
}

/* Prism token palette tuned to muted earthy contrast on light code blocks */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8f7584;
}

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

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #b14966;
}

.token.boolean,
.token.number {
  color: #a25b2a;
}

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

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

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

.token.function,
.token.class-name {
  color: #2e6a95;
}

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

.copy-code {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 1px solid #c7a9a5;
  background: linear-gradient(180deg, #f7e6e1 0%, #eed7d1 100%);
  color: #5e3348;
  border-radius: 7px;
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.copy-code:hover {
  background: linear-gradient(180deg, #f2dbd5 0%, #e7cbc4 100%);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid #d7c5c5;
  border-radius: 10px;
  margin: 1.1rem 0;
}

.prose th,
.prose td {
  border: 1px solid #e2d5d2;
  padding: 0.65rem;
  text-align: left;
  min-width: 140px;
}

.prose th {
  background: linear-gradient(180deg, #f6e3dd 0%, #efd6d4 100%);
}

.prose details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.8rem;
  margin: 0.9rem 0;
}

.faq-item {
  margin: 0.9rem 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid #e5cdcc;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff9f6 0%, #f7ebe7 100%);
}

.faq-question {
  display: block;
  color: #6f2f55;
  margin-bottom: 0.45rem;
}

.faq-answer {
  display: block;
  color: #3f2f39;
  border-top: 1px dashed #dcbfbd;
  padding-top: 0.45rem;
}

.faq-answer-block {
  margin-top: -0.4rem;
  margin-bottom: 1rem;
  padding: 0 0.95rem 0.85rem;
  border: 1px solid #e5cdcc;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff9f6;
}

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

.quick-links-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf8 0%, #fbece8 100%);
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cf9ba3;
  box-shadow: 0 12px 24px rgba(130, 77, 97, 0.16);
}

.callout {
  border-left: 4px solid var(--accent);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
  background: linear-gradient(120deg, #fff8f5 0%, #f8e8e3 100%);
  padding: 0.8rem 1rem;
}

.related {
  margin-top: 1rem;
}

.content-page .related h2 {
  color: #7f3f5f;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff6f1 0%, #f5e5e2 100%);
}

.footer-grid {
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-grid a {
  color: var(--accent-2);
  text-decoration: none;
  position: relative;
}

.footer-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #d98a79 0%, #c46f7b 55%, #935473 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-grid a:hover::after {
  transform: scaleX(1);
}

@media (min-width: 1600px) {
  .container {
    width: min(1440px, calc(100% - 3rem));
  }
}

@media (max-width: 1200px) {
  .quick-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .nav-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
}
