:root {
  color-scheme: dark;
  --paper: #fff4ec;
  --ink: #f7eae4;
  --body: #d9c9c7;
  --muted: #c3b2b2;
  --salmon: #f09f84;

  --line: #48343a;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: #170f14;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: white; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--offtik-violet-trace); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-180%); background: var(--offtik-accent-paint); padding: .6rem 1rem; z-index: 5; }
.skip:focus { transform: none; }
.mast { background: #100d10; border-bottom: 1px solid #35292e; }
.mast-inner, .cover-content, .manual, footer { max-width: 80rem; margin-inline: auto; padding-inline: clamp(1.25rem,6.2vw,5rem); }
.mast-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; }
.brand img, footer img { height: auto; }
.back-link { font-size: .9375rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid #9e8e8d; padding-block: .125rem; }
.cover { overflow: hidden; position: relative; isolation: isolate; min-height: clamp(21rem,34vw,29rem); display: grid; align-items: center; background-color: #461911; border-bottom: 1px solid #533336; }
.cover-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; z-index: -2; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(24,9,15,.94),rgba(31,12,18,.77) 31%,rgba(32,15,19,.17) 68%,rgba(26,12,15,.03)), linear-gradient(0deg,rgba(23,15,20,.36),transparent 35%); }
.cover-content { width: 100%; padding-block: 3.5rem 3.8rem; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: #f0c8be; }
.eyebrow span { margin-inline: .4em; color: #c1918a; }
h1 { font-size: clamp(3rem,6vw,5.2rem); letter-spacing: -.065em; line-height: 1.15; font-weight: 700; margin: .45rem 0 .65rem; }
.lead { max-width: 30rem; font-size: clamp(1rem,1.45vw,1.2rem); color: #f2e4df; }
.download { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .78rem 1.2rem; margin-top: 1.7rem; border: 1px solid #5e109e; border-radius: .65rem; background: var(--offtik-accent-paint); color: white; text-decoration: none; font-weight: 600; }
.download:hover { background: var(--offtik-accent-paint); filter:brightness(1.12); }
.download svg { width: 1.18rem; height: 1.18rem; }
.manual { display: grid; grid-template-columns: minmax(10rem,1fr) minmax(0,3.5fr); gap: clamp(2rem,6vw,6rem); padding-block: clamp(2.8rem,5vw,5rem) clamp(3rem,6vw,6rem); }
.index > nav { position: sticky; top: 2rem; display: grid; justify-items: start; gap: .6rem; }
.index h2 { font-size: .8125rem; letter-spacing: .04em; color: var(--salmon); margin-bottom: .4rem; }
.index a { font-size: .9375rem; text-decoration: none; color: var(--body); }
.index a:hover { text-decoration: underline; color: var(--paper); }
.chapters { max-width: 49rem; }
.chapters > section { scroll-margin-block-start: 2rem; }
.chapters > section + section { margin-top: 3.2rem; padding-top: 2.75rem; border-top: 1px solid var(--line); }
.chapters h2 { font-size: clamp(1.9rem,3.2vw,2.65rem); letter-spacing: -.058em; font-weight: 700; line-height: 1.24; margin-bottom: 1.35rem; }
.chapters h3 { font-size: clamp(1.15rem,1.55vw,1.35rem); letter-spacing: -.035em; font-weight: 600; line-height: 1.45; margin-bottom: .3rem; }
.chapters p { color: var(--body); line-height: 1.75; }
.chapters strong { color: #f0ded7; font-weight: 600; }
.chapters p a { color: #f4bba5; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 3.3rem; counter-increment: step; }
.steps li + li { margin-top: 1.6rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: .05rem; left: 0; width: 2.5rem; height: 2.05rem; display: grid; place-items: center; border: 1px solid #654147; border-radius: .5rem; background: #311f27; color: #f4b39c; font: 600 .8125rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.steps.short { margin-top: 1.55rem; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875em; background: #34262e; border-radius: .23rem; padding: .08em .32em; color: #ffe3d8; overflow-wrap: anywhere; }
.work-item + .work-item { margin-top: 1.35rem; }
.note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 2px solid #cd8268; background: linear-gradient(115deg,#322029,#241a20); border-radius: 0 .6rem .6rem 0; }
.note strong { display: block; }
.pdf { margin-top: 1.5rem; display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .9rem; border: 1px solid #624951; background: linear-gradient(120deg,#382730,#261c23); border-radius: .7rem; padding: .72rem 1.2rem .72rem .75rem; text-decoration: none; }
.pdf:hover { border-color: #bf998a; }
.file-icon { display: grid; place-items: center; width: 2.5rem; height: 2.7rem; color: var(--salmon); }
.file-icon svg { width: 1.75rem; height: 1.75rem; }
.pdf small { display: block; font-size: .8125rem; color: var(--muted); }
details { border-top: 1px solid var(--line); scroll-margin-block-start: 1rem; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; position: relative; font-size: 1rem; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem/1 sans-serif; color: #e3b3a6; position: absolute; right: .28rem; top: 50%; transform: translateY(-50%); }
details[open] > summary::after { content: "−"; }
details > p { padding: 0 2rem 1.1rem 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.6rem 2rem; border-top: 1px solid var(--line); }
footer > a:last-child { color: var(--muted); font-size: .875rem; }

@media (max-width: 48rem) {
  .manual { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .index > nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .index h2 { width: 100%; }
  .mast-inner { min-height: 4rem; }
  .brand img { width: 7rem; }
  .cover { min-height: 23rem; }
  .cover-content { padding-block: 2.25rem; }
  .cover-still { object-position: 64% center; }
  .cover::after { background: linear-gradient(90deg,rgba(22,10,13,.94),rgba(28,11,14,.8) 37%,rgba(30,12,17,.32) 75%,rgba(30,12,17,.2)); }
  .lead { max-width: 20rem; }
}
@media (max-width: 30rem) {
  .steps li { padding-left: 2.55rem; }
  .steps li::before { width: 1.95rem; height: 1.8rem; }
  .chapters > section + section { margin-top: 2.2rem; padding-top: 2rem; }
  .cover { min-height: 20rem; }
  .lead { max-width: 16rem; }
}
@media (forced-colors: active) {
  .download, .pdf, .steps li::before { border: 1px solid ButtonText; }
}
