@font-face {
  font-family: 'Lexend';
  src: url('../sylva/inner-green-assets/lexend-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --editorial-paper: #f4f6f8;
  --editorial-surface: #ffffff;
  --editorial-ink: #121722;
  --editorial-muted: #667080;
  --editorial-faint: #8996a5;
  --editorial-line: #dce2e8;
  --editorial-forest: #0b1220;
  --editorial-forest-deep: #05070c;
  --editorial-leaf: #55d8ef;
  --editorial-blue: #4a7dff;
  --editorial-content: 720px;
  --editorial-wide: 1180px;
  --editorial-font: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --editorial-label: 'Lexend', var(--editorial-font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

html {
  background: var(--editorial-paper);
  scroll-behavior: smooth;
}

body.hisoka-editorial {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--editorial-paper) !important;
  color: var(--editorial-ink) !important;
  font-family: var(--editorial-font) !important;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hisoka-editorial a {
  color: inherit;
  text-decoration: none;
}

.hisoka-editorial a:focus-visible,
.hisoka-editorial summary:focus-visible {
  outline: 2px solid var(--editorial-blue);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(5, 7, 12, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  width: min(calc(100% - 48px), var(--editorial-wide));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: #fff !important;
  white-space: nowrap;
}

.site-brand__name {
  font-family: var(--editorial-label);
  font-size: 17px;
  font-weight: 650;
}

.site-brand__note {
  color: rgba(255, 255, 255, .42);
  font-family: var(--editorial-label);
  font-size: 9px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .58) !important;
  font-family: var(--editorial-label);
  font-size: 11px;
  font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: #fff !important;
  background: rgba(255, 255, 255, .07);
}

.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 1px;
  background: var(--editorial-leaf);
}

.site-menu {
  display: none;
  position: relative;
}

.site-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu__icon {
  width: 18px;
  display: grid;
  gap: 4px;
}

.site-menu__icon i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.site-menu[open] .site-menu__icon i:first-child {
  transform: translateY(5px) rotate(45deg);
}

.site-menu[open] .site-menu__icon i:nth-child(2) {
  opacity: 0;
}

.site-menu[open] .site-menu__icon i:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.site-menu__panel {
  position: absolute;
  top: 54px;
  right: 0;
  width: min(310px, calc(100vw - 32px));
  padding: 8px 16px;
  background: var(--editorial-forest-deep);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.site-menu__link {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .68) !important;
  font-size: 14px;
}

.site-menu__link:last-child {
  border-bottom: 0;
}

.site-menu__link.is-active,
.site-menu__link:hover {
  color: #fff !important;
}

/* Shared hero */
.entry-hero,
.archive-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--editorial-forest);
  color: #fff;
  border-bottom: 1px solid rgba(17, 23, 19, .2);
}

.entry-hero::before,
.archive-hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 33.333%;
  border-right: 1px solid rgba(255, 255, 255, .055);
  border-left: 1px solid rgba(255, 255, 255, .055);
  pointer-events: none;
}

.entry-hero__inner,
.archive-hero__inner,
.page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--editorial-wide));
  margin: 0 auto;
}

.entry-hero__inner {
  min-height: 410px;
  padding: 88px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.archive-hero__inner,
.page-hero__inner {
  min-height: 330px;
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr);
  gap: 64px;
  align-items: end;
}

.entry-kicker,
.archive-kicker,
.page-kicker,
.section-kicker {
  margin: 0 0 18px;
  color: #c7f2fb !important;
  font-family: var(--editorial-label);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
}

.entry-title,
.archive-title,
.page-title {
  max-width: 1100px;
  margin: 0;
  color: #fff !important;
  font-family: var(--editorial-font) !important;
  font-size: 52px;
  line-height: 1.18;
  font-weight: 650;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.archive-title,
.page-title {
  font-size: 50px;
}

.entry-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: rgba(255, 255, 255, .58);
  font-family: var(--editorial-label);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.entry-meta a {
  color: #d8f6fb !important;
}

.archive-description,
.page-description {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .62) !important;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}

