/* Shared styles for the home page and the project pages. */
:root {
  color-scheme: light dark;
  --ink: #1A1A1A;
  --muted: #4D4F4C;
  --bg: #F0F7FD;               /* rgb(240, 247, 253) */
  --accent: #2A6670;           /* links: a deeper shade of the brand teal, readable on --bg */
  --button: #72B1BC;           /* brand teal */
  --button-hover: #5E9FAA;
  --button-ink: #1A1A1A;       /* dark text: white on #72B1BC is too faint */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEDEB;
    --muted: #B5B8B3;
    --bg: #121A1E;
    --accent: #72B1BC;
    --button: #72B1BC;
    --button-hover: #8CC2CB;
    --button-ink: #10181B;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, Roboto, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 20px;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 20px;
  margin: 48px 0 6px;
}

h2 a {
  color: inherit;
  text-decoration: none;
}

h2 a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

a {
  color: var(--accent);
}

/* "Aquila Works" link above a project page's title */
.home {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.home:hover {
  color: var(--accent);
}

.button {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--button-hover);
}

.small {
  font-size: 14px;
}

footer {
  margin-top: 64px;
  font-size: 14px;
  color: var(--muted);
}
