/* bizcard-md site: a print shop. Cool proof-paper grey, a green cutting mat,
   crop marks and the four process colours. Archivo (wide) and IBM Plex Mono. */
:root {
  --paper: #eef0f2;
  --sheet: #fbfcfd;
  --ink: #111417;
  --muted: #4d545c;
  --rule: #c9ced4;
  --mat: #1d4a37;
  --mat-line: rgba(214, 236, 222, .14);
  --mat-line-2: rgba(214, 236, 222, .28);
  --cyan: #00a3e0;
  --magenta: #e6007e;
  --yellow: #ffd400;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--display); font-variation-settings: "wdth" 100; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
code, pre { font-family: var(--mono); font-size: .9em; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

/* Crop-mark corners: the brand mark. */
.crop { position: relative; display: inline-block; width: 18px; height: 18px; flex: none; }
.crop::before, .crop::after { content: ""; position: absolute; inset: 0; border: 2px solid currentColor; }
.crop::before { clip-path: polygon(0 0, 40% 0, 40% 2px, 2px 2px, 2px 40%, 0 40%, 0 100%, 40% 100%, 40% calc(100% - 2px), 2px calc(100% - 2px), 2px 60%, 0 60%); }
.crop::after { clip-path: polygon(60% 0, 100% 0, 100% 100%, 60% 100%, 60% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 2px, 60% 2px); }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--mono); text-decoration: none; letter-spacing: -.01em; }
.nav { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; font: 500 14px/1 var(--mono); }
.nav a { text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cmyk { display: inline-flex; }
.cmyk i { width: 12px; height: 12px; display: block; }
.cmyk i:nth-child(1) { background: var(--cyan); }
.cmyk i:nth-child(2) { background: var(--magenta); }
.cmyk i:nth-child(3) { background: var(--yellow); }
.cmyk i:nth-child(4) { background: var(--ink); }
h1 { margin-top: 22px; font-size: clamp(36px, 4.6vw, 62px); line-height: .98; font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -.025em; text-wrap: balance; }
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: #fff; font: 600 15px/1 var(--mono); text-decoration: none; border: 2px solid var(--ink); }
.btn:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); }
.one-liner { margin-top: 20px; font-size: 15px; color: var(--muted); }
.one-liner code { background: var(--sheet); border: 1px solid var(--rule); padding: 6px 10px; display: inline-block; }

/* The cutting mat */
.mat {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line-2) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 30px 60px -30px rgba(17, 20, 23, .5);
}
.mat .card { position: absolute; display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 18px 34px -10px rgba(0, 0, 0, .55); transition: transform .25s ease; }
.mat .card:hover { z-index: 5; }
.mat .c1 { width: 46%; left: 4%; top: 6%; transform: rotate(-4deg); }
.mat .c2 { width: 46%; right: 4%; top: 9%; transform: rotate(3deg); }
.mat .c3 { width: 25%; left: 37.5%; top: 37%; transform: rotate(-3deg); z-index: 2; }
.mat .c4 { width: 46%; left: 5%; bottom: 7%; transform: rotate(2.5deg); }
.mat .c5 { width: 46%; right: 3%; bottom: 5%; transform: rotate(-2deg); }
.mat .card:hover { transform: rotate(0) scale(1.04); }

/* Section heads */
section h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -.02em; }
.num { font: 500 14px/1 var(--mono); color: var(--magenta); letter-spacing: .04em; transform: translateY(-.3em); }
.section-lede { margin-top: 14px; color: var(--muted); max-width: 42em; }

/* How it works */
.how { padding: 88px 0; border-top: 1px solid var(--rule); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.steps li { counter-increment: step; position: relative; background: var(--sheet); padding: 30px 26px 28px; border: 1px solid var(--rule); }
.steps li::before { content: "0" counter(step); display: block; font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 18px; }
.steps li::after { content: ""; position: absolute; left: -9px; top: -9px; width: 16px; height: 16px; border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.steps h3 { font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -.01em; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16px; }
.steps p + p, .ask + p { margin-top: 12px; }
.ask { font-size: 17px; line-height: 1.45; border-left: 4px solid var(--yellow); padding: 2px 0 2px 14px; }

/* Themes */
.themes-band { padding: 88px 0; background: var(--ink); color: #f2f4f6; }
.themes-band .section-lede { color: #a9b1ba; }
.themes-band .num { color: var(--yellow); }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; margin-top: 44px; }
.theme .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-decoration: none; }
.theme .pair.square { grid-template-columns: 1fr 1fr; width: 78%; }
.theme img { box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 28px -12px rgba(0, 0, 0, .7); }
.theme figcaption { margin-top: 16px; color: #a9b1ba; font-size: 15px; }
.theme figcaption b { font: 500 14px/1 var(--mono); color: #fff; background: rgba(255, 255, 255, .1); padding: 4px 8px; margin-right: 8px; }
.theme a:hover img { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Print */
.print { padding: 88px 0; }
.print-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.specs { margin-top: 34px; border-top: 2px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font: 500 13px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.specs dd { color: var(--muted); font-size: 16px; }
.proofs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; }
.proof img { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 20px 40px -18px rgba(17, 20, 23, .45); }
.proof figcaption { margin-top: 12px; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.k-trim { color: #0088bb; }
.k-safe { color: #c4006b; }

/* Examples */
.examples { padding: 80px 0; background: var(--sheet); border-block: 1px solid var(--rule); }
.ex-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.ex-list a { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; height: 100%; }
.ex-list a:hover { background: var(--yellow); color: var(--ink); }
.ex-list b { font-size: 21px; font-weight: 800; font-variation-settings: "wdth" 108; }
.ex-list b[lang="ar"] { font-family: "Noto Naskh Arabic", "Geeza Pro", serif; font-weight: 700; text-align: start; }
.ex-list span { font: 400 13px/1.4 var(--mono); color: var(--muted); }

/* Install */
.install-band { padding: 88px 0; }
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.install h3 { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.install pre { background: var(--mat); color: #e8f3ec; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* Footer */
.foot { background: var(--ink); color: #c4cbd2; padding: 44px 0 52px; font-size: 15px; }
.foot-row { display: grid; gap: 10px; }
.foot .wordmark { color: #fff; margin-bottom: 8px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--yellow); }

/* 404 */
.lost { padding: 110px 0 130px; min-height: calc(100vh - 200px); }
.lost h1 { max-width: 14em; }

@media (max-width: 960px) {
  .hero-grid, .print-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 64px; }
  .mat { max-width: 640px; }
  .proofs { max-width: 560px; }
  .steps, .install { grid-template-columns: 1fr; }
  .ex-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 14px; font-size: 13px; }
  .themes { grid-template-columns: 1fr; }
  .theme .pair.square { width: 100%; }
  .proofs { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .ex-list { grid-template-columns: 1fr; }
  .how, .themes-band, .print, .install-band { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mat .card { transition: none; }
}
