body {
  margin: 0;
  background: #eee;
}

.page-main {
  max-width: 800px;
  margin: 6px auto 0 auto;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

.page-story {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

.page-story > article > p {
  max-width: 680px;
  margin: 0.75rem auto;
  text-align: left;
  font-size: 1.05rem;
}

/* PAGE HEADER, POST-DATE, POST-TITL, POST-SUBTITLE */
/* ------------------------------------------ */
.page-story .story-header {
  max-width: 680px;
  margin: 0.5rem auto 1.45rem;
  text-align: left;
  color: #777;
}

.page-story .post-date {
  margin: 0.1rem 0 0.2rem;
  color: #777;
  font-size: 0.90rem;
}

.page-story .post-titl {
  margin: 0 0 0.15rem;
  color: #555;
  font-size: 1.9rem;
  line-height: 2.3rem;
  font-weight: bold;
}

.page-story .post-subtitl {
  margin: 0;
  color: #777;
  font-size: 1.1rem;
  line-height: 1.35rem;
}


/* CATG & PROJ LEVEL IMAGE BAR LINKS */
/* ------------------------------------------ */
.section-links {
  max-width: 800px;
  margin: 0 auto;
}

.section-link {
  display: block;
  margin: 0 0 6px 0;
}

.section-link img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  opacity: 1;
  transition: opacity 100ms ease;
}

.section-link:hover img {
  opacity: 0.6;
}

/* TOP NAV BAR */
/* ------------------------------------------ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
}

.top-nav.fade-under::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 20px;
  pointer-events: none;
  z-index: 2;

  background: linear-gradient(
    to bottom,
    rgba(238,238,238,1) 0%,
    rgba(238,238,238,0) 100%
  );
}

/* NAV CELL TEXT */
/* ------------------------------------------ */
.nav-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 1rem;
  color: #222;
  text-decoration: none;
  font: 20px Arial, sans-serif;
}

a.nav-cell:hover {
  background: #f6f6f6;
  color: #222;
}

.nav-cell.current {
  color: #222;
  font-weight: normal;
  background: #fff;
}

.nav-cell.empty {
  pointer-events: none;
}

/* REMOVE BLUE LINE AROUND VISITED IMAGE LINK */
/* ------------------------------------------ */
a:focus-visible {
  outline: 2px solid #ddd;
  outline-offset: 3px;
}

/* HORIZONTAL RULE */

hr {
    max-width: 680px;
    margin: 2rem auto;
    border: 0;
    border-top: 1px solid #27f;
}

/* ASIDE */
/* ------------------------------------------ */
.site-aside {
  max-width: 680px;
  margin: 1rem auto;
  color: #777;
  font-size: 1.0rem;
  font-style: italic;
  line-height: 1.25;
}

.site-aside p {
  margin: 0;
}

/* QUOTE */
/* ------------------------------------------ */
.site-quote {
  max-width: 680px;
  margin: 1rem auto;
  color: #777;
  font-size: 1.0rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.25;
}

.site-quote p {
  margin: 0;
}

/* DETAILS */
/* ------------------------------------------ */
.site-details {
  max-width: 680px;
  margin: 0.5rem auto;
  color: #25a;
  font-size: 1.0rem;
  line-height: 1.4;
}

.site-details:hover {
  color: #aaa;
  text-decoration: none;
}

.site-details p {
  margin: 0.75rem 0 0;
  color: #222;
  font-style: italic;
}

/* STORY FOOTER */
/* ------------------------------------------ */
.story-footer {
  max-width: 680px;
  margin: 2.0rem auto 2.0rem;
  padding-top: 1.50rem;
  border-top: 1px solid #ccc;
}

.story-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 360px;
  margin: 0 auto;
}

/* Prev | Back to UOSI | Next */
/* ------------------------------------------ */
.story-nav a,
.story-nav-empty {
  min-width: 80px;
  font-size: 1rem;
}

.story-nav a {
  color: #25a;
  text-decoration: none;
}

.story-nav a:visited {
  color: #25a;
}

.story-nav a:hover {
  color: #aaa;
  text-decoration: none;
}

.story-nav-empty {
  display: block;
  color: #bbb;
  cursor: default;
  user-select: none;
}

.story-nav > :first-child {
  text-align: left;
}

.story-nav > :nth-child(2) {
  text-align: center;
}

.story-nav > :last-child {
  text-align: right;
}

/* COPYRIGHT FOOTER */
/* ------------------------------------------ */
.site-footer {
  max-width: 680px;
  margin: 0rem auto 0.5rem;
  padding-top: 0.0rem;
  color: #777;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: inherit;
}

/* VIDEO (YouTube) */
/* ------------------------------------------ */
.video-frame iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
}

/* IMAGE LINK */
/* ------------------------------------------ */
.image-link {
  display: block;
  max-width: 800px;
  margin: 0 0 6px 0;
}

.image-link img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 1.00;
  transition: opacity 100ms ease;
}

.image-link:hover img {
  opacity: 0.6;
}

.image-link:focus-visible {
  outline: none;
}

/* TEXT LINK */
/* ------------------------------------------ */
.internal-link {
  color: #222;
  font-size: 1.0rem;
  line-height: 1.4;
  text-decoration: none;
}

.internal-link:visited {
  color: #222;
}

.internal-link:hover {
  color: #27f;
  text-decoration: none;
}

/* EXTERNAL LINK */
/* ------------------------------------------ */
.external-link {
  color: #25a;
  font-size: 1.0rem;
  line-height: 1.4;
  text-decoration: none;
}

.external-link:visited {
  color: #25a;
}

.external-link:hover {
  color: #aaa;
  text-decoration: none;
}

.external-link:after {
  content: " ↗";
  font-size: 1.5em;
}

/* LAND ID HIGHER IN PAGE */
/* ------------------------------------------ */
[id] {
  scroll-margin-top: 100px;
}

/* PRE-CODE */
/* ------------------------------------------ */
code {
  font-family: Consolas, Monaco, monospace;
  color: #55b;
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: bold;
  white-space: pre-wrap;
}