/* Single article */
.reading-progress {
  position: fixed;
  top: 72px;
  left: 0;
  z-index: 110;
  width: 0;
  height: 2px;
  background: var(--editorial-blue);
  pointer-events: none;
}

.admin-bar .reading-progress {
  top: 104px;
}

.article-band,
.page-band,
.archive-band {
  background: var(--editorial-paper);
}

.article-shell {
  width: min(calc(100% - 48px), 1040px);
  margin: 0 auto;
  padding: 80px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, var(--editorial-content)) 220px;
  gap: 80px;
  align-items: start;
}

.entry-content,
.page-content {
  min-width: 0;
  color: #273142;
  font-size: 18px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.entry-content > :first-child,
.page-content > :first-child {
  margin-top: 0 !important;
}

.entry-content p,
.page-content p {
  margin: 0 0 1.65em;
  color: #344054 !important;
}

.entry-content h2,
.page-content h2 {
  margin: 3.2em 0 1em;
  color: var(--editorial-ink) !important;
  font-family: var(--editorial-font) !important;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 650;
  scroll-margin-top: 112px;
  text-wrap: pretty;
}

.entry-content h3,
.page-content h3 {
  margin: 2.4em 0 .8em;
  color: var(--editorial-ink) !important;
  font-family: var(--editorial-font) !important;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 650;
  scroll-margin-top: 112px;
}

.entry-content h4,
.page-content h4 {
  margin: 2em 0 .7em;
  color: var(--editorial-ink) !important;
  font-size: 19px;
  line-height: 1.5;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
  margin: 0 0 1.7em;
  padding-left: 1.4em;
}

.entry-content li,
.page-content li {
  margin: .45em 0;
  color: #344054 !important;
}

.entry-content a,
.page-content a {
  color: var(--editorial-blue) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.entry-content blockquote,
.page-content blockquote {
  margin: 2.2em 0;
  padding: 22px 24px;
  background: #eaf0f5 !important;
  border: 0 !important;
  border-left: 3px solid var(--editorial-forest) !important;
  border-radius: 0 8px 8px 0 !important;
}

.entry-content blockquote p,
.page-content blockquote p {
  color: #3f4b5c !important;
}

.entry-content pre,
.page-content pre {
  max-width: 100%;
  margin: 2.2em 0;
  padding: 20px 22px !important;
  overflow-x: auto;
  background: #0a0f18 !important;
  border: 1px solid #1c2a3a !important;
  border-radius: 8px !important;
  color: #e8f4f8 !important;
  font-size: 14px !important;
  line-height: 1.65;
}

.entry-content code,
.page-content code {
  padding: .15em .38em;
  background: #e8eef5 !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #145d78 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em !important;
}

.entry-content pre code,
.page-content pre code {
  padding: 0;
  background: transparent !important;
  color: inherit !important;
}

.entry-content figure,
.page-content figure {
  margin: 2.4em 0;
}

.entry-content img,
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--editorial-line) !important;
  border-radius: 8px !important;
}

