/* style.css */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --rule: #e3e3e3;
  --blue: #4f6db8;
  --brown: #b07a3f;
}

* { box-sizing: border-box; }

.site-header nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--blue);
  background: transparent;
  text-decoration: none;
}

.site-header nav a:hover {
  background: #f7f7f7;
  text-decoration: none;
}

body {
  margin: 0;
  padding: 2rem 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  position: relative; /* needed for .logo absolute positioning */
}

main {
  max-width: 42rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  margin: 2.5rem 0 0.5rem 0;
}

p { margin: 0.5rem 0; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

figure {
  margin: 1.5rem 0;
}

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

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  padding-left: 0.75rem;
  margin: 1.5rem 0;
}

footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.logo {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  width: 100px;
}

.logo img {
  width: 100%;
  height: auto;
}

.external {
  font-size: 0.85em;
  margin-left: 0.15em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
