/* ── Modulark footer ─────────────────────────────────────────────────────
   The parent company's footer, the same one modularktech.com ends with:
   cream paper, the Newsreader wordmark, Geist for the small type. Scoped
   under .mk so none of it reaches the Modulus page above it.

   Fonts are served from this site like the rest (see index.html for why),
   cut down to the one optical size and the characters this block draws:
   four files, 97 KB. Newsreader and IBM Plex are both SIL Open Font Licence.
   ──────────────────────────────────────────────────────────────────────── */
@font-face{font-family:"MK Newsreader";font-style:normal;font-weight:300 450;font-display:swap;src:url(fonts/mk-newsreader.woff2) format("woff2")}
@font-face{font-family:"MK Newsreader";font-style:italic;font-weight:300 450;font-display:swap;src:url(fonts/mk-newsreader-italic.woff2) format("woff2")}
@font-face{font-family:"MK Plex Sans";font-style:normal;font-weight:400 500;font-display:swap;src:url(fonts/mk-plexsans.woff2) format("woff2")}
@font-face{font-family:"MK Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/geist.woff2) format("woff2")}
@font-face{font-family:"MK Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/geist-mono.woff2) format("woff2")}
@font-face{font-family:"MK Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/mk-plexmono-500.woff2) format("woff2")}

.mk{
  --mk-paper:#F1ECDD; --mk-ink:#121715; --mk-ink-2:#39423e; --mk-ink-3:#56615b;
  --mk-line:rgba(18,23,21,.15); --mk-accent:#a3231b;
  --mk-serif:"MK Newsreader",Georgia,"Times New Roman",serif;
  --mk-sans:"MK Geist","MK Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mk-mono:"MK Geist Mono","MK Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --mk-ease:cubic-bezier(.16,1,.3,1);
  background:var(--mk-paper);color:var(--mk-ink);
  font:400 15px/1.6 var(--mk-sans);-webkit-font-smoothing:antialiased;
  border-top:0;overflow:hidden;
  /* the family look: a rounded block set into the page, like modularktech.com */
  margin:clamp(8px,1.4vw,20px) clamp(8px,1.4vw,20px) 0;border-radius:clamp(22px,3vw,40px) clamp(22px,3vw,40px) 0 0;
}
.mk *,.mk *::before,.mk *::after{box-sizing:border-box;margin:0;padding:0}
.mk ul{list-style:none}
.mk a{color:inherit;text-decoration:none}
.mk h2,.mk h3{font:inherit}
/* The Modulus page lays every <nav> out as a row; these are plain columns. */
.mk nav{display:block;position:static;background:none;border:0;padding:0;margin:0;height:auto;width:auto}
.mk :focus-visible{outline:2px solid var(--mk-accent);outline-offset:3px}
.mk-in{width:100%;max-width:1320px;margin-inline:auto;padding-inline:clamp(16px,4vw,64px)}
.mk-top{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:40px;padding-block:clamp(48px,6vw,80px) 36px}
.mk-logo{display:inline-flex;align-items:center;gap:10px;padding:8px;margin:-8px}
.mk-logo svg{width:22px;height:22px;flex:none;transition:transform .6s var(--mk-ease)}
.mk-logo:hover svg{transform:rotate(-90deg)}
.mk-logo b{font-size:14px;font-weight:500;letter-spacing:.2em}
.mk .mk-lede{margin-top:20px;max-width:36ch;font:350 clamp(20px,1.8vw,24px)/1.35 var(--mk-serif);letter-spacing:-.01em;color:var(--mk-ink);text-wrap:pretty}
.mk .mk-lede em{font-style:italic}
.mk h3{font:500 11px/1.4 var(--mk-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--mk-ink-3);margin-bottom:16px}
.mk-top ul{display:grid;gap:10px}
.mk-top li a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:rgba(18,23,21,.3);transition:text-decoration-color .25s}
.mk-top li a:hover{text-decoration-color:currentColor}
.mk-here{display:inline-flex;align-items:center;gap:8px}
.mk-here small{white-space:nowrap;font:500 10px var(--mk-mono);letter-spacing:.1em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--mk-ink);color:var(--mk-paper)}
.mk-word{display:flex;justify-content:space-between;font:300 clamp(64px,19.5vw,330px)/.78 var(--mk-serif);letter-spacing:-.05em;padding-top:clamp(20px,3vw,40px);padding-bottom:.05em;user-select:none;color:var(--mk-ink)}
.mk-word span{display:inline-block}
.mk-word em{font-style:italic}
.mk-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-block:20px calc(20px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--mk-line);font-size:13px;color:var(--mk-ink-3)}

/* The wordmark rises letter by letter as it scrolls into view, where the
   browser can tie an animation to scroll position. Elsewhere it simply sits
   there, which is also its resting state. */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    .mk-word span{animation:mk-rise linear both;animation-timeline:view();animation-range:entry 0% entry 90%}
    .mk-word span:nth-child(2){animation-range:entry 4% entry 92%}
    .mk-word span:nth-child(3){animation-range:entry 8% entry 94%}
    .mk-word span:nth-child(4){animation-range:entry 12% entry 96%}
    .mk-word span:nth-child(5){animation-range:entry 16% entry 98%}
    .mk-word span:nth-child(n+6){animation-range:entry 20% entry 100%}
  }
}
@keyframes mk-rise{from{transform:translateY(60%);opacity:.15}}

/* Where the page runs a pointer, the wordmark lights up in oxblood around
   it. Without the script the variables stay off-screen and it is plain ink. */
@media (hover:hover) and (pointer:fine){
  .mk-word span{background:radial-gradient(circle 300px at var(--wx,-999px) var(--wy,-999px),var(--mk-accent) 0,var(--mk-ink) 70%) fixed;-webkit-background-clip:text;background-clip:text;color:transparent}
}

@media (max-width:760px){.mk-top{grid-template-columns:1fr 1fr}.mk-top>div:first-child{grid-column:1/-1}}
