@font-face{font-family:"Adventor";src:url(/fonts/adventor-regular.woff2) format("woff2");font-weight:400;font-display:swap;ascent-override:92%;descent-override:26%;line-gap-override:0%}
@font-face{font-family:"Adventor";src:url(/fonts/adventor-bold.woff2) format("woff2");font-weight:700;font-display:swap;ascent-override:92%;descent-override:26%;line-gap-override:0%}
/* Layout: heavy-equipment paint job. A sticky orange bar, then each page opens on an orange slab with its title; below is a charcoal spec sheet with ruled lists. Page changes are an orange paint wipe. Single dark look on purpose. */
:root {
  color-scheme: dark;
  --ore: #E79236;
  --ink: #17140F;
  --ground: #1E1C19;
  --raised: #26231F;
  --line: #3A3631;
  --muted: #A8A196;
  --text: #EFEAE2;
  --f: "Adventor", "ITC Avant Garde Gothic", "Avant Garde", "Century Gothic", "Futura", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.7, 0, .25, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ground); color: var(--text); font-family: var(--f); font-size: 17px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ore); }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
p { margin: 0; max-width: 60ch; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ore); color: var(--ink); }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 2px solid var(--ink); }
.logo { font-weight: 700; letter-spacing: .04em; text-decoration: none; font-size: 1.05rem; }
.links { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; position: relative; }
.links a { text-decoration: none; font-size: .95rem; display: block; padding-block: 4px; }
.links .ind { position: absolute; bottom: -2px; height: 2px; background: var(--ink); transition: left .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.menu-btn { display: none; font: inherit; font-weight: 700; background: none; border: 2px solid var(--ink); color: var(--ink); padding: 6px 14px; cursor: pointer; }
@media (max-width: 760px) {
  .links { display: none; }
  .menu-btn { display: block; }
}

/* Mobile menu */
.sheet {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--ore);
  padding: calc(env(safe-area-inset-top, 0px) + 80px) max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
}
.sheet.open { clip-path: inset(0 0 0 0); visibility: visible; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sheet a { text-decoration: none; font-size: 2.6rem; font-weight: 700; line-height: 1.2; }
.sheet .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); right: max(20px, env(safe-area-inset-right, 0px)); font: inherit; font-weight: 700; background: none; color: var(--ore); border: 2px solid var(--ore); padding: 6px 14px; cursor: pointer; }

/* Paint wipe */
.wipe { position: fixed; inset: 0; z-index: 50; background: var(--ore); color: var(--ink); transform: translateY(101%); pointer-events: none; display: grid; place-items: center; }
.wipe span { font-weight: 700; font-size: clamp(2rem, 8vw, 4.5rem); letter-spacing: -.02em; text-transform: uppercase; }

/* Page slab */
.slab { background: var(--ore); color: var(--ink); }
.slab .wrap { padding-block: 56px 48px; display: grid; gap: 20px; }
.slab h1 { font-size: clamp(3rem, 10vw, 6.5rem); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
.slab p { font-size: 1.15rem; max-width: 46ch; }
.home .slab .wrap { padding-block: 72px 60px; }
.home .slab h1 { font-size: clamp(3.6rem, 14vw, 10.5rem); letter-spacing: -.045em; line-height: .86; }
.slab .sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.crumb { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 12px 22px; font-weight: 700; text-decoration: none; border: 2px solid currentColor; transition: background .2s, color .2s; }
.on-ore .btn { background: var(--ink); color: var(--ore); border-color: var(--ink); }
.on-ore .btn:hover { background: transparent; color: var(--ink); }
.on-ore .btn.alt { background: transparent; color: var(--ink); }
.on-ore .btn.alt:hover { background: var(--ink); color: var(--ore); }
.on-dark .btn { background: var(--ore); color: var(--ink); border-color: var(--ore); }
.on-dark .btn:hover { background: transparent; color: var(--ore); }
.on-dark .btn.alt { background: transparent; color: var(--ore); }
.on-dark .btn.alt:hover { background: var(--ore); color: var(--ink); }

/* Sections */
section.s .wrap { padding-block: 64px; display: grid; grid-template-columns: 1fr 2fr; gap: 28px 56px; border-bottom: 1px solid var(--line); }
section.s:last-child .wrap { border-bottom: 0; }
section.s h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; color: var(--ore); }
.body { display: grid; gap: 20px; min-width: 0; align-content: start; }
.body p { color: var(--muted); }
.body p strong { color: var(--text); font-weight: 700; }
@media (max-width: 760px) { section.s .wrap { grid-template-columns: 1fr; padding-block: 48px; } }

.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 10rem 1fr; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.row b { font-weight: 700; }
.row span { color: var(--muted); }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; gap: 4px; } }

/* Page tiles on home */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tile { display: grid; gap: 10px; align-content: start; padding: 28px 24px 32px 0; text-decoration: none; border-bottom: 1px solid var(--line); position: relative; min-width: 0; }
.tile + .tile { padding-left: 24px; border-left: 1px solid var(--line); }
.tile h3 { font-size: 1.5rem; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 12px; }
.tile h3 i { font-style: normal; color: var(--ore); transition: transform .35s var(--ease); }
.tile p { color: var(--muted); font-size: .95rem; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ore); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }
.tile:hover h3 i { transform: translateX(6px); }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile + .tile { padding: 22px 0; border-left: 0; }
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 460px; }
th, td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-weight: 400; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
td { padding-right: 20px; }
td:first-child { font-weight: 700; white-space: nowrap; }
td:not(:first-child) { color: var(--muted); }

ul.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
ul.plain li { padding-left: 22px; position: relative; color: var(--muted); }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--ore); }

ol.steps { margin: 0; padding: 0; list-style: none; display: grid; counter-reset: s; border-top: 1px solid var(--line); }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
ol.steps li::before { content: counter(s); font-weight: 700; color: var(--ore); font-size: 1.3rem; line-height: 1.3; }
ol.steps b { color: var(--text); display: block; }

/* Guides accordion */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary { transition: color .3s; }
summary:hover, details.is-open summary { color: var(--ore); }
summary::after { content: "+"; color: var(--ore); font-size: 1.4rem; line-height: 1; transition: transform .45s var(--ease); }
details.is-open summary::after { transform: rotate(135deg); }
.d-body { overflow: hidden; position: relative; }
.d-body::before { content: ""; position: absolute; left: 0; top: 0; bottom: 20px; width: 2px; background: var(--ore); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease) .1s; }
details.is-open .d-body::before { transform: scaleY(1); }
.d-body > div { display: grid; gap: 12px; padding: 0 0 20px 18px; }
.d-body p { color: var(--muted); }

.note { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); line-height: 1.7; }

footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Pages */
.page[hidden] { display: none !important; }
.page.enter [data-in] { animation: up .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page.enter [data-in] { animation: none; }
  .sheet, .links .ind, .tile::after, .d-body { transition: none; }
}

/* Arriving from another page: the wipe slides off the top */
.wipe.arrive { animation: wipe-off .55s cubic-bezier(.7,0,.25,1) .05s both; }
@keyframes wipe-off { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@media (prefers-reduced-motion: reduce) { .wipe.arrive { animation: none; } }
