/* primekitlabs.com. A lab notebook: graph paper underneath, sections laid on it as sheets,
   code shown as it really is. IBM Plex is served from this site; nothing loads from anywhere else.
   Sister site of getfreepdfeditor.com, and shares its type and paper. */

@font-face { font-family: "Plex Sans"; src: url("fonts/IBMPlexSans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --desk: #f3f1ec;
  --grid: rgba(23, 23, 27, 0.045);
  --grid-major: rgba(23, 23, 27, 0.075);
  --sheet: #ffffff;
  --text: #17171b;
  --muted: #5a5c63;
  --dim: #8a8c93;
  --line: #e7e4de;
  --line-2: #d8d4cc;
  --accent: #157f45;
  --accent-soft: rgba(21, 127, 69, 0.1);
  --code: #15161a;
  --code-line: #262830;
  --code-text: #b9bdc6;
  --code-dim: #6c717c;
  --prompt: #3ccf7a;
  --add: #56d364;
  --add-bg: rgba(46, 160, 67, 0.16);
  --del: #ff7b72;
  --del-bg: rgba(248, 81, 73, 0.14);
  --kw: #8cc2ff;
  --str: #a5d6a7;
  --num: #e7b75f;
  --pdf: #d9442a;
  --sql: #2f8fd6;
  --sans: "Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--desk);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
::selection { background: rgba(60, 207, 122, 0.28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.mono { font-family: var(--mono); }

/* header */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(243, 241, 236, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand span { font: 400 13px/1 var(--mono); color: var(--dim); letter-spacing: 0; }
@media (max-width: 480px) { .brand span { display: none; } }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
@media (max-width: 680px) { .top nav .opt { display: none; } }
@media (max-width: 420px) { .top nav .opt-sm { display: none; } }
.top nav .button { white-space: nowrap; }

.button {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 8px;
  background: var(--text); color: var(--desk); font: 600 15.5px/1.2 var(--sans); text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.button:hover { background: #2a2a31; }
.button.ghost { background: var(--sheet); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, 0.04); }
.button.ghost:hover { background: #faf9f6; }
.top nav a.button { color: var(--desk); padding: 8px 14px; font-size: 14px; }
.fine { font: 13px/1.5 var(--mono); color: var(--dim); }

/* hero: words on the left, the shell on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-block: 88px 96px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 56px 64px; } }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; border-radius: 6px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line-2); font: 500 12.5px/1 var(--mono); color: var(--muted); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--prompt); box-shadow: 0 0 0 3px rgba(60, 207, 122, 0.2); }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 22px; max-width: 32em; font-size: clamp(17px, 1.7vw, 19px); color: var(--muted); }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }

/* terminal window */
.term { border-radius: 11px; overflow: hidden; background: var(--code); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 22px 60px rgba(40, 30, 20, 0.22), 0 6px 16px rgba(40, 30, 20, 0.1); }
.term-bar { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; height: 30px; padding-inline: 12px; background: #1d1e23; border-bottom: 1px solid var(--code-line); font: 12px/1 var(--mono); color: var(--code-dim); }
.term-bar b { font-weight: 400; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.term pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; font: 13px/1.75 var(--mono); color: var(--code-text); }
.term .p { color: var(--prompt); }
.term .c { color: var(--code-dim); }
.term .b { color: #e6e8ee; }
.term .ok { color: var(--add); }
.term .wip { color: var(--num); }
.cursor { display: inline-block; width: 0.6em; height: 1.15em; vertical-align: -0.2em; background: var(--prompt); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sheets: sections laid on the desk, numbered like pages */
main { flex: 1; }
.sheet {
  position: relative; margin: 0 max(24px, calc((100% - 1072px) / 2)) 40px; padding: 72px 72px 64px;
  background: var(--sheet); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(40, 30, 20, 0.08), 0 2px 6px rgba(40, 30, 20, 0.04);
}
@media (max-width: 760px) { .sheet { padding: 44px 20px 56px; margin-inline: 0; border-radius: 0; } }
.sheet .folio { position: absolute; right: 24px; bottom: 18px; font: 12px/1 var(--mono); color: var(--dim); }
.eyebrow { font: 500 13px/1 var(--mono); color: var(--accent); margin-bottom: 16px; }
.eyebrow::before { content: "## "; color: var(--dim); }
.sheet h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 20em; }
.sheet .intro { margin-top: 16px; max-width: 38em; color: var(--muted); font-size: 17px; }

/* products */
.products { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .product { padding: 20px; } .product-head { flex-wrap: wrap; } .status { margin-left: 62px; } }
.product { display: flex; flex-direction: column; padding: 28px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); background: #fdfcfa; }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-head img { width: 48px; height: 48px; flex: none; }
.product h3 { font-size: 21px; }
.product .domain { font: 13px/1.3 var(--mono); color: var(--dim); }
.status { margin-left: auto; flex: none; font: 500 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 5px; white-space: nowrap; }
.status.live { color: var(--accent); background: var(--accent-soft); }
.status.soon { color: #9a6a06; background: rgba(231, 183, 95, 0.2); }
.product .pitch { margin-top: 20px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.product .desc { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.spec { margin: 20px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.spec dt { font: 12.5px/1.7 var(--mono); color: var(--dim); }
.spec dd { margin: 0; color: var(--text); }
.snippet { margin: 22px 0 0; background: var(--code); border-radius: 8px; overflow: hidden; }
.snippet pre { margin: 0; padding: 12px 0 13px; overflow-x: auto; font: 12.5px/1.7 var(--mono); }
.snippet pre span { display: block; padding-inline: 14px 18px; white-space: pre; color: var(--code-text); min-width: max-content; }
.snippet .d { background: var(--del-bg); color: var(--del); }
.snippet .a { background: var(--add-bg); color: var(--add); }
.snippet em { font-style: normal; color: var(--code-dim); }
.snippet .k { color: var(--kw); }
.snippet .s { color: var(--str); }
.snippet .n { color: var(--num); }
.snippet figcaption { padding: 9px 14px 11px; border-top: 1px solid var(--code-line); font: 12px/1.5 var(--mono); color: var(--code-dim); }
.product .more { margin-top: auto; padding-top: 24px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.product .more:hover { color: var(--accent); }
.product .more span { transition: transform 0.15s ease; }
.product .more:hover span { transform: translateX(3px); }

/* how we work */
.notes { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 1000px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .notes { grid-template-columns: 1fr; gap: 28px; } }
.note .num { font: 500 30px/1 var(--mono); letter-spacing: -0.02em; }
.note h3 { margin-top: 14px; font-size: 17px; }
.note p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* the tools we build with, drifting past */
.stack { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.ribbon { margin-top: 10px; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ribbon ul { flex: none; display: flex; gap: 28px; margin: 0; padding: 0 28px 0 0; list-style: none; font: 13px/1.8 var(--mono); color: var(--muted); animation: ribbon 60s linear infinite; }
.ribbon li { white-space: nowrap; }
.ribbon li:nth-child(4n + 2) { color: var(--accent); }
@keyframes ribbon { to { transform: translateX(-100%); } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.mail { display: inline-block; margin-top: 24px; font: 500 clamp(19px, 2.6vw, 26px)/1.3 var(--mono); letter-spacing: -0.01em; text-decoration: none; border-bottom: 2px solid var(--accent); overflow-wrap: anywhere; }
.mail:hover { color: var(--accent); }
.topics { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.topics li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.topics li:first-child { border-top: 1px solid var(--line); }
.topics b { font: 500 13.5px/1.7 var(--mono); color: var(--text); }
@media (max-width: 480px) { .topics li { grid-template-columns: 1fr; gap: 2px; } }

/* footer: a man page's last line */
footer { margin-top: 40px; background: var(--sheet); border-top: 1px solid var(--line); }
footer .wrap { padding-block: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--dim); }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.manline { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); font: 12px/1.4 var(--mono); color: var(--dim); }
@media (max-width: 560px) { .manline span:nth-child(2) { display: none; } }

/* text pages (privacy, terms, 404): one sheet */
.doc { width: 100%; max-width: 760px; margin: 40px auto 32px; padding: 64px 64px 72px; background: var(--sheet); border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(40, 30, 20, 0.08); }
@media (max-width: 760px) { .doc { margin-top: 0; padding: 40px 20px 48px; border-radius: 0; } }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { margin-top: 12px; font: 13px/1.4 var(--mono); color: var(--dim); }
.doc h2 { font-size: 21px; margin-top: 40px; letter-spacing: -0.01em; }
.doc p, .doc li { margin-top: 14px; color: var(--muted); }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.2em; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc .cta { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .ribbon ul { animation: none; }
  .ribbon ul[aria-hidden] { display: none; }
  .ribbon ul { flex-wrap: wrap; row-gap: 0; }
}
.snippet i { font-style: normal; }
