#about-nen,
#download,
#journal {
  --editorial-ink: var(--nen-ink);
  --editorial-muted: var(--nen-muted);
  --editorial-accent: var(--nen-link);
}

#about-nen {
  background: var(--nen-surface);
  padding-block: clamp(23px, 4.8vw, 68px) clamp(18px, 3vw, 38px);
}

#about-nen .editorial-scene {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  place-items: start stretch;
  gap: clamp(22px, 3.6vw, 50px) clamp(22px, 4.2vw, 76px);
  padding: clamp(22px, 4.6vw, 60px) clamp(22px, 5.8vw, 100px);
  border: 2px solid var(--nen-ink);
  border-radius: 28px;
  background: var(--nen-soft);
}

#about-nen .editorial-copy {
  max-width: 100%;
  justify-items: start;
  text-align: start;
}

#about-nen .editorial-copy h2 {
  max-width: 22ch;
  font-size: clamp(30px, 4vw, 58px);
}

#about-nen .editorial-copy > p { max-width: 44ch; }

#about-nen .editorial-facts {
  align-self: center;
  padding-inline-start: clamp(18px, 3vw, 42px);
  border-inline-start: 1px solid var(--nen-line);
}

#about-nen .editorial-metrics {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 390px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--nen-ink);
}

#about-nen .editorial-metrics li {
  display: grid;
  grid-template-columns: clamp(74px, 9vw, 108px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

#about-nen .editorial-metrics strong {
  font-size: clamp(22px, 2.65vw, 33px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
}

#about-nen .editorial-metrics li > span {
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.38;
}

#about-nen .editorial-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

#about-nen .editorial-socials a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--nen-ink);
  transition: background-color .18s ease;
}

#about-nen .editorial-socials img {
  display: block;
  object-fit: contain;
}

#about-nen .editorial-socials a:hover {
  background: var(--nen-link);
}

#about-nen .editorial-copy h2,
#download .install-content h2,
#journal .journal-heading h2,
#quiz h2,
#access h2,
#faq .faq-layout h2 {
  letter-spacing: -.025em;
}

#journal .journal-heading > a {
  color: var(--nen-link);
  font-weight: 700;
}

#journal .journal-heading > a:hover {
  color: var(--nen-ink);
}

#about-nen .editorial-team {
  grid-column: 1 / -1;
  padding-block-start: clamp(17px, 2.5vw, 30px);
  border-block-start: 1px solid var(--nen-line);
}

#about-nen .editorial-team h3 {
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.15;
}

#about-nen .editorial-people {
  width: 100%;
  grid-template-columns: none;
  grid-auto-columns: clamp(124px, 12vw, 160px);
  align-items: stretch;
  gap: clamp(8px, 1vw, 14px);
}

#about-nen .editorial-people li {
  position: static;
  width: auto;
  min-width: 0;
}

#about-nen .editorial-person {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 8px;
  height: 100%;
  padding: 12px 10px 10px;
  border: 1px solid var(--nen-ink);
  border-radius: 14px;
  background: var(--nen-surface);
  color: var(--nen-ink);
  overflow: clip;
  text-align: center;
}

#about-nen .person-publisher .editorial-person {
  background: var(--nen-lime);
}

#about-nen .editorial-photo {
  display: block;
  width: clamp(65px, 6.4vw, 92px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: var(--nen-window);
  overflow: hidden;
}

#about-nen .editorial-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  filter: grayscale(1);
}

#about-nen .editorial-caption {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 3px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(12px, 1.05vw, 14px);
  text-wrap: balance;
}

#about-nen .editorial-caption small {
  max-width: none;
  color: var(--nen-muted);
  font-size: clamp(11px, .9vw, 12px);
}

html:has(#download:target) { scroll-behavior: auto; }

#download {
  --editorial-muted: var(--nen-ink);
  --editorial-accent: var(--nen-ink);

  background: var(--nen-surface);
}