.entry-content figcaption,
.page-content figcaption,
.wp-element-caption {
  margin-top: 10px;
  color: var(--editorial-muted) !important;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.entry-content table,
.page-content table {
  width: 100%;
  display: block;
  margin: 2em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td {
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid var(--editorial-line);
  text-align: left;
}

.entry-content th,
.page-content th {
  background: #eaf0f5;
  color: var(--editorial-ink);
}

.article-toc {
  position: sticky;
  top: 108px;
  padding-top: 4px;
  border-top: 1px solid var(--editorial-ink);
}

.article-toc[hidden] {
  display: none;
}

.article-toc summary {
  padding: 16px 0 14px;
  color: var(--editorial-ink);
  cursor: pointer;
  font-family: var(--editorial-label);
  font-size: 11px;
  font-weight: 650;
  list-style: none;
}

.article-toc summary::-webkit-details-marker {
  display: none;
}

.article-toc summary::after {
  content: '−';
  float: right;
  color: var(--editorial-muted);
}

.article-toc:not([open]) summary::after {
  content: '+';
}

.article-toc ol {
  margin: 0;
  padding: 0 0 18px;
  list-style: none;
}

.article-toc li {
  margin: 0;
}

.article-toc a {
  display: block;
  padding: 6px 0;
  color: var(--editorial-muted) !important;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.article-toc a[data-level='3'] {
  padding-left: 14px;
  font-size: 12px;
}

.article-toc a:hover {
  color: var(--editorial-blue) !important;
}

.article-footer {
  width: min(calc(100% - 48px), var(--editorial-wide));
  margin: 0 auto;
  padding: 0 0 96px;
}

.related-posts {
  border-top: 1px solid var(--editorial-ink);
}

.related-posts__heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 40px 0 28px;
}

.related-posts__heading h2 {
  margin: 0;
  color: var(--editorial-ink) !important;
  font-size: 30px;
  line-height: 1.3;
}

.related-post {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 32px;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--editorial-line);
}

.related-post:last-child {
  border-bottom: 1px solid var(--editorial-line);
}

.related-post time {
  color: var(--editorial-muted);
  font-family: var(--editorial-label);
  font-size: 11px;
}

.related-post h3 {
  margin: 0;
  color: var(--editorial-ink) !important;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  word-break: keep-all;
}

.related-post__hit {
  position: absolute;
  inset: 0;
}

.related-post__arrow {
  justify-self: end;
  color: var(--editorial-blue);
}

.post-navigation {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
}

.post-navigation a {
  min-height: 118px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.post-navigation a + a {
  padding-left: 32px;
  border-left: 1px solid var(--editorial-line);
}

.post-navigation__label {
  color: var(--editorial-muted);
  font-family: var(--editorial-label);
  font-size: 10px;
  text-transform: uppercase;
}

.post-navigation__title {
  color: var(--editorial-ink);
  font-size: 15px;
  line-height: 1.5;
}

/* Archive */
.archive-shell {
  width: min(calc(100% - 48px), var(--editorial-wide));
  margin: 0 auto;
  padding: 88px 0 104px;
}

.archive-list {
  border-top: 1px solid var(--editorial-ink);
}

.archive-post {
  position: relative;
  min-height: 176px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(240px, .55fr) 32px;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--editorial-line);
  content-visibility: auto;
  contain-intrinsic-size: 176px;
  transition: padding .2s ease, background-color .2s ease;
}

.archive-post:hover {
  padding-right: 16px;
  padding-left: 16px;
  background: var(--editorial-surface);
}

.archive-post__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.archive-post__index {
  color: var(--editorial-muted);
  font-family: var(--editorial-label);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.archive-post__copy {
  min-width: 0;
}

.archive-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: var(--editorial-muted);
  font-family: var(--editorial-label);
  font-size: 11px;
}

.archive-post__meta span:first-child {
  color: var(--editorial-blue);
}

.archive-post h2 {
  margin: 0;
  color: var(--editorial-ink) !important;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 650;
  word-break: keep-all;
}

.archive-post__excerpt {
  margin: 34px 0 0;
  color: var(--editorial-muted) !important;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.archive-post__arrow {
  justify-self: end;
  color: var(--editorial-blue);
}

.pagination {
  margin-top: 48px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--editorial-line) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--editorial-muted) !important;
  font-family: var(--editorial-label);
  font-size: 12px;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--editorial-forest) !important;
  color: var(--editorial-ink) !important;
}

/* Static page */
.page-shell {
  width: min(calc(100% - 48px), 860px);
  margin: 0 auto;
  padding: 80px 0 104px;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
}

