/* ===================================================================
 * Theme: dayshift
 * nightshift in daylight (01.10.2026, the operator: "eine helle,
 * einladendere Variante"). Same fonts, grid, shapes and building
 * blocks; only the palette is turned over: a cool light ground, white
 * raised surfaces with an outline, ONE dark band per page for the
 * sentence that matters, and one copper accent for what the reader can
 * act on. The token NAMES are kept from nightshift on purpose, so both
 * files stay comparable line by line: --night is the ground here,
 * --worklight the one dark band, --on-dark the text on the ground.
 *
 * Binding document: SPEZIFIKATION.md (German). Read it before
 * changing anything here; the colour roles and the contrast table in
 * it are not decoration, they are the acceptance criteria.
 *
 * SHARED VOCABULARY: this theme uses the same mk- classes as
 * workshop-dark and workbench-paper. The themes are interchangeable -
 * a page is written once, the look hangs on this file alone. Anyone
 * adding a building block adds it to the sister themes too, otherwise
 * interchangeability breaks and nobody notices until the switch.
 *
 * DEPTH WITHOUT BLUR: there is exactly one box-shadow in this file,
 * "inset 0 1px 0" with zero blur - a 1px lit edge on raised surfaces.
 * No drop shadows, no glow, no gradients. See section 6 of the spec.
 * ================================================================== */

/* ===== Fonts =======================================================
 * Local WOFF2 only, paths relative to this file. The files are
 * supplied by the client and are NOT part of this theme. Every family
 * falls back to a system grotesque, so the page stays usable without
 * them. One family, Schibsted Grotesk, licensed under SIL OFL 1.1;
 * sources are listed in nightshift/SPEZIFIKATION.md section 2. Until
 * 01.10.2026 headings were set in Bricolage Grotesque; the operator
 * found it too playful, so headings now use the bold of the text face. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens ===================================================== */

:root {
  /* -- Surfaces: three light tones, cool and blue-cast, staggered so
   *    that lighter always means nearer (white is the nearest). The
   *    ground is 1.26:1 against white on purpose: flat light pages
   *    with three brightness steps read as mush (Vault/wissen/
   *    webdesign.md section 1). Plus one dark band, once per page. */
  --night: #e1e6eb;        /* ground: body, header, hero, dark section, footer */
  --slate: #edf1f4;        /* ordinary section surface */
  --anthracite: #ffffff;   /* raised: cards, dim section, closing panel, light cone */
  --worklight: #141b23;    /* the one dark band: band and statement */

  /* -- Type on the light surfaces */
  --on-dark: #0b1016;      /* headings, body copy, table values */
  --on-dark-2: #3f4a55;    /* lead, explanations, footer, source note */
  --on-dark-3: #56626e;    /* ordinals, breadcrumb, unit column: >= 4.96:1 */

  /* -- Type on the dark band */
  --on-light: #eef2f6;
  --on-light-2: #a9b6c2;

  /* -- Lines. --line and --line-light carry no information and never
   *    outline a control on their own; --line-strong does, and clears
   *    3:1 on the ground (3.87:1). */
  --line: #c3ccd4;
  --line-strong: #66737f;
  --line-light: #2c3743;   /* the same hairline, on the dark band */
  --edge: rgba(255, 255, 255, 0.8);  /* the 1px lit edge, zero blur */

  /* -- Accent: EXACTLY ONE. Copper like nightshift, one step darker so
   *    that it holds 4.5:1 as text on the light ground (#9c4826:
   *    4.96:1 on the ground, white text on it 6.23:1). --accent-hi is
   *    the hover state of the same element, darker on a light page. */
  --accent: #9c4826;
  --accent-hi: #82391b;
  --on-accent: #ffffff;

  /* -- Paper: the two grey tones of the print rules. Tokens, not literals,
   *    because the style guard refuses hex values in colour properties. */
  --print-line: #999999;
  --print-text-2: #333333;

  /* -- Type */
  --font-display: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* -- Spacing scale, multiples of 4px */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 6.5rem;

  /* -- Measure and grid */
  --wrap: 1240px;
  --gutter: 1.25rem;
  --measure: 68ch;
  --measure-lead: 46ch;

  /* -- Shape: two steps, nothing between them. No pills anywhere. */
  --radius-s: 6px;
  --radius-l: 20px;

  /* -- Motion */
  --dur-colour: 160ms;
  --dur-move: 240ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ===== Base ======================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* the light cone bleeds past the wrap on purpose */
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { max-width: var(--measure); }

img { display: block; max-width: 100%; }

a { color: inherit; }

/* Keyboard focus must stay visible everywhere. On the one dark band
 * the copper accent would drop to 2.78:1, so it is overridden further down. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

/* Anchors must not end up under the sticky header. */
[id] { scroll-margin-top: 6rem; }

.mk-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Header =====================================================
 * Sticks to the top so the three navigation targets stay reachable on
 * a long page. Solid night, no translucency - frosted glass is the
 * look this theme was written against. */

.mk-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.mk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.mk-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  text-decoration: none;
  white-space: nowrap;
}
/* A wordmark is not an action, so the accent stays out of it. */
.mk-brand .accent { color: var(--on-dark-3); }
.mk-brand:hover .accent { color: var(--on-dark-2); }

