/* tivtron.com and tivtron.com/grow. A press's pages: paper, rules, a shelf of
   imprints, and red pencil for annotation only, never for an action. Core 9.1:
   light only, no hero animation (one product demonstration may play once on load), chrome (navigation, buttons, footer) in house
   neutrals; Grow's colour appears only in the product itself. Values from
   Core (tokens/tokens.json). Fonts are served from this site, so a visit sends
   nothing to anyone else. */
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/Newsreader-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/Newsreader-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/InstrumentSans-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/InstrumentSans-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/InstrumentSans-600.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --paper: #fcfcfa;
  --raised: #f4f3ee;
  --ink: #14161a;
  --ink-hover: #2c2f36;
  --graphite: #5c5e63;
  --hair: #d6d4cb;
  --hair-strong: #c2bfb3;
  --grow: #3e5c76;
  --grow-deep: #2f4a61;
  --red: #c8341f;
  --ok: #1f7a4d;
  --warn: #8a6524;
  --term: #14161a;
  --term-line: rgba(255, 255, 255, 0.08);
  --term-text: #d9dbdf;
  --term-mute: #8e939b;
  --term-key: #9cc7ee;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.page { max-width: 1280px; margin: 0 auto; padding: 0 40px; position: relative; }
@media (max-width: 640px) { .page { padding: 0 16px; } }

/* printer's slug and crop marks */
.slug { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 11.5px var(--mono); color: var(--graphite); padding: 14px 0; border-bottom: 1px solid var(--hair); }
.slug b { color: var(--red); font-weight: 500; }
.crop { position: fixed; width: 22px; height: 22px; pointer-events: none; z-index: 30; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); }
.crop::before { width: 22px; height: 1px; top: 11px; }
.crop::after { width: 1px; height: 22px; left: 11px; }
.crop.tl { top: 8px; left: 8px; } .crop.tr { top: 8px; right: 8px; } .crop.bl { bottom: 8px; left: 8px; } .crop.br { bottom: 8px; right: 8px; }
@media (max-width: 640px) { .crop { display: none; } }

/* nav */
nav.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px var(--sans); letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 22px; height: 17px; }
.brand i { font: italic 400 20px var(--serif); color: var(--ink); }
nav.top .links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
nav.top .links a { text-decoration: none; color: var(--graphite); white-space: nowrap; transition: color 0.2s; }
nav.top .links a:hover { color: var(--ink); }
@media (max-width: 760px) { nav.top .links a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper) !important; text-decoration: none; font: 500 15px var(--sans); padding: 12px 18px; border-radius: 8px; border: 1px solid var(--ink); transition: background 0.25s, transform 0.25s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn:active { transform: translateY(1px); }
.btn.line { background: transparent; color: var(--ink) !important; }
.btn.line:hover { background: var(--raised); border-color: var(--ink); }
.btn i { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }

/* hand-drawn red pencil */
.ring { position: relative; display: inline-block; }
.ring svg { position: absolute; left: -0.14em; top: -0.06em; width: calc(100% + 0.28em); height: calc(100% + 0.12em); overflow: visible; pointer-events: none; }
.ring svg.sm { left: -12px; top: -8px; width: calc(100% + 24px); height: calc(100% + 16px); }
.ring path { fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.5s var(--ease); }
.ring.on path, .on .ring path { stroke-dashoffset: 0; }
.mnote { font: 400 13px/1.5 var(--mono); color: var(--red); }
.mnote .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.3px solid var(--red); border-radius: 50%; font-size: 11px; margin-right: 6px; vertical-align: 1px; }

/* sections */
section { padding: 112px 0; border-top: 1px solid var(--hair); }
.sec { display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
.sec > * { min-width: 0; }
.lab { font: 400 12.5px/1.5 var(--mono); color: var(--graphite); }
.lab b { display: block; color: var(--red); font-weight: 500; margin-bottom: 6px; }
h2 { font: 400 clamp(34px, 4.2vw, 58px)/1.04 var(--serif); letter-spacing: -0.022em; max-width: 18ch; text-wrap: balance; }
.lede { color: var(--graphite); font-size: 18.5px; max-width: 54ch; margin-top: 18px; text-wrap: pretty; }
@media (max-width: 900px) { .sec { grid-template-columns: 1fr; gap: 18px; } section { padding: 80px 0; } }

/* colour bar and footer */
.colorbar { display: grid; grid-template-columns: repeat(11, 1fr); height: 14px; margin-top: 80px; }
.colorbar i:nth-child(1) { background: #14161a; } .colorbar i:nth-child(2) { background: #5c5e63; } .colorbar i:nth-child(3) { background: #3e5c76; } .colorbar i:nth-child(4) { background: #3b4a7a; } .colorbar i:nth-child(5) { background: #5b5a8c; } .colorbar i:nth-child(6) { background: #2c5f4c; } .colorbar i:nth-child(7) { background: #5c6b39; } .colorbar i:nth-child(8) { background: #2f6b62; } .colorbar i:nth-child(9) { background: #8a6d3c; } .colorbar i:nth-child(10) { background: #8c4a34; } .colorbar i:nth-child(11) { background: #7a5540; }

/* footer: the colour bar, the site's map, and the name set large at the foot of
   the page, the way a press signs the last page of a book */
.foot { margin-top: 96px; }
.foot .colorbar { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 48px 0 40px; }
.foot-brand p { color: var(--graphite); font-size: 15px; max-width: 30ch; margin-top: 14px; }
.foot h3 { font: 500 12.5px var(--mono); color: var(--graphite); margin-bottom: 12px; }
.foot nav, .foot-grid > div:last-child { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot nav a, .foot-grid > div:last-child a { font-size: 15px; text-decoration: none; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease); }
.foot nav a:hover, .foot-grid > div:last-child a:hover { background-size: 100% 1px; }
.foot .soon { font-size: 15px; color: var(--graphite); }
.foot-word { font: 400 clamp(88px, 20vw, 288px)/0.9 var(--serif); letter-spacing: -0.045em; color: var(--ink); margin: 0 0 -0.02em -0.04em; padding-top: 0.04em; white-space: nowrap; }
.foot-base { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding: 14px 0 40px; font: 400 12px var(--mono); color: var(--graphite); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-brand { grid-column: 1 / -1; } }
.end { padding-top: 120px; border-top: 1px solid var(--hair); }
.end .acts { margin-bottom: 0; }
.end h2 { font-size: clamp(44px, 6.4vw, 92px); max-width: 15ch; }
.end .acts { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }

/* reveal: section heads only, and only a short lift */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.on { opacity: 1; transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .ring path { stroke-dashoffset: 0 !important; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