.page-shell--about .page-content {
  max-width: 860px;
}

.page-shell--about .page-content > p:first-of-type {
  font-size: 21px;
  line-height: 1.75;
  color: var(--editorial-ink) !important;
}

/* Footer */
.site-footer {
  background: var(--editorial-forest-deep);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer__inner {
  width: min(calc(100% - 48px), var(--editorial-wide));
  min-height: 128px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 32px;
  align-items: center;
}

.site-footer__brand {
  color: #fff !important;
  font-family: var(--editorial-label);
  font-size: 16px;
  font-weight: 650;
}

.site-footer p,
.site-footer__links a {
  margin: 0;
  color: rgba(255, 255, 255, .5) !important;
  font-size: 12px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .article-shell {
    grid-template-columns: minmax(0, var(--editorial-content));
    justify-content: center;
    gap: 36px;
  }

  .article-toc {
    position: static;
    order: -1;
    max-width: var(--editorial-content);
  }

  .archive-post {
    grid-template-columns: 52px minmax(0, 1fr) 32px;
  }

  .archive-post__excerpt {
    grid-column: 2;
    margin-top: 8px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .reading-progress {
    top: 118px;
  }
}

@media (max-width: 680px) {
  body.hisoka-editorial {
    font-size: 16px;
  }

  .site-header,
  .site-header__inner {
    height: 64px;
  }

  .site-header__inner,
  .entry-hero__inner,
  .archive-hero__inner,
  .page-hero__inner,
  .archive-shell,
  .article-footer,
  .site-footer__inner {
    width: min(calc(100% - 32px), var(--editorial-wide));
  }

  .site-brand__note {
    display: none;
  }

  .site-menu__panel {
    top: 50px;
  }

  .entry-hero__inner {
    min-height: 350px;
    padding: 62px 0 48px;
  }

  .archive-hero__inner,
  .page-hero__inner {
    min-height: 280px;
    padding: 56px 0 46px;
    display: block;
  }

  .archive-kicker,
  .page-kicker {
    margin-bottom: 24px;
  }

  .entry-title {
    font-size: 36px;
    line-height: 1.25;
  }

  .archive-title,
  .page-title {
    font-size: 34px;
  }

  .entry-meta {
    margin-top: 24px;
    gap: 8px 16px;
  }

  .archive-description,
  .page-description {
    font-size: 15px;
  }

  .reading-progress {
    top: 64px;
  }

  .article-shell,
  .page-shell {
    width: min(calc(100% - 32px), var(--editorial-content));
    padding: 56px 0 72px;
  }

  .entry-content,
  .page-content {
    font-size: 16.5px;
    line-height: 1.78;
  }

  .entry-content h2,
  .page-content h2 {
    margin-top: 2.8em;
    font-size: 25px;
  }

  .entry-content h3,
  .page-content h3 {
    font-size: 20px;
  }

  .article-footer {
    padding-bottom: 72px;
  }

  .related-posts__heading {
    display: block;
    padding: 32px 0 22px;
  }

  .related-posts__heading .section-kicker {
    margin-bottom: 12px;
  }

  .related-posts__heading h2 {
    font-size: 25px;
  }

  .related-post {
    min-height: 112px;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 12px;
  }

  .related-post time {
    grid-column: 1 / -1;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation a + a {
    padding-left: 0;
    border-top: 1px solid var(--editorial-line);
    border-left: 0;
  }

  .archive-shell {
    padding: 56px 0 72px;
  }

  .archive-post {
    min-height: 0;
    padding: 24px 0;
    grid-template-columns: 36px minmax(0, 1fr) 22px;
    gap: 10px;
  }

  .archive-post:hover {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }

  .archive-post h2 {
    font-size: 20px;
  }

  .archive-post__excerpt {
    font-size: 14px;
  }

  .site-footer__inner {
    min-height: 184px;
    padding: 34px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
