:root {
  --mokabyte-green: #006600;
  --page-width: 604px;
  --author-width: 140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: #fff;
}

body {
  margin: 8px;
  color: var(--mokabyte-green);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

a:link,
a:visited {
  color: var(--mokabyte-green);
}

a:active {
  color: #ff6666;
}

.legacy-article {
  width: var(--page-width);
  max-width: 100%;
  margin: 0 auto;
}

.article-hero {
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
}

.info-bar {
  min-height: 22px;
  padding: 3px 0 4px;
  border-bottom: 1px solid var(--mokabyte-green);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
}

.info-bar a {
  text-decoration: none;
}

.issue-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.9rem;
}

.issue-nav__issue {
  margin-right: auto;
}

.issue-nav__separator {
  color: var(--mokabyte-green);
  font-weight: 700;
}

.issue-nav a,
.issue-nav a:visited {
  color: var(--mokabyte-green);
  font-weight: 700;
  text-decoration: none;
}

.issue-nav a:hover,
.issue-nav a:focus-visible {
  text-decoration: underline;
}

.hero-grid {
  display: grid;
  grid-template-columns: var(--author-width) minmax(0, 1fr);
  min-height: 236px;
  border-right: 1px solid var(--mokabyte-green);
  border-bottom: 1px solid var(--mokabyte-green);
  border-left: 1px solid var(--mokabyte-green);
}

.author-card--hero {
  display: grid;
  grid-template-rows: 202px 34px;
  border-right: 1px solid var(--mokabyte-green);
  text-align: center;
}

.author-card__photo {
  width: 117px;
  height: 178px;
  margin: 12px auto;
  object-fit: cover;
  object-position: top center;
}

.author-card__photo-link {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 202px;
}

.author-card__photo-placeholder {
  display: block;
  width: 100%;
  height: 202px;
}

.author-card__byline {
  align-self: stretch;
  margin: 0;
  padding: 3px 4px 2px;
  border-top: 1px solid var(--mokabyte-green);
  font-size: 0.72rem;
  line-height: 1.2;
}

.author-card__byline strong {
  display: block;
}

.article-heading {
  display: grid;
  grid-template-rows: 202px 34px;
  min-width: 0;
  background-color: #fff;
  background-image: url("../images/backtitletable.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 100% 202px;
}

.article-title {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 3rem 1.2rem 0.5rem;
  color: var(--mokabyte-green);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.article-subtitle {
  margin: 0;
  padding: 8px 1rem 6px;
  overflow: hidden;
  color: #fff;
  background: var(--mokabyte-green);
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.banner {
  width: 100%;
  min-height: 2.75rem;
  text-align: center;
}

.content-shell {
  width: 100%;
}

.article-body {
  color: var(--mokabyte-green);
  font-size: 0.78rem;
  line-height: 1.35;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.35rem 0 0.45rem;
  color: var(--mokabyte-green);
  line-height: 1.15;
}

.article-body h2 {
  font-size: 1.1rem;
}

.article-body h3 {
  font-size: 1rem;
}

.article-body h4 {
  font-size: 0.9rem;
}

.article-body p {
  margin: 0.85rem 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.65rem;
  color: #000;
  background: #f3fff0;
  border: 1px solid var(--mokabyte-green);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
}

.article-body blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--mokabyte-green);
}

.article-body img,
.article-body figure {
  max-width: 100%;
  height: auto;
}

.footer {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 6px 0;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

.footer__home,
.footer__top {
  align-self: center;
}

.footer__text {
  padding: 0 0.75rem;
  font-size: 0.72rem;
  text-align: center;
}

.footer__title {
  font-size: 1rem;
}

.footer__text p {
  margin: 0.25rem 0;
}

@media (max-width: 620px) {
  body {
    margin: 0.4rem;
  }

  .hero-grid {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .author-card__photo {
    width: calc(100% - 24px);
  }

  .article-title {
    padding: 3rem 0.65rem 0.5rem;
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .footer {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
  }

  .footer__text {
    padding: 0 0.35rem;
  }
}
