/* Self-hosted and preloaded so the text doesn't reflow when the font lands.
   If it isn't ready within ~100 ms, the system font stays for that visit. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: optional;
  src: url("instrument-sans-v4.woff2") format("woff2");
}

:root {
  --cream: #F4EFEC;
  --ink: #1F2322;
  --muted: #8C837C;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 48px);
  background: var(--cream);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, system-ui, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Cursor: a small ring that grows into the larger one over links. */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23F4EFEC' stroke='%231F2322' stroke-width='1.25'/%3E%3C/svg%3E") 12 12, auto;
}

#bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin-top: clamp(40px, 14vh, 140px);
}

h1 {
  font-size: 1em;
  font-weight: 500;
  margin: 0 0 1.4em;
}

p { margin: 0 0 0.85em; }
main p:last-child { margin-top: 1.4em; margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
  /* ...the larger ring over anything clickable. */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.5' fill='%23F4EFEC' stroke='%231F2322' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, pointer;
}
a:hover { color: var(--muted); }
main a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #B9AFA8;
  text-underline-offset: 3px;
}
main a:hover { color: inherit; text-decoration-color: var(--ink); }
a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

footer {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  gap: 18px;
}
footer a {
  display: inline-flex;
  padding: 4px;
  margin: -4px;
  color: #ABA29B;
}
footer a:hover { color: var(--ink); }
footer svg { width: 15px; height: 15px; fill: currentColor; display: block; }

::selection { background: #E4DAD2; }
