/* TAKETEN / TEXT */

.text-page {
  background: var(--paper);
}

.text-page .desktop-nav .is-current::after {
  right: 0;
}

.text-hero {
  min-height: 100svh;
  padding-top: 132px;
  padding-bottom: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(42px, 7vw, 86px);
}

.text-hero-index {
  margin: 0;
  font-family: var(--sans-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
}

.text-title-row {
  position: relative;
}

.text-title {
  margin: 0;
  font-family: var(--sans-en);
  font-size: clamp(112px, 22vw, 320px);
  font-weight: 600;
  line-height: .72;
  letter-spacing: -.105em;
}

.text-sticker {
  position: absolute;
  right: 6%;
  top: 2%;
  width: clamp(105px, 12vw, 170px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--acid);
  font-family: var(--sans-en);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.045em;
  transform: rotate(7deg);
}

.text-intro {
  margin-top: clamp(56px, 9vw, 112px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 8vw, 120px);
}

.text-intro p {
  margin: 0;
}

.text-intro-main {
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.text-intro-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.text-scroll {
  position: absolute;
  right: 0;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans-en);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.text-scroll i {
  width: 1px;
  height: 70px;
  background: var(--ink);
}

/* headings */
.text-feature {
  padding: var(--space) 0;
}

.text-section-head {
  margin-bottom: clamp(48px, 7vw, 90px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.text-section-head h2 {
  margin: 0;
  font-size: clamp(52px, 8vw, 118px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.075em;
}

.text-section-head > p {
  max-width: 330px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}

/* featured */
.featured-text {
  min-height: clamp(480px, 55vw, 720px);
  padding: clamp(28px, 5vw, 70px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, .45fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: stretch;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .25s ease, color .25s ease;
}

.featured-text-number {
  font-family: var(--sans-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
}

.featured-text-body {
  align-self: center;
}

.text-type {
  margin: 0 0 30px;
  font-family: var(--sans-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
}

.featured-text-body h3 {
  margin: 0;
  font-size: clamp(66px, 10vw, 150px);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.075em;
}

.featured-text-note {
  margin: 38px 0;
  color: var(--muted);
  font-size: 13px;
}

.read-text-link {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-family: var(--sans-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
}

.featured-text-mark {
  min-height: 100%;
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--sans-en);
  transition: background .25s ease, color .25s ease;
}

.featured-text-mark span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
}

.featured-text-mark strong {
  font-size: clamp(35px, 4.5vw, 66px);
  line-height: .78;
  letter-spacing: -.075em;
}

.featured-text:hover {
  background: var(--ink);
  color: var(--paper);
}

.featured-text:hover .featured-text-note {
  color: #aaa49b;
}

.featured-text:hover .featured-text-mark {
  background: var(--acid);
  color: var(--ink);
}

/* archive */
.text-index {
  padding: var(--space) 0 100px;
  background: var(--ink);
  color: var(--paper);
}

.text-section-head-dark {
  border-color: rgba(243, 240, 232, .27);
}

.text-section-head-dark .eyebrow {
  color: var(--paper);
}

.text-random {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  transition: .2s ease;
}

.text-random:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
  transform: rotate(-1deg);
}

.text-archive-count {
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sans-en);
}

.text-archive-count span {
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.07em;
}

.text-archive-count strong {
  font-size: 9px;
  letter-spacing: .12em;
}

.text-filter {
  margin-bottom: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-filter button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(243, 240, 232, .34);
  background: transparent;
  color: #aaa49b;
  cursor: pointer;
  font-family: var(--sans-en);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .11em;
}

.text-filter button:hover,
.text-filter button.is-active {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.text-archive {
  border-top: 1px solid rgba(243, 240, 232, .25);
}

.text-archive-item {
  min-height: 122px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 70px 110px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(243, 240, 232, .2);
  transition: padding .25s ease, color .2s ease;
}

.text-archive-no,
.text-archive-type,
.text-archive-arrow {
  font-family: var(--sans-en);
}

.text-archive-no {
  color: #77736d;
  font-size: 9px;
  letter-spacing: .1em;
}

.text-archive-type {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
}

.text-archive-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.text-archive-arrow {
  font-size: 22px;
}

.text-archive-item:hover {
  padding-left: 18px;
  padding-right: 18px;
  background: var(--acid);
  color: var(--ink);
}

.text-archive-item:hover .text-archive-no {
  color: var(--ink);
}

.text-loading,
.text-empty,
.text-error {
  margin: 0;
  padding: 62px 0;
  border-bottom: 1px solid rgba(243, 240, 232, .2);
  color: #8c877f;
  font-family: var(--sans-en);
  font-size: 9px;
  letter-spacing: .12em;
}

.text-archive-end {
  margin-top: clamp(100px, 13vw, 180px);
  padding-top: 22px;
  border-top: 1px solid rgba(243, 240, 232, .25);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-family: var(--sans-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
}

.text-archive-end p {
  margin: 0;
  color: #77736d;
}

.text-archive-end a:hover {
  color: var(--acid);
}

@media (max-width: 820px) {
  .featured-text {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .featured-text-mark {
    grid-column: 1 / -1;
    min-height: 210px;
  }

  .text-archive-item {
    grid-template-columns: 48px 82px minmax(0, 1fr) auto;
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .text-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 90px;
  }

  .text-sticker {
    right: 0;
    top: -24px;
    width: 90px;
    padding: 14px;
    font-size: 12px;
  }

  .text-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .text-scroll {
    display: none;
  }

  .text-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-archive-item {
    min-height: 104px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .text-archive-type {
    display: none;
  }

  .text-archive-title {
    font-size: 24px;
  }

  .text-archive-end {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 450px) {
  .text-title {
    font-size: 27vw;
  }

  .featured-text {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .featured-text-number {
    margin-bottom: 20px;
  }

  .featured-text-mark {
    min-height: 180px;
  }
}


/* =========================================================
   STATIC TEXT ARCHIVE / text2.html contents
   ========================================================= */

.text-archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 90px);
  margin-bottom: 34px;
}

.text-archive-stats > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.text-archive-stats > div span {
  font-size: clamp(42px, 6vw, 82px);
}

.text-static-archive {
  display: grid;
  gap: clamp(110px, 14vw, 180px);
}

.text-static-section[hidden] {
  display: none;
}

.text-subhead {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(243, 240, 232, .25);
}

.text-subhead .eyebrow {
  color: var(--paper);
}

.text-subhead h3 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
}

/* NOVEL series */
.text-series-row {
  min-height: 150px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 52px minmax(220px, .85fr) minmax(0, 1.5fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  border-bottom: 1px solid rgba(243, 240, 232, .2);
}

.text-series-no {
  padding-top: 4px;
  color: #77736d;
  font-family: var(--sans-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
}

.text-series-copy p {
  margin: 0 0 8px;
  color: #77736d;
  font-family: var(--sans-en);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .12em;
}

.text-series-copy h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.text-chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.text-chapter-link {
  min-width: 38px;
  min-height: 38px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 240, 232, .32);
  font-family: var(--sans-en);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .05em;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.text-chapter-link:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-2px);
}

/* POEM list */
.text-static-poem {
  border-top: 1px solid transparent;
}

.text-poem-row {
  min-height: 94px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid rgba(243, 240, 232, .2);
  transition: padding .2s ease, background .2s ease, color .2s ease;
}

.text-poem-no {
  color: #77736d;
  font-family: var(--sans-en);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
}

.text-poem-title {
  font-size: clamp(19px, 2.2vw, 31px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.text-poem-arrow {
  font-family: var(--sans-en);
  font-size: 20px;
}

.text-poem-row:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: var(--acid);
  color: var(--ink);
}

.text-poem-row:hover .text-poem-no {
  color: var(--ink);
}

@media (max-width: 820px) {
  .text-series-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .text-chapter-links {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .text-archive-stats {
    gap: 22px;
  }

  .text-archive-stats > div {
    min-width: 42%;
  }

  .text-series-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0 30px;
  }

  .text-series-copy h3 {
    font-size: 21px;
  }

  .text-chapter-link {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 8px;
  }

  .text-poem-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .text-poem-title {
    font-size: 18px;
  }
}
