/* Armortek microsite look. Values read from the live shop on 21 Nov 2026
   (Kalles theme); sources in work/markiv/research/shop-look.md. */
:root {
  --brand: #edaf10;
  --ink: #3c3c3c;
  --strong: #222222;
  --muted: #696969;
  --line: #dddddd;
  --bg: #ffffff;
  --panel: #f6f6f6;
  --tag-bg: #3c3c3c;
  --tag-ink: #dddddd;
  --foot-bg: #424242;
  --foot-ink: #f5f5f5;
  --red: #ec0101;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pill: 30px;
  --max: 1170px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--font); }
h1, h2, h3 { color: var(--strong); font-weight: 600; line-height: 1.2; }
a { color: var(--strong); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 15px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 6px 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: three bands, as on the shop */
.s-head { background: var(--brand); position: sticky; top: 0; z-index: 20; }
.s-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 94px; }
.s-logo img { display: block; width: 165px; height: auto; }
.s-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.s-nav a { color: var(--strong); text-decoration: none; font-size: 15px; font-weight: 600; text-transform: uppercase; }
.s-nav a:hover, .s-nav a:focus { color: #f5f5f5; }
.s-burger { display: none; background: none; border: 0; font-size: 26px; color: var(--strong); padding: 4px 8px; }
.s-tag { background: var(--tag-bg); color: var(--tag-ink); text-align: center; font-size: 13px; letter-spacing: 1px; padding: 8px 15px; text-transform: uppercase; }

/* Buttons: pill shaped, capitals, as on the shop */
.btn { display: inline-block; background: var(--strong); color: #fff; text-decoration: none; font: 600 17px/1.3 var(--font);
  padding: 10px 22px; border-radius: var(--pill); border: 2px solid var(--strong); text-transform: uppercase; cursor: pointer; }
.btn:hover, .btn:focus { background: #343434; color: #fff; }
.btn.yellow { background: var(--brand); border-color: var(--brand); color: var(--strong); }
.btn.yellow:hover, .btn.yellow:focus { background: #d99f0c; border-color: #d99f0c; color: var(--strong); }
.btn.ghost { background: transparent; color: var(--strong); }
.btn.ghost:hover, .btn.ghost:focus { background: var(--strong); color: #fff; }

/* Viewer and the kit beside it */
/* Title and welcome full width, the model below with the buttons and versions
   stacked beside it, then the work list full width under the model. */
.hero { padding: 24px 15px 8px; }
.intro h1 { font-size: 32px; margin: 0 0 10px; }
.intro p { margin: 0 0 18px; max-width: 72em; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 22px; }
.side .actions { display: flex; flex-direction: column; gap: 8px; }
.side .btn { padding: 8px 14px; font-size: 14px; text-align: center; }
.versions { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.versions legend { padding: 0; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.versions .chip { text-align: left; border-radius: 8px; line-height: 1.35; }
.wl-block { margin-top: 18px; }
.wl-block > p { margin: 0 0 10px; }
.view { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(#fbfbf9, #ebebe6); overflow: hidden; }
.view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.view .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s, visibility 0s; }
.view.ready .poster { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility 0s .4s; }
.view .hint { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(255,255,255,.88); padding: 3px 8px; font-size: 13px; color: var(--muted); }
.view .state { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; text-align: center; font-size: 14px; color: var(--strong); }
.view .state:empty { display: none; }
.view .state span { background: rgba(255,255,255,.9); padding: 3px 10px; }
/* While the model downloads: a clear message in the middle of the still, so nobody wonders why it will not turn. */
.view .state.loading { inset: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.35); }
.view .state.loading span { display: flex; align-items: center; gap: 12px; background: rgba(17,17,17,.85); color: #fff;
  padding: 12px 20px; border-radius: var(--pill); font-size: 16px; font-weight: 600; }
.view .state.loading span::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.3); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .view .state.loading span::before { animation-duration: 3s; } }
.tip { display: none; position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; background: rgba(17,17,17,.9); color: #fff;
  padding: 8px 10px; font-size: 14px; gap: 10px; align-items: center; justify-content: space-between; }
.tip.show { display: flex; }
.tip button { background: none; border: 1px solid #fff; color: #fff; padding: 2px 10px; font: inherit; cursor: pointer; }
.chip { border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: var(--pill); font: inherit; font-size: 14px; cursor: pointer; color: var(--strong); }
.chip[aria-pressed="true"] { border-color: var(--strong); background: var(--strong); color: #fff; }
.chip:disabled { color: #8a8a8a; cursor: default; }
.worklist { margin-top: 0; background: var(--panel); border-left: 4px solid var(--brand); padding: 10px 16px; }
.worklist h2 { font-size: 17px; margin: 0 0 4px; }
.wl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 18px; }
.wl-col h3 { font-size: 14px; margin: 4px 0; color: var(--muted); font-weight: 600; }
.wl-col ul { list-style: none; margin: 0; padding: 0 4px 0 0; font-size: 15px; max-height: calc(5 * (1.4em + 6px)); overflow-y: auto; }
.wl-col li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; line-height: 1.4; }
.wl-icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
.wl-todo .wl-icon { color: #8a6d00; }
.wl-done .wl-icon { color: #2e7d32; }

/* Sections */
.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { font-size: 24px; letter-spacing: 1px; text-transform: uppercase; text-align: center; margin: 0 0 20px; }
/* Headings reached from the contents list clear the sticky header. */
[id] { scroll-margin-top: 110px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cols h3 { font-size: 20px; margin: 0 0 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.story { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 15px; }
.toc ol { padding-left: 20px; margin: 6px 0; }
.story article h3 { font-size: 23px; margin: 28px 0 8px; }
.story article h3:first-child { margin-top: 0; }
.story article p { max-width: 70ch; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 8px; max-width: 70ch; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; background: var(--panel); }
.photo figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.photo .credit { display: block; }
@media (max-width: 560px) { .photos { grid-template-columns: 1fr; } }

/* Newsletter */
.news { background: var(--panel); padding: 28px 0; }
.news h2 { margin: 0; text-transform: uppercase; letter-spacing: 1px; font-size: 22px; }
.news form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; margin-top: 12px; align-items: end; }
.news label { display: block; font-size: 14px; color: var(--muted); }
.news input { width: 100%; padding: 11px 12px; border: 1px solid #bbb; font: inherit; font-size: 16px; background: #fff; }
.news .consent { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin: 0; }
.news .result { grid-column: 1 / -1; margin: 0; font-weight: 600; }

/* Footer */
.s-foot { background: var(--foot-bg); color: var(--foot-ink); padding: 32px 0; font-size: 15px; }
.s-foot a { color: var(--brand); text-decoration: none; }
.s-foot a:hover { text-decoration: underline; }
.s-foot h2 { color: #fff; font-size: 16px; margin: 0 0 8px; text-transform: uppercase; }
.s-foot ul { list-style: none; margin: 0; padding: 0; }
.s-copy { background: #383838; color: #cfcfcf; font-size: 13px; text-align: center; padding: 10px 15px; }

/* Narrow screens */
@media (max-width: 860px) {
  .hero { padding-top: 12px; }
  .stage { grid-template-columns: 1fr; gap: 14px; }
  .side { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .side .actions { flex: 1 1 220px; }
  .versions { flex: 1 1 200px; min-height: 0; }
  .view { aspect-ratio: 4 / 3.4; }
  .intro h1 { font-size: 26px; }
  .cols { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .toc { position: static; }
  .news form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .s-head .wrap { min-height: 64px; }
  .s-logo img { width: 130px; }
  .s-burger { display: block; }
  .s-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--brand); flex-direction: column; gap: 0; padding: 6px 15px 12px; }
  .s-nav.open { display: flex; }
  .s-nav a { padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
