/* ================================================================
   inner.css — shared by the Articles archive and article pages.
   These two pages reuse the homepage's navy header + nav strip,
   but the body switches to the dark reading layout shown in the PDF.
   ================================================================ */

/* ----- 1. Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #000000;
  color: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ----- 2. Navy header band (same 230px band as the homepage) ----- */
.page-header {
  height: 230px;
  padding: 0 37px;
  background: #000B3D;
  overflow: hidden;
}

.page-title {
  margin: 0;
  padding-top: 54px;      /* tuned so the title starts ~70px from the top */
  font-size: 135px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.article-title {
  margin: 0 0 24px;
  font-size: 28.8px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
}

/* ----- 3. Navigation strip (same colors as the homepage) ----- */
.nav-strip {
  display: flex;
  gap: 4px;
  height: 50px;
  padding: 4px;
  background: #000000;
}

.nav-blank {
  flex: 1;
  background: #C8D1D9;
}

/* Home button at the right-hand side of the extended pale bar */
.nav-home {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #737373;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav-home:hover {
  background: #5C5C5C;
}

/* ----- 4. Archive page ----- */
.archive {
  padding: 30px 76px 96px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li + li {
  margin-top: 32px;
}

.post-list a {
  color: #ffffff;
  font-size: 28.4px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

/* ----- 5. Article page ----- */
.article {
  max-width: 800px;
  margin-top: 26px;
  margin-bottom: 96px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  text-align: left;
}

.abstract {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  text-align: left;
}

.article h2 {
  margin: 32px 0 3px;
  font-size: 21.33px;
  font-weight: 700;
  line-height: 29px;
  color: #ffffff;
}

/* The abstract sits flush against the first section heading. */
.abstract + h2 {
  margin-top: 2px;
}

/* The PDF leaves a little extra air before section 3. */
.article h2:nth-of-type(3) {
  margin-top: 42px;
}

.article-body p {
  margin: 0;
  font-size: 21px;
  line-height: 29px;
  color: #ffffff;
  text-indent: 22.9px;
}

.back-link {
  margin: 96px 0 0;
  font-size: 18px;
}

.back-link a {
  color: #C8D1D9;
  text-decoration: underline;
}

/* ----- 6. Small screens: keep the PDF's spirit, just fit the viewport ----- */
@media (max-width: 900px) {
  .page-header {
    height: auto;
    padding: 40px 24px 32px;
  }

  .page-title {
    padding-top: 0;
    font-size: 56px;
  }

  .article-title {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .nav-strip {
    height: 44px;
  }

  .nav-home {
    flex: 0 0 96px;
    font-size: 12px;
  }

  .archive {
    padding: 32px 24px 96px;
  }

  .post-list a {
    font-size: 24px;
  }

  .article {
    margin-top: 32px;
  }

  .abstract {
    font-size: 20px;
    line-height: 30px;
  }

  .article h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .article-body p {
    font-size: 18px;
    line-height: 26px;
    text-indent: 0;
  }
}

/* ----- 7. Small on-screen keyboard (wide screens only) ----- */
.keyboard {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 8px;
  background: #000000;
  z-index: 50;
}

.keyboard-caption {
  margin: 0 0 6px;
  color: #737373;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 3px;
}

.keyboard-row:last-child {
  margin-bottom: 0;
}

.keyboard span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  background: #161616;
  color: #C8D1D9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.keyboard span.is-down {
  background: #C8D1D9;
  color: #000B3D;
}

@media (max-width: 1349px) {
  .keyboard {
    display: none;
  }
}

