/* Kalypse - homepage and news (Ink & Gold). Loads after ink.css, before ink-lux.css. */

/* ---------- first screen ---------- */
.hx { position: relative; min-height: 820px; padding-top: 92px; overflow: hidden; }
.hx-ghost {
  position: absolute; left: -90px; top: 40px;
  font-family: var(--brush); font-size: 680px; line-height: 1;
  color: rgba(18, 16, 14, .055); pointer-events: none; user-select: none;
}
.hx-art {
  position: absolute; right: -70px; top: 70px;
  width: min(900px, 64vw); height: 680px;
  background: url("/assets/img/wallpapers/char_mounted.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(.9) sepia(.08);
  -webkit-mask-image: radial-gradient(72% 68% at 56% 48%, #000 58%, transparent 100%);
  mask-image: radial-gradient(72% 68% at 56% 48%, #000 58%, transparent 100%);
  animation: hx-in 1.6s cubic-bezier(.2, .65, .25, 1) both;
}
@keyframes hx-in { from { opacity: 0; transform: translateX(24px); filter: blur(6px) contrast(1.05); } to { opacity: 1; transform: none; } }
.hx-cal { position: absolute; right: 120px; top: 150px; display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 1; }
.hx-cal span { writing-mode: vertical-rl; font-family: var(--brush); font-size: 54px; line-height: 1.05; letter-spacing: .06em; color: var(--ink); }
.hx-cal .seal { --s: 2.9rem; font-style: normal; }
.hx-in { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 90px; }
.hx-in > * { max-width: 600px; }
.hx h1 { margin-top: 1.6rem; font-size: clamp(5rem, 11vw, 10rem); line-height: .86; }
.hx-sub { margin-top: 1rem; font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--ink-soft); }
.hx-rule { width: 120px; margin: 2rem 0; border: 0; height: 1px; background: var(--gold); }
.hx-lede { font-family: var(--display); font-size: 1.4rem; line-height: 1.6; color: #3C362E; max-width: 32rem; }
.hx-act { display: flex; flex-wrap: wrap; align-items: center; gap: 2.2rem; margin-top: 2.4rem; }

/* ---------- newest news line ---------- */
.hx-news {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  text-decoration: none; position: relative; z-index: 2;
}
.hx-news i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.hx-news .k { font-family: var(--ui); font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.hx-news .k:first-child { color: var(--cinnabar); }
.hx-news .t { font-family: var(--display); font-style: italic; font-size: 1.45rem; }
.hx-news .d { font-family: var(--ui); font-size: .8rem; color: var(--wash-text); }
.hx-news:hover .t { color: var(--cinnabar); }

/* ---------- ledger: the world right now ---------- */
.ledger-sec { margin-top: 64px; position: relative; z-index: 2; }
.ledger {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(234, 227, 212, .72);
  box-shadow: 0 0 0 1px var(--gold-line), 0 30px 60px -40px rgba(18, 16, 14, .6);
  outline: 1px solid rgba(18, 16, 14, .16); outline-offset: -8px;
}
.cell { display: flex; flex-direction: column; gap: .45rem; padding: 1.9rem 1.7rem 1.75rem; min-width: 0; text-decoration: none; color: var(--ink); transition: background-color .3s; }
.cell + .cell { border-left: 1px solid rgba(18, 16, 14, .14); }
a.cell:hover { background: rgba(242, 236, 224, .9); }
.cell .num { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--gold); }
.cell .lab { font-family: var(--ui); font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--wash-text); }
.cell .v { font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .v--feed { white-space: normal; font-size: 1.15rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cell .s { font-family: var(--ui); font-size: .8rem; color: var(--wash-text); }
.cell .s b { color: var(--cinnabar); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- where to go ---------- */
.go-sec { margin-top: 150px; }
.ctr-head { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; margin-bottom: 64px; }
.ctr-head h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; line-height: 1; }
.go-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.go {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  min-height: 260px; padding: 2.4rem 2.25rem 2.1rem;
  background: rgba(236, 229, 215, .62);
  box-shadow: 0 0 0 1px rgba(18, 16, 14, .16);
  text-decoration: none; color: var(--ink);
  transition: transform .45s cubic-bezier(.2, .65, .25, 1), box-shadow .45s, background-color .45s;
}
.go::before { content: ""; position: absolute; inset: 7px; border: 1px solid transparent; transition: border-color .45s; pointer-events: none; }
.go:hover { transform: translateY(-4px); background: rgba(242, 236, 224, .92); box-shadow: 0 0 0 1px var(--gold-line), 0 34px 60px -36px rgba(18, 16, 14, .55); }
.go:hover::before { border-color: rgba(168, 130, 62, .45); }
.go .pg { position: absolute; right: 24px; top: 14px; font-family: var(--brush); font-size: 96px; line-height: 1; color: rgba(18, 16, 14, .06); }
.go .seal { --s: 2.2rem; }
.go h3 { margin-top: .4rem; font-size: 2rem; }
.go p { font-family: var(--ui); font-size: .92rem; line-height: 1.7; color: var(--wash-text); max-width: 20rem; }
.go .more { margin-top: auto; font-family: var(--ui); font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--cinnabar); }
.go .more::after { content: " \2192"; }

/* market strip */
.mk { margin-top: 56px; }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.mk-list li {
  display: grid; grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 1.2rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid rgba(18, 16, 14, .14);
}
.mk-list li:first-child { border-top: 1px solid var(--gold-line); }
.mk-list .g { font-family: var(--brush); font-size: 2rem; color: var(--cinnabar); text-align: center; }
.mk-list .nm { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.mk-list .jb, .mk-list .pr { font-family: var(--ui); font-size: .85rem; color: var(--wash-text); }
.mk-list .pr { color: var(--ink); font-weight: 600; }
.mk-list .btn { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .68rem; }

/* ---------- night band ---------- */
.night { position: relative; z-index: 91; margin-top: 160px; padding: 120px 0 130px; background: var(--night); color: var(--night-text); overflow: hidden; }
.night-ghost { position: absolute; right: -60px; top: -40px; font-family: var(--brush); font-size: 460px; line-height: 1; color: rgba(237, 227, 209, .035); pointer-events: none; }
.night-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 90px; }
.night .eyebrow { color: var(--gold-hi); }
.night h2 { margin: .8rem 0 1.8rem; font-size: clamp(2.4rem, 4vw, 3.3rem); font-weight: 500; color: #F3E9D8; }
.night-rule { height: 1px; background: rgba(201, 165, 94, .45); }
.feed li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.2rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid rgba(237, 227, 209, .1); }
.feed time { font-family: var(--ui); font-size: .75rem; color: rgba(237, 227, 209, .45); }
.feed span { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; color: rgba(237, 227, 209, .9); }
.feed span b, .feed span strong { color: #F3E9D8; font-weight: 600; }
.feed a { color: var(--gold-hi); }
.feed-empty { padding-top: 1.4rem; font-family: var(--display); font-size: 1.3rem; color: rgba(237, 227, 209, .6); max-width: 30rem; }
.five li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(237, 227, 209, .1); }
.five .n { font-family: var(--brush); font-size: 1.9rem; color: var(--gold-hi); text-align: center; }
.five .w { display: flex; flex-direction: column; min-width: 0; }
.five b { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: #F3E9D8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.five small { font-family: var(--ui); font-size: .75rem; color: rgba(237, 227, 209, .5); letter-spacing: .03em; }
.five .l { font-family: var(--ui); font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--gold-hi); }
.night-more { display: inline-block; margin-top: 1.6rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(201, 165, 94, .6); font-family: var(--ui); font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); text-decoration: none; }
.night-more:hover { color: #fff; }

/* ---------- the world ---------- */
.world-sec { margin-top: 150px; }
.world { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.world-art {
  min-height: 520px;
  background: url("/assets/img/wallpapers/char01.jpg") 26% 30% / cover no-repeat;
  mix-blend-mode: multiply; filter: sepia(.18) contrast(1.03);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 42% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 70% at 42% 50%, #000 52%, transparent 100%);
}
.world-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .2rem; padding: 60px 0 60px 40px; }
.world-copy h2 { margin-top: 1rem; font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; line-height: 1.02; }
.world-copy .hx-rule { margin: 1.6rem 0; }
.world-copy p { font-family: var(--display); font-size: 1.3rem; line-height: 1.65; color: #3C362E; margin-bottom: 1.6rem; }
.road { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px; margin-top: 70px; padding: 0 6px; }
.road::before { content: ""; position: absolute; left: 28px; right: 28px; top: 22px; height: 1px; background: linear-gradient(90deg, rgba(168, 130, 62, .2), var(--gold) 12%, var(--gold) 88%, rgba(168, 130, 62, .2)); }
.road li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
.road .lv {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-hi); font-family: var(--ui); font-size: .8rem; font-weight: 600;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--paper), 0 0 0 6px rgba(168, 130, 62, .35);
}
.road .hot .lv { background: var(--cinnabar); color: #F3E9D8; box-shadow: 0 0 0 1px var(--cinnabar), 0 0 0 5px var(--paper), 0 0 0 6px rgba(163, 32, 26, .4); }
.road b { margin-top: .9rem; font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.15; }
.road small { font-family: var(--ui); font-size: .75rem; color: var(--wash-text); }

/* ---------- claim it ---------- */
.claim { position: relative; z-index: 91; margin-top: 170px; padding: 140px 0 130px; background: var(--night); color: var(--night-text); text-align: center; overflow: hidden; }
.claim-ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--brush); font-size: 640px; line-height: 1; color: rgba(201, 165, 94, .05); pointer-events: none; }
.claim-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.claim .eyebrow { color: var(--gold-hi); }
.claim h2 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 500; line-height: .98; color: #F3E9D8; }
.claim p { font-family: var(--ui); font-size: .95rem; line-height: 1.75; color: rgba(237, 227, 209, .65); max-width: 32rem; }
.claim-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.2rem; margin-top: .6rem; }
.claim .btn--line { color: var(--night-text); border-color: var(--gold-hi); }
.claim .btn--line:hover { color: #fff; border-color: #fff; }
.home .site-foot::before { display: none; }

/* ---------- news page ---------- */
.nw-list { padding-top: 40px; }
.nw-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 44px 0; border-top: 1px solid var(--gold-line); }
.nw-item:last-child { border-bottom: 1px solid var(--gold-line); }
.nw-when { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.nw-when time { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); }
.nw-new { font-family: var(--ui); font-size: .65rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #F3E9D8; background: var(--cinnabar); padding: .35rem .6rem; }
.nw-body h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; }
.nw-body p { margin-top: .9rem; font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); max-width: 44rem; }
.nw-body ul { margin-top: 1.1rem; display: grid; gap: .55rem; max-width: 44rem; }
.nw-body li { position: relative; padding-left: 1.4rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); }
.nw-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .hx-cal { display: none; }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell:nth-child(4) { border-left: 0; }
  .cell:nth-child(n+4) { border-top: 1px solid rgba(18, 16, 14, .14); }
  .road { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; }
  .road::before { display: none; }
}
@media (max-width: 900px) {
  .hx { min-height: 0; }
  .hx-art { position: relative; right: auto; top: auto; width: 112vw; height: 70vw; margin: 0 0 -2vw -6vw; }
  .hx-in { padding-top: 0; }
  .hx-ghost { font-size: 110vw; }
  .go-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .world { grid-template-columns: minmax(0, 1fr); }
  .world-art { min-height: 340px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .world-copy { padding: 0; }
  .mk-list li { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .mk-list .jb { display: none; }
  .mk-list .btn { grid-column: 2 / -1; justify-self: start; }
  .nw-item { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .cell + .cell { border-left: 0; border-top: 1px solid rgba(18, 16, 14, .14); }
  .go-grid { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-news .d, .hx-news i { display: none; }
  .night, .claim { padding: 90px 0; }
  .go-sec, .world-sec { margin-top: 100px; }
}
@media (prefers-reduced-motion: reduce) { .hx-art { animation: none; } }