.mk-nav { display: flex; gap: var(--s5); flex-wrap: wrap; }
.mk-nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.mk-nav a:hover { border-bottom-color: var(--accent); }
.mk-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--on-dark);
}

.mk-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--on-dark);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.mk-nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Buttons ====================================================
 * Measured height is about 49px with a 6px radius - roughly an eighth
 * of the height, far from the half-height that would make it a pill. */

.mk-btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  margin: 0 var(--s3) var(--s3) 0;
}
.mk-btn:hover {
  border-color: var(--on-dark);
  background: rgba(11, 16, 22, 0.05);
}

.mk-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.mk-btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--on-accent);
}

/* ===== Sections ===================================================
 * Three lit states, always in the same direction: night is deepest,
 * slate is the ordinary surface, anthracite is lifted towards the
 * lamp. */

.mk-section { background: var(--slate); padding: var(--s8) 0; }
.mk-section-dim { background: var(--anthracite); }
.mk-section-dark { background: var(--night); }

/* The workbench line: a hairline across the full measure, the heading
 * hanging straight underneath it. Same line as the table and the step
 * rail - one line weight for the whole page.
 *
 * The rule runs the full width while the heading still breaks after
 * about 22 characters. That is what the padding-right does: the box
 * stays wide, the text column does not. A max-width would shorten the
 * rule along with it, and the rule is the point. A negative result is
 * clamped away by max(). */
.mk-title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  padding-top: var(--s5);
  padding-right: max(0px, calc(100% - 22ch));
  border-top: 1px solid var(--line);
  margin-bottom: var(--s6);
}

.mk-lead {
  font-size: 1.15rem;
  color: var(--on-dark-2);
  max-width: var(--measure-lead);
  margin-bottom: var(--s6);
}

/* ===== Hero =======================================================
 * The light cone. A flat anthracite shape, hard-edged, clipped at an
 * angle, sitting behind the text column only. It starts above the top
 * of the hero and runs out of the bottom, so it reads as light
 * falling in rather than as a panel. Flat colour, no gradient. */

.mk-hero {
  position: relative;
  isolation: isolate;
  background: var(--night);
  padding: var(--s9) 0 var(--s8);
  overflow: hidden;
}
.mk-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  bottom: -10%;
  left: -6%;
  width: 62%;
  background: var(--anthracite);
  clip-path: polygon(22% 0%, 58% 0%, 100% 100%, 0% 100%);
}
/* A second hero on the same page gets the lamp from the other side. */
.mk-hero ~ .mk-hero::before { transform: scaleX(-1); }

.mk-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s7);
  align-items: center;
}

.mk-hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: var(--s5);
}
/* A second hero on a page carries an h2 with .mk-title - it must not
 * pick up the section rule, it is an opener, not a section heading. */
.mk-hero .mk-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  max-width: 16ch;
  border-top: 0;
  padding-top: 0;
  padding-right: 0;
  margin-bottom: var(--s5);
}
.mk-hero .lead {
  font-size: 1.15rem;
  color: var(--on-dark-2);
  max-width: var(--measure-lead);
  margin-bottom: var(--s6);
}
/* Hero without an image: the heading carries the whole width alone,
 * so it is held to a short measure instead. */
.mk-hero-plain { max-width: 20ch; }

/* The image is a raised surface like any other: rounded, outlined,
 * with the lit edge on top. Square, not 4/5: next to the text column
 * the 4/5 portrait stood taller than the text and the operator found
 * it too high (01.10.2026). 1/1 takes a fifth off the 480 x 640
 * portrait and still does not force it into a letterbox. */
