/* Plain and clean: white page, near-black sans text, blue links, narrow column.
   One screen: no header, nav or footer; contact sits right under the text. */

:root {
  /* Colour: white page, near-black text, one blue for links */
  --paper: #ffffff;
  --ink: #111111;
  --ink-muted: #6b6b6b;
  --rule: #e8e8e8;
  --accent: #1756a9;
  --accent-hover: #0f3d7a;
  --selection: #dbe8fb;

  /* Type */
  --font-text: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 2.25rem;

  /* Spacing */
  --space-1: 4px;
  --space-4: 16px;
  --space-5: 24px;
  --space-8: 64px;

  --measure: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* One reading column, vertically centred when there is room */
main {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--space-5));
  margin: 0 auto;
  padding: clamp(var(--space-5), 6vh, var(--space-8)) var(--space-5);
}

h1 {
  margin: 0 0 var(--space-5);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-4);
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
}

.contact {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
}

.contact span {
  margin: 0 var(--space-1);
}

/* Narrow screens */
@media (max-width: 34rem) {
  :root {
    --text-base: 1rem;
    --text-xl: 1.875rem;
    --text-lg: 1.125rem;
  }

  main {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  p {
    margin-bottom: 12px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
}
