@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,400;8..144,500;8..144,600;8..144,700;8..144,800&display=swap");

:root {
  --black: #070808;
  --ink: #181411;
  --muted: #6d6258;
  --coral: #c8563e;
  --coral-dark: #9f3f2e;
  --gold: #da9846;
  --cream: #f7f1e8;
  --ivory: #fffaf2;
  --oat: #eee3d5;
  --peach: #f4d8c8;
  --line: #d8c8b6;
  --gradient: linear-gradient(135deg, var(--coral), var(--gold));
  --header-height: 76px;
  --shadow: 0 2px 8px rgb(45 32 23 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 16px/1.65 "Roboto Flex", "Google Sans", Roboto, system-ui, sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 14px; border-radius: 9px; background: var(--black); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgb(200 86 62 / 38%); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-height); display: grid; grid-template-columns: 1fr minmax(280px, 460px) 1fr; align-items: center; gap: 30px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid rgb(141 128 115 / 28%); background: rgb(247 241 232 / 92%); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; width: fit-content; color: var(--black); text-decoration: none; }
.brand-wordmark { display: block; width: 146px; height: auto; }
.brand-divider { width: 1px; height: 22px; margin: 0 12px; background: var(--line); }
.brand-docs { color: var(--muted); font-size: 14px; font-weight: 600; }
.search-trigger, .hero-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgb(255 250 242 / 80%); color: var(--muted); cursor: pointer; }
.search-trigger { width: 100%; height: 42px; padding: 0 10px 0 14px; border-radius: 13px; box-shadow: 0 1px 2px rgb(45 32 23 / 5%); text-align: left; }
.search-trigger span { flex: 1; }
kbd { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); color: var(--muted); font-size: 12px; line-height: 1.5; }
.header-actions { justify-self: end; }
.header-actions a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-actions a:hover { color: var(--coral-dark); }
.mobile-menu { display: none; padding: 8px; border: 0; background: transparent; cursor: pointer; }

