/* A Call for New Aesthetics — all styles. No JS, no framework. */

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 10%);
  --muted: hsl(0 0% 96%);
  --muted-foreground: hsl(0 0% 45%);
  --heading: hsl(332.6 84.5% 43.1%);
  --rule: hsl(0 0% 10% / 0.2);
  --sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

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

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  font-family: var(--sans);
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: inherit;
}

main {
  min-height: 100vh;
}

article {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem;
}

/* Headings */
h1 {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: var(--heading);
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--heading);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* Lead paragraph above the figure */
.lead {
  margin-bottom: 2rem;
}

/* Figure */
figure {
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

figure img {
  display: block;
  width: 75%;
  height: auto;
  max-width: 100%;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-style: italic;
  text-align: center;
  color: var(--muted-foreground);
}

/* Vertical rhythm: every block in the body is 1.5rem apart. */
.flow > * + * {
  margin-top: 1.5rem;
}

/* Pull quotes */
blockquote {
  margin: 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 2px solid var(--rule);
}

blockquote p {
  margin-bottom: 0.5rem;
  font-style: italic;
}

blockquote footer {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

/* Lists */
ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

ul > li + li {
  margin-top: 0.5rem;
}

/* Grants list */
.grants {
  padding-left: 1.25rem;
}

.grants > li + li {
  margin-top: 0.75rem;
}

.grants .about {
  padding-left: 1rem;
  font-style: italic;
}

/* 404 */
.notfound {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
  text-align: center;
}

.notfound h1 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
}

.notfound p {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}
