@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&display=swap");

:root {
  --yellow: #FFD500;
  --green: #008000;
  --dark: #4a4a4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--yellow);
  color: var(--dark);
  font-family: "Chakra Petch", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  background: var(--yellow);
  border-bottom: 1px solid transparent;
  pointer-events: none;
  z-index: 4;
  transition: border-color 180ms ease;
}

body.is-scrolled::before {
  border-bottom-color: #e8bf00;
}

.back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  z-index: 10;
}

.back-link img {
  display: block;
  width: 42px;
  height: 42px;
}

.menu-link {
  position: fixed;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  z-index: 10;
}

.menu-link img {
  display: block;
  width: 42px;
  height: 42px;
}

.page {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.article-shell {
  width: 100%;
  background: #fff;
  padding: 34px 36px 40px;
}

.article-art-row {
  margin-top: 28px;
}

.article-number {
  margin: 0;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
}

.article-meta {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #6c6c6c;
}

.article-meta a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.08em;
}

h1 {
  margin: 40px 0 0;
  max-width: 900px;
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 700;
  color: var(--dark);
}

.article-page--wide-title h1 {
  max-width: 980px;
}

.article-art {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: 28px;
}

.article-art-fill {
  display: none;
}

.article-body {
  margin-top: 60px;
  max-width: 980px;
  font-size: 1.5rem;
  line-height: 1.45;
}

.article-body p {
  margin: 0;
}

.article-body p + p {
  margin-top: 24px;
}

.article-body > p:last-child {
  margin-bottom: 24px;
}

.article-body__closing {
  color: var(--green);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 400;
}

.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.08em;
}

.article-section-heading {
  margin-top: 28px;
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 600;
}

.article-pull-quote {
  margin-top: 60px;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-left: 24px;
  border-left: 6px solid var(--green);
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--dark);
}

.article-pull-quote p + p {
  margin-top: 8px;
}

.article-pull-quote--spaced {
  margin-bottom: 60px;
}

.article-pull-quote + p {
  margin-top: 60px;
}

.article-divider {
  margin: 50px 0;
  border: 0;
  border-top: 1px solid #d7d7d7;
}

.article-page--ga .article-divider {
  margin: 100px 0;
}

.article-body ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.article-body li + li {
  margin-top: 10px;
}

.article-body ul + p {
  margin-top: 24px;
}

.equation {
  margin-top: 24px;
  font-size: 1.6rem;
  line-height: 1.4;
}

.equation code {
  font-family: "Chakra Petch", sans-serif;
  white-space: normal;
}

@media (min-width: 1100px) {
  .article-page--psj .article-art-row,
  .article-page--ga .article-art-row {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    width: auto;
    max-width: 100%;
  }

  .article-page--psj .article-art,
  .article-page--ga .article-art {
    margin-top: 0;
    width: 520px;
    max-width: 520px;
    flex: 0 0 520px;
  }

  .article-page--psj .article-art-fill,
  .article-page--ga .article-art-fill {
    display: block;
    width: 520px;
    height: 520px;
    max-width: none;
    flex: 0 0 520px;
    object-fit: cover;
  }
}

.site-footer {
  margin-top: 56px;
  color: var(--green);
  text-align: center;
}

.site-footer img {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 400;
}

.site-footer a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.08em;
}

.site-footer p + p {
  margin-top: 2px;
}

@media (max-width: 799px) {
  .page {
    padding: 88px 16px 48px;
  }

  .article-shell {
    padding: 24px 20px 28px;
  }

  h1 {
    margin-top: 28px;
    font-size: 2.4rem;
  }

  .article-body {
    margin-top: 28px;
    font-size: 1.1rem;
  }

  .equation {
    font-size: 1.2rem;
  }
}
