:root {
  color-scheme: dark;
  font-family: "Instrument Sans", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #783d22;
  color: #fcf7f2;
  --body: #131211;
  --orange: #fb852e;
  --muted: #cbbfb5;
  --line: #342a25;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: clamp(16px, 4.65vw, 68px); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ffb878; outline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
section[id], article[id] { scroll-margin-top: 20px; }
.site { max-width: 1380px; margin-inline: auto; background: #101010; box-shadow: 0 24px 60px #30190c55; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 3; padding: 10px 14px; background: #fff6ef; color: #1a130e; transform: translateY(-150%); }
.skip:focus { transform: none; }

.hero {
  --inset: clamp(24px, 5.8vw, 82px);
  position: relative;
  isolation: isolate;
  min-height: clamp(510px, 49vw, 690px);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 132px var(--inset) clamp(48px, 6.2vw, 88px);
  background-color: #201610;
  overflow: clip;
}
.hero-photo, .hero-shade { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 56% 54%; }
.hero-shade {
  background: linear-gradient(90deg, #0d0908bd 0%, #100b098c 37%, #100b0910 73%),
              linear-gradient(180deg, #0a0806a8, transparent 24%, transparent 67%, #100b0980);
}
.masthead { display: flex; justify-content: space-between; align-items: center; position: absolute; top: 26px; left: var(--inset); right: var(--inset); z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 750; letter-spacing: .055em; white-space: nowrap; }
.brand small { color: #ffab71; font-size: 10px; margin-left: 1px; }
.brand-mark { width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: #fb852e; border-radius: 50%; transform: rotate(-32deg); margin-right: 3px; }
.masthead-actions, .buttons { display: flex; align-items: center; gap: 9px; }
.buttons { flex-wrap: wrap; }
.button, summary { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 12px 17px; font-size: 14px; font-weight: 680; }
.button { transition: background-color 150ms ease, color 150ms ease; }
.primary { background: var(--orange); color: #1a0e06; }
.primary:hover { background: #ffa262; }
.secondary { background: #2b241fdc; color: white; border: 1px solid #51443a; }
.secondary:hover { background: #49362a; }
.compact, summary { min-height: 43px; font-size: 13px; }
.arrow { display: inline-block; width: 11px; height: 11px; position: relative; flex: none; }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { height: 1.5px; width: 10px; top: 5px; left: 0; background: currentColor; transform: rotate(-45deg); }
.arrow::after { width: 6px; height: 6px; right: 0; top: 0; border-right: 1.5px solid; border-top: 1.5px solid; }
.menu { position: relative; }
summary { background: #fff9f1; color: #1e1611; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.menu-icon { display: block; width: 13px; height: 7px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
.menu nav { position: absolute; inset: calc(100% + 5px) 0 auto auto; min-width: 164px; border: 1px solid #645044; background: #181411; padding: 5px; }
.menu nav a { display: block; padding: 11px; font-size: 14px; }
.menu nav a:hover { background: #38261a; }
.hero-content { max-width: 600px; }
.eyebrow { color: #ffad76; font-size: 12px; font-weight: 670; letter-spacing: .11em; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero .eyebrow span { display: inline-block; width: 24px; border-top: 1px solid; }
h1 { font-size: clamp(42px, 5.1vw, 76px); letter-spacing: -.052em; line-height: 1.08; font-weight: 660; }
.hero-copy { max-width: 390px; line-height: 1.75; margin: 19px 0 25px; font-size: 15px; color: #efe5db; }

.shortcut-bar { padding: 22px 16px; display: flex; justify-content: center; align-items: center; gap: clamp(15px, 3vw, 40px); flex-wrap: wrap; border-bottom: 1px solid var(--line); color: #e1d3c8; font-size: 13px; }
.shortcut-bar span { color: #af9e91; }
.shortcut-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-pad { padding: clamp(56px, 7vw, 104px) clamp(24px, 9vw, 132px); }
.section-intro { text-align: center; margin-bottom: 35px; }
.section-intro .eyebrow, .split .eyebrow, .help .eyebrow { margin-bottom: 11px; }
h2 { font-size: clamp(28px, 3.25vw, 46px); font-weight: 650; line-height: 1.2; letter-spacing: -.038em; }
.section-intro > p:last-child { color: var(--muted); margin-top: 13px; font-size: 14px; line-height: 1.65; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 1.6vw, 21px); }
.card { display: flex; flex-direction: column; gap: 13px; position: relative; min-height: 180px; padding: 25px 22px 32px; color: #fff8f1; background: #1c1a18; border: 1px solid #322920; }
.card:hover { border-color: #fca568; }
.card .arrow { position: absolute; right: 18px; bottom: 18px; color: #ffac75; }
.card h3 { font-size: 19px; font-weight: 650; }
.card p { color: #dbcabc; font-size: 14px; line-height: 1.6; }
.featured { color: #1c1007; background: var(--orange); border-color: var(--orange); }
.featured p, .featured .arrow { color: #322013; }
.featured:hover { background: #ffa263; }
.icon { display: block; position: relative; width: 22px; height: 22px; }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-link::before, .icon-link::after { width: 11px; height: 6px; border: 1.5px solid; border-radius: 9px; transform: rotate(-38deg); }
.icon-link::before { top: 5px; left: 1px; }
.icon-link::after { top: 10px; left: 8px; }
.icon-sheet::before { border: 1.5px solid; width: 13px; height: 18px; left: 4px; top: 1px; }
.icon-sheet::after { top: 7px; left: 8px; height: 5px; width: 7px; border-block: 1px solid; }
.icon-screen::before { height: 13px; width: 19px; border: 1.5px solid; top: 2px; }
.icon-screen::after { height: 3px; width: 10px; border-bottom: 1.5px solid; top: 16px; left: 5px; }

.split { display: grid; gap: clamp(25px, 5.5vw, 85px); grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; background: #1b1714; }
.release { background: #231b16; border: 1px solid #513828; }
.release h3 { margin: 0; padding: 19px; border-bottom: 1px solid #513828; color: #ffb17e; font-size: 17px; }
.release dl { margin: 0; padding-inline: 19px; }
.release dl div { display: grid; grid-template-columns: 36% 1fr; padding-block: 15px; gap: 8px; font-size: 14px; line-height: 1.5; }
.release dl div + div { border-top: 1px solid #513828; }
.release dt { font-weight: 680; color: #f5e9df; }
.release dd { margin: 0; color: #e2c5b4; }
.split-copy > p:not(.eyebrow), .help article > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 14px; }
.split-copy .note { border-inline-start: 2px solid var(--orange); padding-inline-start: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: #ffae77; font-size: 14px; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.split .text-link { margin-top: 18px; }
.help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 5vw, 66px); }
.help h2 { font-size: clamp(24px, 2.6vw, 37px); }
code { color: #ffbb8a; white-space: nowrap; font-size: .92em; }
footer { padding: 23px clamp(24px, 5.8vw, 82px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
footer p { color: #c4b3a6; font-size: 13px; }

@media (max-width: 700px) {
  body { padding: 10px; }
  .hero { --inset: 19px; min-height: 592px; padding-top: 88px; padding-bottom: 37px; }
  .hero-photo { object-position: 69% 44%; }
  .hero-shade { background: linear-gradient(180deg, #130d09a6 0%, #110a0600 23%, #11090607 40%, #130b08dc 68%, #100b08 100%); }
  .masthead { top: 18px; }
  .masthead-actions .compact { display: none; }
  .hero-copy { max-width: 305px; margin: 14px 0 20px; }
  .button, summary { gap: 10px; padding-inline: 12px; }
  .shortcut-bar { padding-inline: 12px; gap: 8px 16px; }
  .shortcut-bar span { display: none; }
  .cards, .split, .help { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 135px; padding-block: 17px 26px; gap: 9px; }
  .split-copy { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.inner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px clamp(20px, 5.8vw, 82px); border-bottom: 1px solid var(--line); }
.inner-head nav { display: flex; gap: 13px 20px; flex-wrap: wrap; justify-content: end; font-size: 13px; }
.inner-head nav a:hover, .quiet-link:hover { color: var(--orange); text-decoration: underline; }
.reading-shell { width: min(820px, 100%); padding: clamp(31px, 7vw, 86px) clamp(20px, 6vw, 70px); margin-inline: auto; }
.chapter { font-size: 16px; line-height: 1.85; }
.chapter h1 { font-size: clamp(29px, 5.2vw, 54px); line-height: 1.19; letter-spacing: -.035em; margin-block: 12px; }
.chapter time { color: var(--muted); font-size: 13px; }
.chapter .intro { font-size: 17px; line-height: 1.7; color: #f0ded1; margin: 14px 0; }
.chapter-body section { margin-top: 24px; padding: 19px 0 0; border-top: 1px solid var(--line); }
.chapter-body h2 { font-size: clamp(20px, 4vw, 27px); margin-bottom: 9px; }
.chapter-body p { color: var(--muted); margin: 9px 0; }
.chapter-body ul, .chapter-body ol { padding-inline-start: 23px; color: var(--muted); }
.chapter-body li + li { margin-top: 9px; }
.chapter-body .release { margin-block: 13px; }
.chapter-body .related { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 24px; }
.guide-shelf { background: #141210; border-top: 1px solid var(--line); }
.guide-shelf h2 { margin-bottom: 22px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.guide-tile { display: block; padding: 16px 18px; background: #211b17; border: 1px solid #49382c; transition: border-color .15s ease; }
.guide-tile:hover { border-color: var(--orange); }
.guide-tile h3 { font-size: 16px; }
.guide-tile p { color: var(--muted); margin-top: 8px; font-size: 14px; line-height: 1.55; }
footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
@media (max-width: 430px) { .inner-head { flex-wrap: wrap; } .inner-head nav { justify-content: start; } }
.all-guides { margin-top: 18px; }
