/* Chronically Iconic Author. Palette from the banner (Concept D): the blue
   is the ground, emerald and silver are accents, purple comes from the quilt.
   The banner's blue lightens downward from #0d1e3c to #102545 at its bottom
   edge. The banner is always 25vw tall, so the page holds that colour to 25vw
   and keeps lightening from there, with no seam. */
:root {
  --ground: #102545;
  --ground-low: #152d52;
  --ground-deep: #0a1633;
  --ink: #f3f5f9;
  --silver: #c3cad6;
  --emerald: #2fae7f;
  --purple: #8d7ad6;
  --wrap: 40rem;
}

* { box-sizing: border-box; }

html { background: var(--ground-low); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground) linear-gradient(var(--ground) 25vw, var(--ground-low)) no-repeat;
  color: var(--ink);
  font-family: "Jost", "Futura", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

main { flex: 1; }

.banner { margin: 0; }
.banner img { display: block; width: 100%; height: auto; }

/* The photo stops abruptly at the banner's bottom edge. Fade the bottom of it
   into the ground; the right-hand panel is already the ground colour, so it
   (and the text on it) stays fully opaque. */
.banner img {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(to left, #000 28%, transparent 40%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(to left, #000 28%, transparent 40%);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

h1 {
  margin: 2.5rem 0 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pronouns {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--silver);
  margin-left: 0.5rem;
}

.rule {
  width: 6rem;
  margin: 1rem 0 1.5rem;
  border: 0;
  border-top: 2px solid var(--emerald);
}

.lead { font-size: 1.25rem; }

a { color: var(--ink); text-decoration-color: var(--emerald); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--purple); }

.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--silver);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
.btn:hover { border-color: var(--emerald); }
.btn--primary { background: var(--emerald); border-color: var(--emerald); color: var(--ground-deep); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }

.aside { color: var(--silver); }

.footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--silver);
}
.footer p { margin: 0.25rem 0; }

/* The bonus shelf and the gate pages share this sheet. */
.shelf { list-style: none; padding: 0; }
.shelf li { margin: 0 0 1.25rem; }
.shelf .meta { display: block; color: var(--silver); font-size: 0.95rem; }

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .pronouns { display: block; margin: 0.25rem 0 0; }
}