#download .install-frame {
  width: min(1420px, calc(100% - clamp(20px, 3.3vw, 48px)));
  min-height: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3.4vw, 49px);
  padding: clamp(20px, 2.6vw, 37px) clamp(22px, 6vw, 86px);
  border-radius: 28px;
  background: var(--nen-pink);
}

#download .install-frame::before,
#download .install-frame::after {
  content: none;
}

#download .install-content {
  width: 100%;
  justify-items: start;
  padding: 0;
  text-align: start;
}

#download .install-content h2 {
  max-width: 14ch;
  font-size: clamp(35px, 4.5vw, 66px);
  line-height: 1.03;
  text-wrap: balance;
}

#download .install-art {
  position: relative;
  inline-size: min(100%, 392px);
  justify-self: center;
  view-timeline: --install-art block;
}

#download .install-collage {
  position: relative;
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.install-pencil-marks {
  position: absolute;
  inset: 13% auto auto -1%;
  inline-size: 13%;
  aspect-ratio: 1;
  transform: rotate(-15deg);
}

.install-pencil-marks::before,
.install-pencil-marks::after {
  position: absolute;
  content: "";
}

.install-pencil-marks::before {
  inset: 11%;
  background: var(--nen-link);
  clip-path: polygon(50% 0, 62% 39%, 100% 49%, 64% 61%, 51% 100%, 38% 62%, 0 50%, 38% 38%);
}

.install-pencil-marks::after {
  inset: auto auto -27% -5%;
  width: 34%;
  height: 34%;
  border: 2px solid var(--nen-link);
  border-radius: 55% 46% 53% 45%;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    #download .install-collage,
    #download .install-pencil-marks {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --install-art;
      animation-range: entry 8% cover 40%;
    }

    #download .install-collage { animation-name: install-collage-assemble; }
    #download .install-pencil-marks { animation-name: install-marks-assemble; }
  }
}

@keyframes install-collage-assemble {
  from { transform: translate(6%, 7%) rotate(6deg) scale(.92); }
  to { transform: none; }
}

@keyframes install-marks-assemble {
  from { transform: translate(-40%, 50%) rotate(-43deg) scale(.5); }
  to { transform: rotate(-15deg); }
}

#download .install-content > p {
  margin-block: 12px 20px;
  color: var(--nen-ink);
  line-height: 1.45;
}

#download .install-stores {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#download .install-content .store-badges {
  --badge-height: clamp(39px, 4vw, 45px);

  justify-content: flex-start;
}

#journal {
  background: var(--nen-surface);
}

#journal .journal-rail:focus-visible,
#journal .journal-rail li > a:focus-visible {
  outline-color: var(--nen-link);
}

#journal .journal-rail li > a {
  border: 1px solid var(--nen-ink);
  border-radius: 24px;
  background: var(--nen-surface);
  color: var(--nen-ink);
}

#journal .journal-rail img {
  border-radius: 18px 18px 12px 12px;
  background: var(--nen-soft);
}

#journal .journal-rail li > a p:first-child {
  border-radius: 99px;
  background: var(--nen-soft);
  color: var(--nen-ink);
  font-weight: 600;
}

#journal .journal-rail li:nth-child(3n + 2) > a p:first-child {
  background: var(--nen-pink);
}

#journal .journal-rail li:nth-child(3n + 3) > a p:first-child {
  background: var(--nen-lime);
}

#journal .journal-deck {
  color: var(--nen-muted);
}

#quiz,
#access {
  --conversion-ink: var(--nen-ink);
  --conversion-muted: var(--nen-muted);
  --conversion-line: var(--nen-line);
  --editorial-accent: var(--nen-link);
}

#quiz {
  --conversion-ink: #fff;
  --conversion-muted: #fff;

  background: var(--nen-primary);
}

#quiz .quiz-card {
  border: 2px solid var(--nen-ink);
  border-radius: 28px;
  background: var(--nen-surface);
  color: var(--nen-ink);
}

#quiz .quiz-progress {
  color: var(--nen-muted);
}

#quiz-question:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--nen-link);
  outline-offset: 4px;
}

