/* Ellington Ventures — a document, not a landing page.
   Structure borrowed from instinct.com: a name, a couple of headed sections, no chrome.
   System font, iOS system colours, prefers-color-scheme with no toggle, one glass capsule, and a
   400 ms cubic-bezier(0.22, 1, 0.36, 1) reveal.

   Static HTML and CSS. No JavaScript, no fonts, no embeds, no analytics, no cookies. */

:root {
  color-scheme: light dark;

  /* iOS system colours, light. systemBlue and secondaryLabel are pulled a shade darker than
     Apple's so body text clears WCAG AA on a white page; --accent keeps the true value and is
     only ever a focus ring. */
  --bg: #ffffff;
  --text: #000000;
  --secondary: rgba(60, 60, 67, 0.78);
  --accent: #007aff;
  --link: #0066cc;
  --glass-fill: rgba(0, 0, 0, 0.04);
  --glass-line: rgba(0, 0, 0, 0.10);
  --hairline: rgba(0, 0, 0, 0.08);

  --gutter: 20px;
  --measure: 660px;
  --smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Apple's own dark values already clear AA. */
    --bg: #000000;
    --text: #ffffff;
    --secondary: rgba(235, 235, 245, 0.6);
    --accent: #0a84ff;
    --link: #0a84ff;
    --glass-fill: rgba(255, 255, 255, 0.08);
    --glass-line: rgba(255, 255, 255, 0.14);
    --hairline: rgba(255, 255, 255, 0.12);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
  animation: reveal 0.4s var(--smooth-out) both;
}

@keyframes reveal {
  from { opacity: 0; filter: blur(4px); transform: translateY(14px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

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

/* — the masthead — */

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.standfirst {
  color: var(--secondary);
  margin: 0 0 4px;
  max-width: 34em;
}

/* — sections, in the plainest possible form — */

h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 40px 0 10px;
}

p { margin: 0 0 14px; max-width: 38em; }
p:last-child { margin-bottom: 0; }

/* — privacy and terms: the same document, one level plainer — */

.back {
  display: inline-block;
  margin: 0 0 28px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 15px;
}
.back:hover { color: var(--text); }

.dateline {
  color: var(--secondary);
  font-size: 15px;
  margin: 0 0 18px;
}

.page h2 { margin: 32px 0 8px; }
.page ul { margin: 0 0 14px; padding-left: 20px; max-width: 38em; }
.page li { margin: 0 0 8px; }

/* a blank should be impossible to miss */
.todo {
  color: var(--link);
  font-weight: 600;
  letter-spacing: 0.4px;
}

a { color: var(--link); }
a:hover { text-decoration: none; }

footer {
  margin: 56px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--hairline);
  color: var(--secondary);
  font-size: 15px;
}

footer p { margin: 0 0 6px; max-width: none; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 420px) {
  main { padding-top: 44px; }
  h1 { font-size: 25px; }
}
