:root {
  --ink: #141414;
  --ink-2: #222;
  --paper: #f5f2ec;
  --card: #fffdf9;
  --line: #e2dcd1;
  --text: #1f1c18;
  --muted: #6d665c;
  --red: #d7171d;
  --red-d: #b31016;
  --amber: #f0a019;
  --cream: #fbf1dc;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --ui: "IBM Plex Sans", system-ui, sans-serif;
  --w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
.lg-sr, .lg-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-skip:focus { position: fixed; z-index: 99; top: 8px; left: 8px; background: #fff; padding: 8px 12px; }

/* masthead */
.lg-mast { background: var(--ink); color: #eee; border-bottom: 3px solid var(--red); }
.lg-mast__row { max-width: var(--w); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.lg-mast__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #bbb; }
.lg-mast__tag { font: 600 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid #444; }
.lg-mast__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lg-mast__menu { display: none; background: none; border: 1px solid #444; border-radius: 4px; width: 42px; height: 38px; cursor: pointer; }
.lg-bars, .lg-bars::before, .lg-bars::after { display: block; width: 18px; height: 2px; background: #eee; margin: 0 auto; position: relative; content: ""; }
.lg-bars::before { position: absolute; top: -6px; } .lg-bars::after { position: absolute; top: 6px; }
.lg-langs { display: flex; gap: 2px; font: 600 12px/1 var(--head); }
.lg-langs a { color: #999; text-decoration: none; padding: 6px 7px; border-radius: 3px; }
.lg-langs a[aria-current] { color: #fff; background: #2d2d2d; }
.lg-nav { border-top: 1px solid #2a2a2a; }
.lg-nav__list { max-width: var(--w); margin: 0 auto; padding: 0 12px; list-style: none; display: flex; flex-wrap: wrap; }
.lg-nav__list a { display: block; padding: 12px 10px; color: #d6d6d6; font: 600 14px/1 var(--head); letter-spacing: .02em; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lg-nav__list a:hover { color: #fff; }
.lg-nav__list .is-here a { color: #fff; border-color: var(--amber); }

/* buttons */
.lg-go { display: inline-block; background: var(--red); color: #fff; font: 700 15px/1 var(--head); padding: 12px 20px; border-radius: 3px; text-decoration: none; letter-spacing: .01em; }
.lg-go:hover { background: var(--red-d); color: #fff; }
.lg-go--full { display: block; text-align: center; margin-top: 14px; }
.lg-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }

/* page head */
.lg-main { min-height: 50vh; }
.lg-wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px 64px; }
.lg-head { padding: 34px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.lg-head--home { border: 0; margin: 0; padding-bottom: 20px; }
.lg-trail { font: 500 13px/1.4 var(--ui); color: var(--muted); margin-bottom: 14px; }
.lg-trail a { color: var(--muted); }
.lg-title { margin: 0; font: 800 clamp(30px, 4.4vw, 50px)/1.06 var(--head); letter-spacing: -.015em; max-width: 22ch; color: var(--ink); }
.lg-title::before { content: ""; display: block; width: 46px; height: 5px; background: var(--red); margin-bottom: 18px; }
.lg-stamp { display: inline-block; margin-top: 14px; font: 500 13px/1 var(--ui); color: var(--muted); }
.lg-kicker { font: 700 13px/1 var(--head); letter-spacing: .12em; color: var(--red); }

/* homepage */
.lg-reel { position: relative; border-radius: 6px; overflow: hidden; background: var(--ink); aspect-ratio: 8 / 3; margin-bottom: 26px; }
.lg-reel__f { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.lg-reel__f.is-on { opacity: 1; z-index: 1; }
.lg-reel__f img { width: 100%; height: 100%; object-fit: cover; }
.lg-reel__n { position: absolute; z-index: 2; right: 14px; bottom: 12px; display: flex; gap: 6px; }
.lg-reel__n button { width: 22px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.lg-reel__n .is-on { background: #fff; }
.lg-index { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); margin-bottom: 44px; }
.lg-index a { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.lg-index a:hover b { color: var(--red); }
.lg-index__n { font: 700 12px/1 var(--head); color: var(--red); letter-spacing: .1em; }
.lg-index b { font: 700 18px/1.2 var(--head); color: var(--ink); }
.lg-index span:last-child { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* two columns */
.lg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: start; }
.lg-rail { position: sticky; top: 20px; display: grid; gap: 22px; font-family: var(--ui); }
.lg-map ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: m; }
.lg-map li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--muted); text-decoration: none; }
.lg-map li a:hover { color: var(--ink); border-color: var(--red); }
.lg-map__t { all: unset; display: block; font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.lg-glance { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 18px; }
.lg-glance__t { margin: 0 0 10px; font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.lg-glance dl { margin: 0; }
.lg-glance dl div { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.lg-glance dt { font-size: 12px; color: var(--muted); }
.lg-glance dd { margin: 0; font: 600 15px/1.35 var(--ui); color: var(--ink); }

/* prose */
.lg-prose { font: 400 18.5px/1.68 var(--serif); max-width: 720px; }
.lg-prose > *:first-child { margin-top: 0; }
.lg-prose p { margin: 0 0 1.15em; }
.lg-prose h2 { font: 800 clamp(24px, 2.6vw, 30px)/1.15 var(--head); color: var(--ink); margin: 2.1em 0 .7em; padding-top: .8em; border-top: 1px solid var(--line); letter-spacing: -.01em; }
.lg-prose h3 { font: 700 20px/1.25 var(--head); color: var(--ink); margin: 1.6em 0 .5em; }
.lg-prose ul, .lg-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.lg-prose li { margin-bottom: .45em; }
.lg-prose li::marker { color: var(--red); }
.lg-prose strong { font-weight: 600; color: var(--ink); }

/* tables */
.lg-tbl { margin: 1.6em 0; font: 400 15px/1.45 var(--ui); }
.lg-tbl__x { overflow-x: auto; }
.lg-tbl table { width: 100%; border-collapse: collapse; background: var(--card); }
.lg-tbl th { text-align: left; font: 700 13px/1.3 var(--head); letter-spacing: .03em; color: #fff; background: var(--ink); padding: 10px 12px; }
.lg-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lg-tbl tbody tr:nth-child(even) td { background: #faf6ee; }
.lg-tbl figcaption, .lg-cap { font: 400 13px/1.4 var(--ui); color: var(--muted); margin-top: 8px; }
.lg-sheet table { background: transparent; }
.lg-sheet th { background: transparent; color: var(--muted); font: 600 12px/1.3 var(--ui); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); }
.lg-sheet td:first-child { font-weight: 600; color: var(--ink); width: 40%; }
.lg-sheet tbody tr:nth-child(even) td { background: transparent; }

/* editorial components */
.lg-vs { display: grid; grid-template-columns: 1fr 1fr; margin: 1.8em 0; font: 400 16px/1.55 var(--ui); border: 1px solid var(--line); }
.lg-vs__s { padding: 18px 20px; }
.lg-vs__s p { margin: 0; }
.lg-vs__a { background: #f0ebe2; color: var(--muted); }
.lg-vs__b { background: var(--card); border-left: 4px solid var(--red); }
.lg-vs .lg-vs__l { font: 700 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.lg-memo { margin: 1.8em 0; padding: 18px 22px; background: var(--cream); border-left: 4px solid var(--amber); font: 400 16.5px/1.55 var(--ui); }
.lg-memo p { margin: 0 0 .6em; } .lg-memo p:last-child { margin: 0; }
.lg-memo .lg-memo__l { font: 700 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #8a5a00; }
.lg-prose ol.lg-steps { list-style: none; padding: 0; counter-reset: s; margin: 1.6em 0; }
.lg-steps > li { counter-increment: s; position: relative; padding: 0 0 18px 58px; margin: 0; min-height: 40px; }
.lg-steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 800 28px/1 var(--head); color: var(--red); }
.lg-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 34px; bottom: 6px; width: 1px; background: var(--line); }

/* images */
.lg-fig { margin: 1.8em 0; }
.lg-fig img { border-radius: 4px; }
.lg-pic--wide { margin-left: 0; margin-right: 0; }
.lg-duo { display: grid; grid-template-columns: 42% 1fr; gap: 26px; align-items: start; margin: 1.8em 0; }
.lg-duo--r { grid-template-columns: 1fr 42%; }
.lg-duo--r .lg-duo__m { order: 2; }
.lg-duo .lg-fig { margin: 0; }

/* faq */
.lg-qa { margin-top: 2.4em; }
.lg-qa details { border-bottom: 1px solid var(--line); }
.lg-qa summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative; font: 700 18px/1.3 var(--head); color: var(--ink); }
.lg-qa summary::-webkit-details-marker { display: none; }
.lg-qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 26px/1 var(--ui); color: var(--red); }
.lg-qa details[open] summary::after { content: "−"; }
.lg-qa__a { padding: 0 0 18px; font-size: 17px; }
.lg-qa__a p { margin: 0 0 .7em; }

/* calculator */
.lg-calc { margin: 2em 0; background: var(--ink); color: #eee; padding: 22px; border-radius: 6px; font: 400 15px/1.5 var(--ui); }
.lg-calc__t { margin: 0 0 14px; font: 800 20px/1.2 var(--head); color: #fff; }
.lg-calc__in { display: grid; gap: 6px; max-width: 260px; margin-bottom: 16px; font-size: 13px; color: #bbb; }
.lg-calc__in input { font: 700 22px/1 var(--head); padding: 10px 12px; border: 2px solid #444; background: #1e1e1e; color: #fff; border-radius: 4px; width: 100%; }
.lg-calc__in input:focus { outline: none; border-color: var(--amber); }
.lg-calc table { width: 100%; border-collapse: collapse; }
.lg-calc th, .lg-calc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #333; }
.lg-calc thead th { font: 600 12px/1.3 var(--ui); color: #999; text-transform: uppercase; letter-spacing: .05em; }
.lg-calc tbody th { font: 600 15px/1.3 var(--ui); color: #fff; }
.lg-calc small { display: block; color: #999; font-weight: 400; font-size: 12px; }
.lg-calc td { font: 700 17px/1.2 var(--head); color: #fff; }
.lg-calc td small { display: inline; color: var(--amber); }
.lg-calc .is-lean th { box-shadow: inset 3px 0 0 var(--amber); padding-left: 12px; }
.lg-calc__msg { color: var(--amber); margin: 12px 0 0; }
.lg-calc__n { margin: 14px 0 0; font-size: 13px; color: #9a9a9a; }

/* footer */
.lg-foot { background: var(--ink); color: #aaa; font: 400 14px/1.55 var(--ui); margin-top: 40px; }
.lg-foot__grid { max-width: var(--w); margin: 0 auto; padding: 42px 20px 26px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.lg-foot__about p { max-width: 46ch; margin: 14px 0 0; }
.lg-foot__t { font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 4px 0 12px; }
.lg-foot__list { list-style: none; margin: 0; padding: 0; }
.lg-foot__list a { color: #ccc; text-decoration: none; display: inline-block; padding: 4px 0; }
.lg-foot__list a:hover { color: #fff; }
.lg-foot__base { max-width: var(--w); margin: 0 auto; padding: 18px 20px 26px; border-top: 1px solid #2b2b2b; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.lg-foot__base p { margin: 0; }
.lg-foot__c { margin-left: auto !important; color: #777; }
.lg-age { font: 800 13px/1 var(--head); color: #fff; border: 2px solid var(--red); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.lg-dock { display: none; }
.lg-plain { padding-top: 40px; max-width: 760px; }

@media (max-width: 1020px) {
  .lg-cols { grid-template-columns: 1fr; gap: 0; }
  .lg-rail { position: static; order: -1; margin-bottom: 26px; }
  .lg-map { border: 1px solid var(--line); background: var(--card); padding: 12px 14px; }
  .lg-map__t { margin: 0; cursor: pointer; width: 100%; }
  .lg-map__t::after { content: "+"; float: right; color: var(--red); }
  .lg-map.is-open .lg-map__t::after { content: "−"; }
  .lg-map ol { display: none; margin-top: 10px; }
  .lg-map.is-open ol { display: block; }
  .lg-glance { display: none; }
  .lg-index { grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .lg-mast__row { padding: 10px 16px; gap: 10px; }
  .lg-mast__tag { display: none; }
  .lg-mast__end .lg-go { display: none; }
  .lg-mast__menu { display: block; order: 3; }
  .lg-mast__end { margin-left: auto; }
  .lg-nav { display: none; }
  .lg-nav.is-open { display: block; }
  .lg-nav__list { flex-direction: column; padding: 4px 16px 10px; }
  .lg-nav__list a { padding: 12px 0; border: 0; border-bottom: 1px solid #262626; }
  .lg-wrap { padding: 0 16px 48px; }
  .lg-head { padding: 24px 0 18px; margin-bottom: 22px; }
  .lg-prose { font-size: 17.5px; }
  .lg-reel { aspect-ratio: 16 / 9; }
  .lg-index { grid-template-columns: 1fr; }
  .lg-vs, .lg-duo, .lg-duo--r { grid-template-columns: 1fr; }
  .lg-duo--r .lg-duo__m { order: 0; }
  .lg-vs__b { border-left: 0; border-top: 4px solid var(--red); }
  .lg-tbl--cards thead { display: none; }
  .lg-tbl--cards table, .lg-tbl--cards tbody, .lg-tbl--cards tr, .lg-tbl--cards td { display: block; }
  .lg-tbl--cards tr { border: 1px solid var(--line); margin-bottom: 10px; background: var(--card); }
  .lg-tbl--cards tbody tr:nth-child(even) td { background: transparent; }
  .lg-tbl--cards td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; }
  .lg-tbl--cards td::before { content: attr(data-k); font: 600 12px/1.4 var(--ui); color: var(--muted); }
  .lg-tbl--cards td:first-child { background: var(--ink) !important; color: #fff; font-weight: 600; }
  .lg-tbl--cards td:first-child::before { color: #aaa; }
  .lg-calc { padding: 18px 14px; }
  .lg-foot__grid { grid-template-columns: 1fr 1fr; }
  .lg-foot__about { grid-column: 1 / -1; }
  .lg-foot__c { margin-left: 0 !important; }
  .lg-dock { display: block; position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 10px; text-align: center; background: var(--red); color: #fff; font: 700 16px/1 var(--head); padding: 15px; border-radius: 4px; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
}
@media (prefers-reduced-motion: reduce) { .lg-reel__f { transition: none; } }