.mk-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: inset 0 1px 0 var(--edge);
}

/* ===== Running text in two columns ================================ */

.mk-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s7);
}
.mk-cols p { color: var(--on-dark-2); max-width: 46ch; }
.mk-cols .strong {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--on-dark);
}

/* ===== Sheets =====================================================
 * Deliberately NOT a card grid. Three text columns divided by the
 * same hairline as everywhere else, each opened by a large ordinal.
 * Three rounded boxes with a shadow and a "more" link is the template
 * look this theme exists to avoid. The ordinals are orientation, not
 * an action, so they carry no accent. */

.mk-sheets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.mk-sheet {
  padding: var(--s5) var(--s6) var(--s2) var(--s6);
  border-left: 1px solid var(--line);
}
.mk-sheet:first-child { border-left: 0; padding-left: 0; }
.mk-sheet .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-3);
  margin-bottom: var(--s4);
}
.mk-sheet h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s3);
  color: var(--on-dark);
}
.mk-sheet p { font-size: 0.97rem; color: var(--on-dark-2); max-width: 34ch; }

/* ===== Cards ======================================================
 * The one place where two offers really stand against each other.
 * Raised anthracite, large radius, outline and lit edge - no shadow,
 * and .more is a plain text link without an arrow. */

.mk-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}
.mk-card {
  display: flex;
  flex-direction: column;
  background: var(--anthracite);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: inset 0 1px 0 var(--edge);
  padding: var(--s6);
}
.mk-card h3 { font-size: 1.35rem; margin-bottom: var(--s3); }
.mk-card p { color: var(--on-dark-2); margin-bottom: var(--s5); flex: 1; max-width: 42ch; }
.mk-card .more {
  align-self: flex-start;
  color: var(--on-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.mk-card .more:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ===== The pale surface ===========================================
 * One per page, and it carries the sentence that matters: the pool of
 * light over the bench. .mk-band and .mk-statement never appear on the
 * same page, so the device stays singular.
 *
 * In dayshift this surface is the dark band: the copper accent on it would
 * be 2.78:1, so everything interactive here flips to light-on-dark, focus
 * ring included (the rules use --on-light, which is light in this theme). */

.mk-band,
.mk-statement {
  background: var(--worklight);
  color: var(--on-light);
  padding: var(--s8) 0;
}
/* The workbench line carries over onto the pale surface, so the pool
 * of light belongs to the same system and is not just a bright
 * rectangle. It is drawn as a pseudo-element rather than a border, so
 * that it ends where the text column ends and not out in the gutter. */
.mk-band > .mk-wrap,
.mk-statement > .mk-wrap {
  position: relative;
  padding-top: var(--s5);
}
.mk-band > .mk-wrap::before,
.mk-statement > .mk-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line-light);
}
.mk-band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s7);
  align-items: start;
}
.mk-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 18ch;
  color: var(--on-light);
}
.mk-band p { color: var(--on-light-2); max-width: 48ch; }
.mk-band p + p { margin-top: var(--s4); }

.mk-statement p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 24ch;
  color: var(--on-light);
}

