/* Layout: an equipment maker's catalog. A narrow index rail on the left names each sheet, the sheet itself runs wide
   on the right. Photographs are numbered figures; numbers live in specification tables, not in tiles. Colours are
   taken from the factory floor in the screenshots: conveyor-frame blue, aisle-marking yellow, walkway green. */
:root {
  --paper: #EFF1EF;
  --sheet: #FAFAF8;
  --ink: #14181D;
  --soft: #525D67;
  --line: #C8CED0;
  --blue: #1E4BA3;
  --blue-fill: #1E4BA3;
  --on-blue: #FFFFFF;
  --yellow: #F2B705;
  --on-yellow: #14181D;
  --mark: #F2B705;
  --green: #2A7F52;
  --display: 'Gothic A1', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans KR', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101316; --sheet: #171B20; --ink: #E8EBED; --soft: #A2ACB4; --line: #2F363D;
    --blue: #8FB2F5; --blue-fill: #2A5BC0; --on-blue: #FFFFFF; --yellow: #F2B705; --on-yellow: #14181D; --mark: #6B5200; --green: #6CC596;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101316; --sheet: #171B20; --ink: #E8EBED; --soft: #A2ACB4; --line: #2F363D;
  --blue: #8FB2F5; --blue-fill: #2A5BC0; --on-blue: #FFFFFF; --yellow: #F2B705; --on-yellow: #14181D; --mark: #6B5200; --green: #6CC596;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: anywhere;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 56px;
}
.wrap { max-width: 1160px; margin: 0 auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
img { display: block; width: 100%; height: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ masthead and cover */
.mast { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding-block: 22px 14px; border-bottom: 5px solid var(--yellow); }
.mast .name { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.mast .meta { font-family: var(--mono); font-size: 13px; color: var(--soft); }
.cover { padding-block: 56px 0; display: flex; flex-direction: column; gap: 28px; }
.cover h1 { font-weight: 900; font-size: clamp(40px, 7.4vw, 92px); line-height: 1.08; letter-spacing: -0.035em; }
.cover h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }
.cover .lede { max-width: 40em; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.75; color: var(--soft); }
.cover .lede b { color: var(--ink); font-weight: 600; }
.chain { display: flex; flex-wrap: wrap; gap: 8px 0; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.chain a { padding: 6px 13px; border: 1px solid var(--line); border-right: none; background: var(--sheet); color: var(--ink); text-decoration: none; cursor: pointer; }
.chain a:last-child { border-right: 1px solid var(--line); }
.chain a.in { background: var(--blue-fill); color: var(--on-blue); border-color: var(--blue-fill); }
.chain a:hover { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.chain a:focus-visible, .steps li:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.steps li { scroll-margin-top: 20px; }
.steps li.film { grid-template-columns: 44px minmax(0, 1fr); }
.steps li.film figure { grid-column: 2; margin-top: 10px; }
video { display: block; width: 100%; height: auto; background: #101316; border: 1px solid var(--line); }
.steps li:target .no { background: var(--yellow); color: var(--on-yellow); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
figure img { border: 1px solid var(--line); background: var(--sheet); }
figcaption { font-size: 13.5px; line-height: 1.55; color: var(--soft); }
figcaption b { font-family: var(--mono); font-weight: 500; color: var(--ink); margin-right: 8px; }

/* ------------------------------------------------ sheets: index rail + content */
.sheet { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px 44px; padding-block: 52px 0; margin-top: 52px; border-top: 1px solid var(--line); }
.rail h2 { font-weight: 900; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.rail p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.body { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.body > p { max-width: 42em; }
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

/* specification lists and tables */
dl.spec { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 2px solid var(--ink); }
dl.spec dt, dl.spec dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
dl.spec dt { padding-right: 28px; font-size: 13.5px; color: var(--soft); }
dl.spec dd { font-weight: 500; }
dl.spec dd small { display: block; font-family: var(--body); font-weight: 400; font-size: 13.5px; color: var(--soft); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { caption-side: top; text-align: left; padding-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
caption span { font-family: var(--body); font-weight: 400; font-size: 13.5px; color: var(--soft); margin-left: 10px; }
thead th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.04em; color: var(--soft); padding: 8px 14px 8px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
tbody td, tbody th { text-align: left; font-weight: 400; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody th { font-weight: 600; min-width: 7.5em; }
table.wide { min-width: 640px; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.say { color: var(--soft); font-size: 14px; min-width: 12em; }
.code { display: inline-block; min-width: 30px; padding: 1px 0 1px 8px; border-left: 6px solid var(--c, var(--line)); font-family: var(--mono); font-weight: 500; }

/* the working order: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 340px); gap: 8px 22px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: start; }
.steps li:first-child { border-top: 2px solid var(--ink); }
.steps .no { font-family: var(--mono); font-weight: 500; font-size: 15px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--blue-fill); color: var(--on-blue); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--soft); }
.steps code, .quote { font-family: var(--mono); font-size: 0.9em; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); padding: 1px 6px; }

/* a note set apart: only for the one answer people always ask for */
.note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px 32px; padding: 24px; background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--yellow); align-items: start; }
.note h3 { margin-bottom: 8px; }
.note p + p { margin-top: 10px; }
.note .big { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }

.contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.contact div { padding: 12px 14px; border: 1px dashed var(--soft); min-width: 0; }
.contact span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--soft); }
.contact b { font-weight: 500; color: var(--blue); }
.fine { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.65; color: var(--soft); max-width: 60em; }

@media (max-width: 860px) {
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 40px 0; margin-top: 40px; }
  .two, .note { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); }
  .steps figure { grid-column: 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .gallery, .pair { grid-template-columns: minmax(0, 1fr); }
  .cover { padding-block: 36px 0; }
  dl.spec { grid-template-columns: minmax(0, 1fr); }
  dl.spec dt { padding-bottom: 0; border-bottom: none; }
  dl.spec dd { padding-top: 2px; }
}

/* ------------------------------------------------ web: the way to the request page */
.mast { align-items: center; }
.mast .name { color: inherit; text-decoration: none; }
.mast .right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.cta { display: inline-block; padding: 13px 22px; background: var(--yellow); color: var(--on-yellow); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; border: 2px solid var(--on-yellow); box-shadow: 4px 4px 0 var(--ink); transition: transform 0.1s, box-shadow 0.1s; cursor: pointer; }
.cta:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.cta.sm { padding: 6px 13px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.ctaline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.ctaline span { font-size: 15px; color: var(--soft); max-width: 26em; line-height: 1.6; }
.contact a { color: inherit; }