#quiz .quiz-steps {
  margin: 14px 0 0;
  padding: 13px 15px 13px 33px;
  border-radius: 14px;
  background: var(--nen-soft);
  line-height: 1.45;
}

#quiz .quiz-steps li + li {
  margin-top: 7px;
}

#quiz .quiz-steps li::marker {
  color: var(--nen-link);
  font-weight: 750;
}

#quiz .first-action {
  font-weight: 500;
  line-height: 1.5;
}

#quiz progress { background: var(--nen-soft); }

#quiz progress::-webkit-progress-bar { background: var(--nen-soft); }

#quiz progress::-webkit-progress-value { background: var(--nen-primary); }

#quiz progress::-moz-progress-bar { background: var(--nen-primary); }

#quiz .option {
  border-bottom-color: var(--nen-line);
  color: var(--nen-ink);
  font-weight: 600;
}

#quiz .option:is(:hover, [data-previous="true"]) {
  background: var(--nen-soft);
}

#quiz .option-arrow {
  display: grid;
  flex: none;
  inline-size: 26px;
  block-size: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--nen-lime);
  color: var(--nen-ink);
}

#quiz .quiz-footer :is(a, button),
#quiz .result-screen,
#quiz noscript a {
  color: var(--nen-link);
}

#quiz .quiz-footer :is(a, button):hover,
#quiz .result-screen:hover,
#quiz noscript a:hover {
  color: var(--nen-ink);
}

#access {
  background: var(--nen-surface);
}

#access .access-grid {
  border-color: var(--nen-ink);
  border-radius: 24px;
}

#access .access-plan {
  background: var(--nen-surface);
}

#access .plan-stores {
  --badge-height: clamp(35px, 7vw, 42px);

  justify-content: start;
  margin-block-start: 18px;
}

#access .access-plus {
  background: var(--nen-soft);
}

#access .plan-price strong {
  font-weight: 700;
  letter-spacing: -.026em;
  font-variant-numeric: tabular-nums;
}

#quiz .result-actions .pill-dark {
  min-height: 44px;
  border-color: var(--nen-ink);
  background: var(--nen-lime);
  color: var(--nen-ink);
}

#quiz .result-actions .pill-dark:hover {
  background: var(--nen-ink);
  color: var(--nen-lime);
}

#faq {
  --closing-paper: var(--nen-ink);
  --closing-muted: var(--nen-muted);
  --closing-line: var(--nen-line);
  --closing-accent: var(--nen-link);
}

#faq.faq-section {
  background: var(--nen-soft);
}

#faq .faq-layout > div {
  padding-inline: clamp(12px, 2.8vw, 32px);
  border: 1px solid var(--nen-ink);
  border-radius: 24px;
  background: var(--nen-surface);
}

#faq details:first-child {
  border-top: 0;
}

#faq details:last-child {
  border-bottom: 0;
}

#faq summary {
  font-weight: 600;
}

#faq details p a {
  color: var(--nen-link);
}

.footer {
  --closing-paper: var(--nen-surface);
  --closing-muted: var(--nen-soft);
  --closing-line: color-mix(in srgb, var(--nen-soft) 26%, transparent);
  --closing-accent: var(--nen-lime);

  background: var(--nen-ink);
}

.footer :is(.footer-col, .footer-stores) > h3 {
  font-weight: 700;
}

.footer :is(.footer-col, .footer-socials, .footer-legal) a:hover {
  color: var(--nen-lime);
}

.footer .footer-socials a {
  text-decoration-color: currentColor;
}

@media (min-width: 521px) {
  #access .access-plus { border-inline-start: 1px solid var(--nen-ink); }
}

@media (max-width: 659px) {
  #about-nen .editorial-scene {
    grid-template-columns: minmax(0, 1fr);
  }

  #about-nen .editorial-facts {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

}

@media (max-width: 639px) {
  #download .install-frame {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    padding: clamp(22px, 6vw, 34px) clamp(18px, 6vw, 34px) 10px;
  }

  #download .install-art { inline-size: min(100%, 252px); }
}

@media (max-width: 520px) {
  #access .access-plus { border-top-color: var(--nen-ink); }
}

