/* An external stylesheet, never an inline <style> block or style=""
   attribute: inline styles do not render under the site's
   Content-Security-Policy.

   The art and the brand files ship as light and dark files chosen by
   <picture>, so nothing here recolours them. */

@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --accent: #6247aa;
  --accent-2: #8a68d4;
  --accent-text: #ffffff;
  --ink: #1f1a38;
  --muted: #6b6580;
  --paper: #f7f4ec;
  --surface: #ffffff;
  --page: #fdfaf3;
  --border: #dcd6c8;
  --wash: rgba(138, 104, 212, 0.16);
  --shadow: 0 24px 60px -30px rgba(31, 26, 56, 0.35);
  --display: 'Nunito Variable', system-ui, -apple-system, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a682e8;
    --accent-2: #7a5cc4;
    --accent-text: #17142a;
    --ink: #efeaf7;
    --muted: #a89fc4;
    --paper: #17142a;
    --surface: #221d3d;
    --page: #241f40;
    --border: #3a3360;
    --wash: rgba(166, 130, 232, 0.22);
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  z-index: 2;
  transition: transform 0.3s var(--ease);
}
.skip:focus-visible { transform: translateY(5rem); outline-offset: 0; }

.quiet {
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.3em;
  color: var(--accent);
}
.quiet:hover { text-decoration: underline; }

main { display: block; }

/* A page of plain text: one column. */
.plain {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.plain p { margin-top: 1rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The placeholder: the illustration, the name
   and one line, centred in the viewport with no chrome around them. */
.placeholder {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
}
.placeholder-art { display: block; width: min(100%, 880px); }
.placeholder-art img { display: block; width: 100%; height: auto; }
.wordmark {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark span { color: var(--accent); }
.placeholder p {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
