/* gordianstack.com: colours and type follow developer.blockchaincommons.com
   (Minimal Mistakes, dark skin). */

:root {
  --bg: #252a34;
  --text: #eaeaea;
  --link: #8cd2d5;
  --link-visited: #699ea0;
  --link-hover: #a9dde0;
  --accent: #00adb5;
  --rule: #51555d;
  --footer-bg: #1a1d24;
  --notice-bg: #2f3d45;
  --code-bg: #3d4046;
  --sans: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
  --mono: Monaco, Consolas, "Lucida Console", monospace;
  --serif: Georgia, Times, serif;
  --width: 60rem;
}

* { box-sizing: border-box; }

html {
  background-color: var(--bg);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover); outline: 0; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background-color: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

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

/* Masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.site-title:visited, .site-title:hover { color: var(--text); }

.site-title img {
  width: 2rem;
  height: 2rem;
}

.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.masthead nav a {
  color: var(--text);
  text-decoration: none;
}

.masthead nav a:hover { color: var(--link-hover); }

/* Hero */

.hero {
  position: relative;
  padding: 4rem 0;
  background-image: url("/assets/headers/blueprint.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
}

.hero .wrap { position: relative; }

.hero h1 {
  margin: 0;
  font-size: 2.441em;
  line-height: 1;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
  margin: 0.75rem 0 0;
  font-size: 1.25em;
  font-weight: bold;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Content */

main { flex: 1; }

main .wrap { padding-top: 2rem; padding-bottom: 2rem; }

.lead {
  font-size: 1.1em;
  font-style: italic;
}

h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.25em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2 img {
  width: 3.75rem;
  height: auto;
}

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--notice-bg);
  border-radius: 4px;
  font-size: 0.9em;
}

.notice ul { margin: 0; padding-left: 1.25rem; }
.notice li + li { margin-top: 0.4rem; }

.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.service.with-shot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.service .shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--rule);
  border-radius: 4px;
}

.service p:first-child { margin-top: 0; }

.links { padding-left: 1.25rem; }
.links li + li { margin-top: 0.25rem; }

.status {
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}

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

.credit {
  font-family: var(--serif);
  font-size: 0.8em;
  font-style: italic;
}

/* Footer */

.page-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  background-color: var(--footer-bg);
  color: #eee;
  font-size: 0.85rem;
}

.page-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.page-footer p { margin: 0; }

@media (max-width: 40rem) {
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 1.953em; }
  .service.with-shot { grid-template-columns: 1fr; }
}