.home-hero { min-height: 640px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); align-items: center; gap: clamp(30px, 6vw, 100px); padding: clamp(68px, 9vw, 130px) clamp(24px, 7vw, 112px); overflow: hidden; background: radial-gradient(circle at 8% 8%, rgb(200 86 62 / 13%), transparent 32rem), radial-gradient(circle at 92% 18%, rgb(218 152 70 / 13%), transparent 30rem); }
.hero-copy { position: relative; z-index: 1; max-width: 850px; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--coral-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.home-hero h1 { margin: 0; max-width: 900px; font-size: clamp(54px, 7vw, 100px); font-weight: 720; letter-spacing: -.068em; line-height: .93; }
.home-hero h1 em { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.home-hero p { max-width: 670px; margin: 30px 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-search { width: min(540px, 100%); min-height: 58px; padding: 0 14px 0 19px; border-radius: 18px; box-shadow: var(--shadow); font-weight: 550; text-align: left; }
.hero-search span { flex: 1; }
.hero-panel { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; justify-self: center; }
.hero-orbit { position: absolute; border: 1px solid rgb(159 63 46 / 24%); border-radius: 50%; }
.orbit-one { inset: 8%; }
.orbit-two { inset: 25%; }
.hero-monogram { position: absolute; inset: 31%; display: grid; place-items: center; filter: drop-shadow(0 28px 30px rgb(157 66 47 / 24%)); }
.hero-monogram img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-label { position: absolute; padding: 9px 16px; border: 1px solid rgb(216 200 182 / 80%); border-radius: 999px; background: rgb(255 250 242 / 86%); box-shadow: var(--shadow); color: #42382f; font-size: 13px; font-weight: 700; }
.label-one { top: 14%; left: 5%; }
.label-two { top: 30%; right: 0; }
.label-three { bottom: 15%; left: 10%; }

.quick-start { display: grid; grid-template-columns: minmax(250px, .7fr) 1.3fr; gap: clamp(40px, 8vw, 130px); padding: clamp(70px, 9vw, 120px) clamp(24px, 7vw, 112px); background: var(--black); color: var(--cream); }
.quick-start h2, .section-heading h2, .role-banner h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); font-weight: 650; letter-spacing: -.055em; line-height: 1.02; }
.quick-start p { color: #bdb5ac; font-size: 18px; }
.quick-start .eyebrow { color: #e7936f; }
.quick-start ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #383633; }
.quick-start li { border-bottom: 1px solid #383633; }
.quick-start li a { display: flex; align-items: center; gap: 22px; padding: 24px 4px; font-size: clamp(19px, 2vw, 26px); font-weight: 570; text-decoration: none; transition: color 160ms, padding 160ms; }
.quick-start li a:hover { padding-left: 10px; color: #e7936f; }
.quick-start li span { color: #8c847d; font-size: 12px; font-weight: 750; letter-spacing: .12em; }

.browse-section { padding: clamp(78px, 10vw, 140px) clamp(24px, 7vw, 112px); }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 54px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.section-heading p { max-width: 330px; margin: 0; color: var(--muted); font-size: 17px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card { min-height: 390px; padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(255 250 242 / 34%); }
.category-card:hover { background: rgb(255 250 242 / 78%); }
.category-number { color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.category-card h2 { margin: 22px 0 10px; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.04em; line-height: 1.1; }
.category-card > p { min-height: 52px; margin: 0 0 24px; color: var(--muted); }
.category-card ul { margin: 0; padding: 0; list-style: none; }
.category-card li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgb(216 200 182 / 60%); font-size: 14px; font-weight: 600; text-decoration: none; }
.category-card li svg { width: 16px; transition: transform 160ms; }
.category-card li a:hover { color: var(--coral-dark); }
.category-card li a:hover svg { transform: translateX(3px); }
.category-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--coral-dark); font-size: 13px; font-weight: 750; text-decoration: none; }
.category-all svg { width: 16px; }
.role-banner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; margin: 0 clamp(24px, 7vw, 112px) clamp(78px, 10vw, 140px); padding: clamp(44px, 6vw, 82px); border-radius: 30px; background: linear-gradient(135deg, #f1c5ad, #e5b666); }
.role-banner .eyebrow { color: #7d2e20; }
.role-list { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 12px; }
.role-list span { padding: 14px 18px; border: 1px solid rgb(75 22 15 / 15%); border-radius: 14px; background: rgb(255 250 242 / 40%); font-weight: 650; }

.docs-frame { width: min(100%, 1600px); min-height: calc(100vh - var(--header-height)); margin: 0 auto; display: grid; grid-template-columns: 272px minmax(0, 780px) 220px; justify-content: center; gap: clamp(30px, 4vw, 62px); padding: 0 clamp(24px, 4vw, 64px) 100px; }
.docs-sidebar { position: sticky; top: var(--header-height); align-self: start; height: calc(100vh - var(--header-height)); padding: 34px 14px 60px 0; overflow-y: auto; scrollbar-width: thin; }
.nav-group { margin-bottom: 25px; }
.nav-group h2 { margin: 0 0 7px 12px; color: #83766a; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-group ul { margin: 0; padding: 0; list-style: none; }
.nav-group a { display: block; padding: 6px 12px; border-radius: 9px; color: #62584f; font-size: 13px; line-height: 1.4; text-decoration: none; }
.nav-group a:hover { color: var(--coral-dark); background: rgb(244 216 200 / 40%); }
.nav-group a.active { background: var(--peach); color: #561e15; font-weight: 700; }
.article { min-width: 0; padding-top: 38px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 40px; color: #8a7c70; font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--coral-dark); }
.article-heading { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-heading .eyebrow { margin-bottom: 14px; }
.article-heading h1 { max-width: 740px; margin: 0; font-size: clamp(42px, 5.2vw, 68px); font-weight: 670; letter-spacing: -.06em; line-height: .98; text-wrap: balance; }
.article-content { padding-top: 4px; }
.article-content h2, .article-content h3 { position: relative; color: var(--ink); scroll-margin-top: 100px; }
.article-content h2 { margin: 58px 0 18px; padding-top: 8px; font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -.035em; line-height: 1.15; }
.article-content h3 { margin: 38px 0 14px; font-size: 21px; letter-spacing: -.02em; }
.heading-anchor { position: absolute; right: 100%; padding-right: 8px; color: var(--coral); font-weight: 500; opacity: 0; text-decoration: none; }
.article-content h2:hover .heading-anchor, .article-content h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.article-content p { margin: 0 0 20px; color: #463e37; }
.article-content .article-lead { margin: 28px 0 34px; color: #51473f; font-size: 19px; line-height: 1.65; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 25px; }
.article-content li { margin: 9px 0; padding-left: 5px; color: #463e37; }
.article-content li::marker { color: var(--coral); font-weight: 750; }
.article-content a { color: var(--coral-dark); text-decoration-color: rgb(159 63 46 / 42%); text-underline-offset: 3px; }
.article-content a:hover { text-decoration-color: currentColor; }
.article-content code { padding: 2px 5px; border: 1px solid rgb(216 200 182 / 85%); border-radius: 5px; background: #f1e8dc; color: #7d2e20; font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.important-callout { margin: 30px 0 8px; padding: 20px 22px; border: 1px solid #db9b76; border-radius: 16px; background: #f6ded0; }
.important-callout span { color: #8b3122; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.important-callout p { margin: 5px 0 0; color: #52251d; }
.table-wrap { margin: 24px 0 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--oat); color: #4b4138; font-size: 12px; letter-spacing: .025em; }
tr:last-child td { border-bottom: 0; }
.code-block { position: relative; margin: 24px 0 34px; border: 1px solid #3c3934; border-radius: 14px; overflow: hidden; background: #171816; color: #f5ede3; }
.code-language { display: block; padding: 8px 14px; border-bottom: 1px solid #373833; color: #aca79e; font: 11px ui-monospace, monospace; text-transform: uppercase; }
pre { margin: 0; padding: 20px; overflow-x: auto; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-button { position: absolute; top: 6px; right: 7px; padding: 3px 8px; border: 1px solid #494a45; border-radius: 6px; background: #252623; color: #d7d1c9; font-size: 11px; cursor: pointer; }
blockquote { margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgb(238 224 209 / 65%); }
.page-toc { position: sticky; top: calc(var(--header-height) + 38px); align-self: start; max-height: calc(100vh - var(--header-height) - 70px); margin-top: 38px; overflow-y: auto; }
.page-toc h2 { margin: 0 0 12px; color: #84776b; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.page-toc ol { margin: 0; padding: 0; border-left: 1px solid var(--line); list-style: none; }
.page-toc li { margin: 0; }
.page-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: #776b60; font-size: 12px; line-height: 1.4; text-decoration: none; }
.page-toc a:hover, .page-toc a.active { border-left-color: var(--coral); color: var(--coral-dark); }
.page-toc a.active { font-weight: 700; }
.page-toc .toc-level-3 a { padding-left: 25px; }
.mobile-toc { display: none; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-pager a { display: flex; min-height: 102px; flex-direction: column; justify-content: center; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 250 242 / 55%); text-decoration: none; }
.article-pager a:hover { border-color: #bd9179; background: var(--ivory); }
.article-pager span { margin-bottom: 5px; color: #8b7c70; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.article-pager strong { font-size: 14px; line-height: 1.35; }
.pager-next { align-items: flex-end; text-align: right; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; min-height: 120px; padding: 30px clamp(24px, 7vw, 112px); border-top: 1px solid var(--line); background: var(--oat); }
.footer-brand { display: block; width: 146px; text-decoration: none; }
.footer-brand img { display: block; width: 100%; height: auto; }
.site-footer p { color: var(--muted); text-align: center; }
.site-footer > a:last-child { display: inline-flex; justify-self: end; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; text-decoration: none; }
.site-footer svg { width: 16px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 39; visibility: hidden; background: rgb(7 8 8 / 38%); opacity: 0; transition: opacity 180ms, visibility 180ms; }
.mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(88vw, 350px); padding: 0 18px 35px; overflow-y: auto; background: var(--cream); transform: translateX(-102%); transition: transform 220ms ease; }
.mobile-drawer.open { transform: translateX(0); }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
.drawer-open { overflow: hidden; }
.drawer-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 68px; margin-bottom: 25px; background: var(--cream); font-weight: 750; }
.drawer-header button { padding: 8px; border: 0; background: transparent; cursor: pointer; }

.search-dialog { width: min(680px, calc(100% - 28px)); max-height: min(720px, calc(100vh - 40px)); margin: max(8vh, 24px) auto auto; padding: 0; border: 1px solid #b9aa99; border-radius: 19px; overflow: hidden; background: var(--ivory); box-shadow: 0 30px 80px rgb(36 25 17 / 28%); }
.search-dialog::backdrop { background: rgb(26 20 16 / 42%); backdrop-filter: blur(4px); }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.search-input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; }
.search-input-wrap button { display: grid; place-items: center; padding: 6px; border: 0; background: transparent; cursor: pointer; }
.search-results { max-height: 500px; padding: 10px; overflow-y: auto; }
.search-hint, .search-empty { padding: 40px 20px; color: var(--muted); text-align: center; }
.search-result { display: block; padding: 13px 15px; border-radius: 11px; text-decoration: none; }
.search-result:hover, .search-result.selected { background: var(--peach); }
.search-result span { display: block; margin-bottom: 2px; color: var(--coral-dark); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.search-result strong { font-size: 15px; }
.search-result p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-footer { display: flex; justify-content: space-between; padding: 9px 15px; border-top: 1px solid var(--line); background: var(--oat); color: var(--muted); font-size: 11px; }

@media (max-width: 1180px) {
  .docs-frame { grid-template-columns: 250px minmax(0, 780px); }
  .docs-frame > .page-toc { display: none; }
  .mobile-toc { display: block; margin-top: 24px; }
  .mobile-toc details { border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); }
  .mobile-toc summary { padding: 12px 15px; cursor: pointer; font-size: 13px; font-weight: 700; }
  .mobile-toc .page-toc { position: static; display: block; max-height: none; margin: 0; padding: 3px 15px 14px; }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .site-header { grid-template-columns: 1fr auto; gap: 12px; padding-inline: 20px; }
  .site-header > .search-trigger, .header-actions { display: none; }
  .mobile-menu { display: grid; }
  .docs-frame { display: block; padding-inline: clamp(20px, 6vw, 54px); }
  .docs-sidebar { display: none; }
  .article { max-width: 760px; margin: auto; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .hero-panel { display: none; }
  .quick-start, .role-banner { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 16px; }
}

@media (max-width: 620px) {
  .brand-docs, .brand-divider { display: none; }
  .brand-wordmark { width: 132px; }
  .home-hero { padding: 64px 20px 76px; }
  .home-hero h1 { font-size: clamp(47px, 15vw, 68px); }
  .home-hero p { margin: 24px 0; font-size: 17px; }
  .hero-search { min-height: 54px; }
  .quick-start, .browse-section { padding: 70px 20px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: auto; }
  .role-banner { margin: 0 20px 70px; padding: 38px 26px; border-radius: 22px; }
  .role-list { grid-template-columns: 1fr; }
  .article { padding-top: 25px; }
  .breadcrumbs { margin-bottom: 27px; }
  .article-heading { padding-bottom: 27px; }
  .article-heading h1 { font-size: clamp(37px, 12vw, 52px); }
  .article-content h2 { margin-top: 46px; }
  .article-content .article-lead { font-size: 17px; }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager > span:empty { display: none; }
  .pager-next { align-items: flex-start; text-align: left; }
  .site-footer { grid-template-columns: 1fr auto; min-height: 100px; padding-inline: 20px; }
  .site-footer p { display: none; }
  .search-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
