/* The new Mrrp Software site ("ink"): the shared base for every page in the new look (site/ink.mjs). Black ground,
   Instrument Sans, white type, grey for what is secondary (5:1 and up on black), pink only for what you picked and the
   way on. Full-width 12-column grids with a gutter, never a centred column. Each page adds its own stylesheet.
   No inline styles anywhere: the CSP forbids them. */

@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans-var.woff2") format("woff2"); }
:root { --bg: #000; --ink: #f2f0f1; --ink-2: #8a878b; --ink-3: #7d7a7e; --pink: #e45f9b; --pink-hi: #f07aae; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .28);
  --gut: clamp(16px, 2.8vw, 64px); --gap: clamp(1rem, 2vw, 2.5rem); --ease: cubic-bezier(.16, 1, .3, 1); color-scheme: dark; }
* { box-sizing: border-box; }
html { font-size: clamp(16px, calc(.5vw + 9px), 22px); scrollbar-color: #2a2a2a #000; }
html, body { margin: 0; background: #000; color: var(--ink); font: 400 1rem/1.5 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--pink); color: #000; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the header: the wordmark ---- */
.ink-top { position: absolute; top: 0; left: var(--gut); z-index: 3; padding: 1.4rem 0; }
.ink-top.is-centred { left: 50%; transform: translateX(-50%); }
.ink-mark svg { display: block; width: auto; height: 2.1rem; }
.ink-mark .wm-text, .ink-mark text { fill: var(--ink); }

/* ---- a plain page: the title on the left, the text on the right ---- */
.ink-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(7rem, 18vh, 11rem) var(--gut) clamp(4rem, 10vh, 7rem); }
.ink-page > header { grid-column: 1 / 5; }
.ink-page > header h1 { position: sticky; top: 2rem; margin: 0; font-size: clamp(2.1rem, 3.6vw, 4.3rem); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.ink-page > header p { margin: 1rem 0 0; color: var(--ink-2); font-size: .9rem; }
.ink-text { grid-column: 6 / 12; min-width: 0; max-width: 40rem; }
.ink-text h2 { margin: 2.6rem 0 .7rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.ink-text h2:first-child { margin-top: 0; }
.ink-text h3 { margin: 1.6rem 0 .5rem; font-size: 1rem; font-weight: 500; }
.ink-text p, .ink-text li { color: var(--ink-2); line-height: 1.6; }
.ink-text p { margin: 0 0 .9rem; }
.ink-text strong, .ink-text b { color: var(--ink); font-weight: 500; }
.ink-text ul, .ink-text ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.ink-text li { margin: .25rem 0; }
.ink-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .25em; }
.ink-text a:hover { text-decoration-color: var(--pink); }
.ink-text table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: .92rem; }
.ink-text th, .ink-text td { padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.ink-text th { color: var(--ink); font-weight: 500; }

/* the one button: pink, for the way on */
.ink-btn { display: inline-block; padding: 1rem 1.3rem; background: var(--pink); color: #14070d; border: 0; border-radius: 4px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.ink-btn:hover { background: var(--pink-hi); }
.ink-btn:active { transform: translateY(1px); }
.ink-btn:disabled { opacity: .6; cursor: progress; }

/* ---- the footer: the rest of the site, and who we are ---- */
.ink-end { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2rem 3rem; padding: clamp(3rem, 8vh, 6rem) var(--gut) clamp(5rem, 10vh, 7rem); border-top: 1px solid var(--line); }
.ink-end nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.ink-end nav a { color: var(--ink-2); font-size: .95rem; text-decoration: none; }
.ink-end nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.ink-end p { margin: 0; color: var(--ink-3); font-size: .9rem; }

@media (max-width: 900px) {
  .ink-page { display: block; }
  .ink-page > header { margin-bottom: 2.5rem; }
  .ink-page > header h1 { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
