/* leighelliot.com — one stylesheet, no scripts.
   Type: Old Standard TT, roman and italic (SIL OFL 1.1), self-hosted. */

@font-face {
  font-family: "Old Standard";
  src: url("old-standard-roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Old Standard";
  src: url("old-standard-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Light: a field of dusty lake blue, ink on top. */
  --field: #8eadc3;
  --ink: #0d1c27;
  --ink-soft: #1c3040;

  --measure: 31rem;
  --edge: clamp(1.5rem, 11vw, 11rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: the same lake after sundown. */
    --field: #0e2231;
    --ink: #c9d9e5;
    --ink-soft: #a9bfcf;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(3rem, 14vh, 9rem) var(--edge) clamp(1.75rem, 6vh, 3.5rem);
  background: var(--field);
  color: var(--ink);
  font-family: "Old Standard", "Century Schoolbook", "Century", "Bookman Old Style",
    Georgia, "Times New Roman", serif;
  font-size: 1.1875rem; /* 19px: the face runs small and fine */
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

h1 {
  margin: 0 0 clamp(2.5rem, 9vh, 5.5rem);
  /* optical alignment: pull the L's serif back to the text edge */
  margin-left: -0.04em;
  font-size: clamp(2.5rem, 11.5vw, 6.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.012em;
}

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

p + p {
  margin-top: 1.6em;
}

.novel-title + p {
  margin-top: 0.3em;
}

.statement {
  font-size: 1.3125rem; /* 21px */
  line-height: 1.5;
}

cite {
  font-style: italic;
}

footer {
  margin-top: clamp(3rem, 10vh, 6rem);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 0.11em;
}

a:focus-visible {
  outline: 0.125rem solid var(--ink);
  outline-offset: 0.25rem;
  text-decoration: none;
}
