/* VinylCut: sibling of digitalkaos.tech. Ink-black stock, the app's own blue as the blade color. */

:root {
  color-scheme: dark;
  --stock: #0c0c0d;
  --panel: #151619;
  --ink: #f3efe6;
  --ink-2: rgb(243 239 230 / .72);
  --ink-3: rgb(243 239 230 / .58);
  --rule: rgb(243 239 230 / .14);
  --blade: #4da3ff;
  --blade-hover: #7dbbff;
  --blade-ink: #06213f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --sheet: 1360px;
  --reg: .03em;
  --reg-x: -.03em;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--ink-3) var(--stock); }
body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blade); color: var(--blade-ink); }
:focus-visible { outline: 2px solid var(--blade); outline-offset: 4px; border-radius: 2px; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blade-hover); }
img { display: block; max-width: 100%; height: auto; }
p, ul, ol, figure { margin: 0; }
p, li, summary { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 700; line-height: .92; letter-spacing: -.01em; }
h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  padding: .7rem 1rem; background: var(--blade); color: var(--blade-ink);
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
}
.skip:focus { top: 1rem; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--sheet); margin: 0 auto; padding: 1.4rem var(--gutter);
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.7rem;
  text-transform: uppercase; text-decoration: none; letter-spacing: .01em;
  display: inline-flex; align-items: center; min-height: 44px;
}
.top nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.top nav a {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink-2);
  display: inline-flex; align-items: center; min-height: 44px;
}
.top nav a:hover { color: var(--ink); }
.top nav .nav-dl { color: var(--blade); }

/* Misregistered heading, in the blade color */
.head {
  font-size: clamp(3.4rem, 8.4vw, 6rem);
  font-weight: 700; line-height: .86; letter-spacing: -.012em;
  text-shadow: var(--reg-x) var(--reg) 0 var(--blade);
}
@media (prefers-reduced-motion: no-preference) {
  .head { animation: register 1.4s var(--ease) .15s both; }
  @keyframes register {
    from { text-shadow: -.2em .16em 0 transparent; }
    35%  { text-shadow: -.14em .11em 0 var(--blade); }
    to   { text-shadow: var(--reg-x) var(--reg) 0 var(--blade); }
  }
}

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36rem; }
.fine { font-size: .95rem; color: var(--ink-3); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .7rem 1.4rem;
  background: var(--blade); color: var(--blade-ink); border: 2px solid var(--blade);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--blade-hover); border-color: var(--blade-hover); color: var(--blade-ink); }
.btn svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-line:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-big { min-height: 3.6rem; font-size: 1.25rem; overflow-wrap: anywhere; text-align: left; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--sheet); margin: 0 auto;
  padding: clamp(2rem, 6vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}
.hero-copy { display: grid; gap: 1.6rem; }
.hero-shot { position: relative; padding: 14px; }
.hero-shot img { border: 1px solid var(--rule); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .7); }
.cutline {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.cutline rect {
  fill: none; stroke: var(--blade); stroke-width: 1.5px; vector-effect: non-scaling-stroke;
  stroke-dasharray: .012 .008;
}
@media (prefers-reduced-motion: no-preference) {
  .cutline rect { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: plot 3.2s var(--ease) .5s forwards; }
  .cutline.done rect { animation: none; stroke-dasharray: .012 .008; stroke-dashoffset: 0; transition: stroke-dasharray .6s ease; }
  @keyframes plot { to { stroke-dashoffset: 0; } }
}

/* At a glance */
.strip { border-block: 1px solid var(--rule); background: var(--panel); }
.strip ul {
  list-style: none; padding: 0;
  max-width: var(--sheet); margin: 0 auto; padding: 1.8rem var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2.5rem;
}
.strip li { color: var(--ink-2); font-size: .98rem; }
.strip strong {
  display: block; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em;
}

/* Feature rows */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--sheet); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--gutter) 0;
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 1.3rem; }
.feature-copy > p { color: var(--ink-2); max-width: 34rem; }
.shot img { border: 1px solid var(--rule); box-shadow: 0 24px 60px -24px rgb(0 0 0 / .75); }
.ticks { list-style: none; padding: 0; display: grid; gap: .6rem; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: 0;
  border-top: 2px dashed var(--blade);
}

/* Kit */
.kit { max-width: var(--sheet); margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) var(--gutter) 0; }
.kit h2 { max-width: 16ch; }
.kit-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem;
  margin-top: 2.8rem; border-top: 2px solid var(--ink); padding-top: 2rem;
}
.kit-cols ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .55rem; color: var(--ink-2); }

/* Download */
.download {
  max-width: var(--sheet); margin: clamp(5rem, 9vw, 8rem) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem);
}
.dl-main {
  display: grid; gap: 1.5rem; align-content: start;
  padding: clamp(1.8rem, 4vw, 3rem); background: var(--panel);
  border: 2px dashed var(--blade);
}
.sum { color: var(--ink-3); font-size: .92rem; overflow-wrap: anywhere; }
.sum span { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-right: .4rem; }
.steps { padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1.6rem; align-content: center; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; color: var(--ink-2); }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--blade);
}
.steps strong { display: block; color: var(--ink); font-weight: 600; }
.steps em { font-style: normal; color: var(--ink); }

/* FAQ */
.faq { max-width: 60rem; margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) var(--gutter) 0; }
.faq h2 { margin-bottom: 1.8rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 600; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 2px solid var(--blade); border-bottom: 2px solid var(--blade);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--blade-hover); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 65ch; }

/* Credit and footer */
.credit { max-width: 60rem; margin: 0 auto; padding: clamp(4rem, 7vw, 6rem) var(--gutter); }
.credit h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.credit p { color: var(--ink-2); max-width: 60ch; }
.credit a { color: var(--ink); }
.foot {
  border-top: 1px solid var(--rule);
  max-width: var(--sheet); margin: 0 auto; padding: 2rem var(--gutter) 2.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem;
  color: var(--ink-3); font-size: .95rem;
}
.counter { font-variant-numeric: tabular-nums; }
.counter span { color: var(--ink); font-weight: 600; }

@media (max-width: 980px) {
  .hero, .feature, .feature.flip, .download { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-cols { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .top nav a:not(.nav-dl) { display: none; }
  .strip ul { grid-template-columns: 1fr; }
  .hero-shot { padding: 8px; }
  .btn { width: 100%; }
}