.mk-band a:not(.mk-btn),
.mk-statement a:not(.mk-btn) {
  color: var(--on-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.mk-band .mk-btn,
.mk-statement .mk-btn {
  border-color: var(--on-light-2);
  color: var(--on-light);
}
.mk-band .mk-btn:hover,
.mk-statement .mk-btn:hover {
  background: var(--on-light);
  border-color: var(--on-light);
  color: var(--worklight);
}
.mk-band .mk-btn-primary,
.mk-statement .mk-btn-primary {
  background: var(--on-light);
  border-color: var(--on-light);
  color: var(--worklight);
}
.mk-band .mk-btn-primary:hover,
.mk-statement .mk-btn-primary:hover {
  background: var(--on-light-2);
  border-color: var(--on-light-2);
  color: var(--worklight);
}
.mk-band :focus-visible,
.mk-statement :focus-visible { outline-color: var(--on-light); }

/* ===== Figures ====================================================
 * A real table. 2px top rule, hairlines between rows, values right
 * aligned in tabular figures, unit column third-rank, source below. */

.mk-figures {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border-top: 2px solid var(--line-strong);
  font-size: 0.98rem;
}
/* running text above the table needs air, a heading already has it */
.mk-cols + .mk-figures { margin-top: var(--s7); }
.mk-figures th,
.mk-figures td {
  border-bottom: 1px solid var(--line);
  padding: var(--s4) var(--s3) var(--s4) 0;
  text-align: left;
  vertical-align: baseline;
}
.mk-figures th { font-weight: 700; color: var(--on-dark); padding-right: var(--s5); }
.mk-figures td.value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
  padding-right: var(--s5);
}
.mk-figures td.unit { color: var(--on-dark-3); font-size: 0.92rem; }
.mk-figures caption {
  caption-side: bottom;
  text-align: left;
  color: var(--on-dark-2);
  font-size: 0.88rem;
  line-height: 1.5;
  padding-top: var(--s4);
  max-width: 72ch;
}

/* ===== Steps ======================================================
 * A vertical bench rail: one hairline down the left, flush with the
 * left edge of the measure, a small square mark per step, and the
 * number hanging between rail and text. Squares, not dots - this is a
 * workshop, not a timeline widget. No accent: a step number is
 * orientation, not an action. */

.mk-steps {
  list-style: none;
  counter-reset: mk-step;
  margin: 0;
  padding-left: 4.25rem;
  border-left: 1px solid var(--line);
}
.mk-steps li {
  counter-increment: mk-step;
  position: relative;
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
.mk-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.mk-steps li::before {
  content: counter(mk-step);
  position: absolute;
  left: -3.1rem;
  top: var(--s5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-3);
}
/* the square mark sitting on the rail */
.mk-steps li::after {
  content: "";
  position: absolute;
  left: -4.25rem;
  top: calc(var(--s5) + 0.55rem);
  width: 7px;
  height: 7px;
  margin-left: -3px;
  background: var(--on-dark-3);
}
.mk-steps strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--s2);
  color: var(--on-dark);
}
.mk-steps span { color: var(--on-dark-2); font-size: 0.97rem; display: block; max-width: 56ch; }

/* ===== Closing ====================================================
 * Night outside, one raised anthracite panel inside. The single
 * action of the page sits here, so the plain .mk-btn is promoted to
 * the accent - it is the only thing to do in this block. */

.mk-closing { background: var(--night); padding: var(--s8) 0; }
.mk-closing-inner {
  background: var(--anthracite);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: inset 0 1px 0 var(--edge);
  padding: var(--s7);
}
.mk-closing h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 18ch;
  margin-bottom: var(--s4);
}
.mk-closing p { color: var(--on-dark-2); max-width: 48ch; margin-bottom: var(--s6); }
.mk-closing .mk-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  margin-bottom: 0;
}
.mk-closing .mk-btn:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--on-accent);
}

/* ===== Footer - two lines, nothing more =========================== */

.mk-footer {
  background: var(--night);
  border-top: 1px solid var(--line);
  color: var(--on-dark-2);
  padding: var(--s6) 0;
  font-size: 0.9rem;
}
.mk-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s4);
}
.mk-footer a {
  color: var(--on-dark-2);
  text-decoration: none;
  margin-left: var(--s5);
}
.mk-footer a:first-child { margin-left: 0; }
.mk-footer a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ===== Breadcrumb ================================================= */

.mk-breadcrumb {
  font-size: 0.88rem;
  color: var(--on-dark-3);
  margin-bottom: var(--s5);
}
.mk-breadcrumb a { color: var(--on-dark-3); text-decoration: none; }
.mk-breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mk-breadcrumb .sep { margin: 0 var(--s2); color: var(--line-strong); }

/* ===== Breakpoints ================================================
 * Mobile first would mean rewriting the sister themes; this file
 * follows their order and steps down instead. Checked in Chromium at
 * 1280, 390 and 360 px. */

@media (min-width: 720px) {
  :root { --gutter: 2rem; }
}

@media (min-width: 1100px) {
  :root { --gutter: 2.5rem; }
  .mk-section { padding: var(--s9) 0; }
  .mk-band, .mk-statement, .mk-closing { padding: var(--s9) 0; }
}

@media (max-width: 1023px) {
  .mk-sheets { grid-template-columns: 1fr; }
  .mk-sheet {
    border-left: 0;
    padding: var(--s5) 0;
    border-bottom: 1px solid var(--line);
  }
  .mk-sheet:last-child { border-bottom: 0; }
  .mk-sheet .num { font-size: 2.2rem; margin-bottom: var(--s3); }
  .mk-sheet p { max-width: 52ch; }
  .mk-cards { grid-template-columns: 1fr; }
  .mk-hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .mk-hero { padding: var(--s8) 0; }
  .mk-hero-img { aspect-ratio: 3 / 2; }
  .mk-hero::before { width: 86%; left: -16%; }
}

