/* rumbosoftware.com. One stylesheet for every page: the security policy allows
   styles only from this site, so nothing is inline. Light only, by design.
   Layout (D, one screen): logo and email on top, the line, then product,
   services and company side by side; everything fits in one desktop view.
   One accent, chart magenta, for links. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfbf9;
  --white: #ffffff;
  --ink: #101820;
  --soft: #58616b;
  --rule: #e2e4e0;
  --needle: #b4166e;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); padding-inline: 16px; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--needle); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { color: var(--needle); }
a:focus-visible { outline: 2px solid var(--needle); outline-offset: 3px; }
p { margin: 0 0 0.85rem; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
.soft { color: var(--soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 0.4rem 0.75rem; z-index: 1; }
main:focus { outline: none; }   /* the skip link's target; a ring round the whole page would only distract */

/* Frame shared by every page: logo top left of the screen, footer at the
   bottom of a short page, and the content at the optical centre between
   them. The free space splits 45 above to 55 below, because content set at
   the exact middle looks low. One rule at every screen size; a page longer
   than the screen simply scrolls. */
.page { max-width: 62rem; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 9fr auto 11fr auto; padding-block: 1.75rem 1.5rem; }
.page > .site-header { grid-row: 1; }
.page > main { grid-row: 3; }
.page > .site-footer { grid-row: 5; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; }
.home { display: block; line-height: 0; }
.home img { display: block; width: 10.5rem; height: auto; }
.site-header a.mail { font-family: var(--mono); font-size: 0.8rem; }
.site-footer { display: flex; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; color: var(--soft); }
.site-footer a { color: var(--soft); }

/* Home */
.one { padding-block: 3rem; }
h1 { margin: 0 0 3rem; font-weight: 700; font-stretch: 112.5%; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 14ch; text-wrap: balance; }
.cols { display: grid; gap: 2rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.cols section { min-width: 0; }
.cols h2 { margin: 0 0 0.6rem; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.cols p, .cols address { font-size: 0.97rem; }
/* The Flash icon is a link to flashmemorize.com. Under the pointer it turns
   six degrees about its exact centre while its shadow softens and spreads in
   layers, so it seems to lift off the page as it turns, settling with a
   touch of spring, and turns back a little faster. Pressing sinks it very
   slightly into the page, keeping its turn; the press shows while the
   button is down, before the link opens on release. (A press that changed
   the turn got cut off by the page change and read as a glitch.)
   No upward move: combined with the turn, a lift keeps one corner nearly
   still and the eye reads that corner as the pivot.
   The motion is a `transform`, so the graphics card runs it smoothly at the
   screen's frame rate. It never scales: stretching the cached image is what
   blurred it. The icon is inline vector art, redrawn sharp when it stops. */
.app { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 0.75rem; }
.app b { font-weight: 700; font-stretch: 112.5%; font-size: 1.1rem; }
.app-icon {
  display: block; flex: none; line-height: 0; overflow: hidden; border-radius: 22.5%;
  box-shadow: 0 1px 1px rgb(16 24 32 / 0.06), 0 2px 4px -2px rgb(16 24 32 / 0.06), 0 6px 10px -8px rgb(16 24 32 / 0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-icon:hover, .app-icon:focus-visible {
  transform: rotate(-6deg);
  box-shadow: 0 2px 3px rgb(16 24 32 / 0.05), 0 6px 10px -4px rgb(16 24 32 / 0.12), 0 14px 22px -10px rgb(16 24 32 / 0.2);
  transition-duration: 0.32s; transition-timing-function: cubic-bezier(0.3, 1.15, 0.6, 1);
}
.app-icon:active {
  transform: rotate(-6deg) scale(0.97);
  box-shadow: 0 1px 2px rgb(16 24 32 / 0.06), 0 4px 8px -4px rgb(16 24 32 / 0.14), 0 10px 16px -10px rgb(16 24 32 / 0.14);
  transition-duration: 0.08s; transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.app-icon:focus-visible { outline: 2px solid var(--needle); outline-offset: 3px; }
.app-icon svg { display: block; width: 3rem; height: 3rem; }
@media (prefers-reduced-motion: reduce) {
  .app-icon, .app-icon:hover, .app-icon:focus-visible, .app-icon:active { transform: none; transition: box-shadow 0.2s ease-out; }
}
@media (min-width: 46rem) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
@media (max-width: 45.99rem) {
  .one, .lost { padding-block: 2.5rem; }
  /* Stacked on a phone, each section gets its own rule so the three don't read as one block. */
  .cols { gap: 1.5rem; border-top: 0; padding-top: 0; }
  .cols section + section { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
}

/* Reading pages: privacy, not found */
.doc { max-width: 40rem; padding-block: clamp(2.5rem, 7vw, 4.5rem) 3.5rem; }
.eyebrow { margin: 0 0 1rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); line-height: 1.08; max-width: none; margin-bottom: 0.5rem; }
.doc .date { margin: 0 0 2.5rem; font-family: var(--mono); font-size: 0.85rem; color: var(--soft); }
.doc h2 { margin: 2.25rem 0 0.6rem; font-weight: 700; font-stretch: 112.5%; font-size: 1.2rem; line-height: 1.3; }
.short { padding: 1.1rem 1.25rem; border-left: 3px solid var(--needle); background: var(--white); margin-bottom: 0.5rem; }
.lost { padding-block: 3rem; }
.lost h1 { margin-bottom: 1.25rem; }
.lost p { color: var(--soft); max-width: 40ch; }