@media (max-width: 900px) {
  .mk-header-inner { position: relative; flex-wrap: wrap; }
  .mk-nav-toggle { display: block; }
  .mk-nav {
    display: none;
    position: absolute;
    top: calc(100% + var(--s3));
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--anthracite);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    box-shadow: inset 0 1px 0 var(--edge);
    padding: var(--s2) var(--s5) var(--s4);
    z-index: 80;
  }
  .mk-nav.active { display: flex; }
  .mk-nav a {
    padding: var(--s3) 0;
    border-bottom: 2px solid transparent;
    width: fit-content;
  }
}

@media (max-width: 719px) {
  body { font-size: 16px; }
  .mk-section { padding: var(--s8) 0; }
  .mk-band, .mk-statement, .mk-closing { padding: var(--s8) 0; }
  .mk-cols { grid-template-columns: 1fr; gap: var(--s5); }
  .mk-cols p, .mk-card p, .mk-steps span { max-width: none; }
  .mk-band-grid { grid-template-columns: 1fr; }
  .mk-title { margin-bottom: var(--s5); padding-right: 0; }
  .mk-hero h1 { max-width: none; }
  .mk-closing-inner { padding: var(--s6) var(--s5); }
  .mk-card { padding: var(--s5); }

  /* The rail keeps its square marks, but the step numbers move inside;
   * hanging outside they would sit in the gutter on a 360px screen. */
  .mk-steps { padding-left: var(--s5); }
  .mk-steps li::before {
    position: static;
    display: block;
    font-size: 1.1rem;
    margin-bottom: var(--s1);
  }
  .mk-steps li::after { left: calc(-1 * var(--s5)); top: calc(var(--s5) + 0.4rem); }

  /* Figures: the unit column would squeeze the label to two words. */
  .mk-figures { font-size: 0.94rem; }
  .mk-figures th { padding-right: var(--s3); }
  .mk-figures td.value { font-size: 1.05rem; padding-right: var(--s3); }
  .mk-figures td.unit { font-size: 0.85rem; }

  .mk-footer-inner { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .mk-footer a { margin-left: 0; margin-right: var(--s5); }
}

@media (max-width: 420px) {
  .mk-btn { display: block; width: 100%; text-align: center; margin-right: 0; }
  .mk-figures th, .mk-figures td { padding-top: var(--s3); padding-bottom: var(--s3); }
}

/* ===== Motion =====================================================
 * Everything that moves lives in here. Two durations, 160ms and
 * 240ms, both well under the 400ms ceiling. No keyframes, no
 * animation, no filter - so there is nothing to glow or pulse. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .mk-btn,
  .mk-nav a,
  .mk-nav-toggle,
  .mk-card .more,
  .mk-footer a,
  .mk-breadcrumb a,
  .mk-brand .accent {
    transition:
      background-color var(--dur-colour) ease-out,
      border-color var(--dur-colour) ease-out,
      color var(--dur-colour) ease-out,
      text-decoration-color var(--dur-colour) ease-out;
  }

  .mk-btn { transition-property: background-color, border-color, color, transform; }
  .mk-btn:hover {
    transform: translateY(-1px);
    transition-duration: var(--dur-move);
    transition-timing-function: var(--ease);
  }
  .mk-btn:active { transform: translateY(0); }
}

/* ===== Print ======================================================
 * The night look is a screen idea. On paper it is black on white. */

@media print {
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .mk-header, .mk-nav-toggle, .mk-footer { display: none; }
  .mk-hero, .mk-section, .mk-section-dim, .mk-section-dark,
  .mk-band, .mk-statement, .mk-closing, .mk-closing-inner, .mk-card {
    background: #ffffff;
    color: #000000;
    border-color: var(--print-line);
  }
  .mk-hero::before { display: none; }
  .mk-hero h1, .mk-title, .mk-card h3, .mk-sheet h3, .mk-band h2, .mk-closing h2 { color: #000000; }
  .mk-hero .lead, .mk-lead, .mk-cols p, .mk-card p, .mk-sheet p,
  .mk-steps span, .mk-band p, .mk-closing p, .mk-figures caption { color: var(--print-text-2); }
  .mk-btn { border-color: #000000; color: #000000; background: transparent; }
}
