/* ============================================================
   .TEAM. — a living OC world atlas
   Palette borrowed from the concentric bloom artwork:
   acid lime / ultraviolet / hot pink / cobalt / cyan
   ============================================================ */

@font-face {
  font-family: "Lemi Baokan Song";
  src: url("assets/fonts/LemiBaokanSong.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --acid: #DFF954;
  --violet: #C200FF;
  --pink: #FF0078;
  --cyan: #00C6EB;
  --blue: #0600C4;
  --ink: #131313;
  --night: #080618;
  --paper: #FFF9E9;
  --paper-deep: #F3EDD9;
  --muted: #77776A;
  --line: rgba(19, 19, 19, 0.18);

  --page-pad: clamp(20px, 4.6vw, 72px);
  --display: "Lemi Baokan Song", "Songti SC", "SimSun", serif;
  --sans: "Lemi Baokan Song", "Songti SC", "SimSun", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Lemi Baokan Song", "Songti SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--acid);
  scrollbar-color: var(--acid) var(--night);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--night);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--night);
  border-radius: 999px;
  background: var(--acid);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pink);
}

body {
  margin: 0;
  min-width: 300px;
  overflow-x: hidden;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--pink);
  color: var(--paper);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
ul {
  margin-top: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.hero a:focus-visible,
.hero button:focus-visible,
.index-section a:focus-visible,
.index-section button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-header:not(.is-solid) a:focus-visible,
.site-header:not(.is-solid) button:focus-visible {
  outline-color: var(--acid);
}

.entry-hero a:focus-visible {
  outline-color: var(--on-accent);
}

.portal a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

::placeholder {
  color: #8a8a7b;
  opacity: 1;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 1540px;
  margin-inline: auto;
}

#app {
  min-height: 80vh;
}

#app:focus {
  outline: none;
}

#app.is-entering {
  animation: routeIn 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes routeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Shared type + buttons
   ============================================================ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--blue);
}

.eyebrow--light {
  color: var(--acid);
}

.eyebrow--light span {
  color: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--acid {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
}

.btn--dark:hover {
  background: var(--blue);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--paper-deep);
  transform: translate(0, 0);
  box-shadow: none;
}

.btn--wide {
  width: 100%;
  min-height: 54px;
  padding-inline: 18px;
}

.text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  padding-bottom: 3px;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
}

.text-arrow span {
  transition: transform 0.2s ease;
}

.text-arrow:hover span {
  transform: translate(3px, -3px);
}

.text-arrow--light {
  color: var(--acid);
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  padding: 0 0 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.pink-dot {
  color: var(--pink);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
  height: 88px;
  padding: 0 var(--page-pad);
  color: var(--paper);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    height 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -76px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 2, 28, 0.74) 0%,
    rgba(4, 2, 28, 0.3) 42%,
    rgba(4, 2, 28, 0) 100%
  );
  transition: opacity 0.25s ease;
}

.site-header.is-solid {
  height: 76px;
  background: var(--acid);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.site-header.is-solid::before {
  opacity: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.brand-star {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--pink);
  font-size: 15px;
  line-height: 1;
  transition: transform 0.35s ease;
}

.brand:hover .brand-star {
  transform: rotate(90deg) scale(1.15);
}

.brand-word {
  color: var(--acid);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  transition: color 0.28s ease;
}

.site-header.is-solid .brand-word {
  color: var(--ink);
}

.brand-sub {
  max-width: 76px;
  margin-left: 5px;
  padding-left: 8px;
  border-left: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  opacity: 0.6;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.8vw, 28px);
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  opacity: 0.73;
  transition: opacity 0.2s ease;
}

.nav-en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  opacity: 0.62;
  white-space: nowrap;
}

.nav-cn {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  margin-left: 4px;
}

.search-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.search-link:hover {
  opacity: 1;
}

.search-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.add-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--pink);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.site-header.is-solid .add-button {
  background: var(--blue);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.add-button:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--pink);
}

.site-header.is-solid .add-button:hover {
  box-shadow: 2px 2px 0 var(--ink);
}

.menu-button {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.menu-button.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 76px 0 0;
  z-index: 290;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px var(--page-pad) 44px;
  overflow-y: auto;
  background: var(--acid);
  color: var(--ink);
  border-top: 2px solid var(--ink);
}

.mobile-menu::after {
  content: "✦";
  position: absolute;
  right: -25px;
  bottom: -68px;
  z-index: 0;
  color: var(--pink);
  font-size: 280px;
  line-height: 1;
  opacity: 0.13;
  pointer-events: none;
  transform: rotate(11deg);
}

.mobile-menu > * {
  position: relative;
  z-index: 1;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(19, 19, 19, 0.25);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.mobile-menu nav a span {
  width: 28px;
  flex: 0 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.mobile-menu nav a em {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.6;
  text-transform: uppercase;
}

.mobile-menu > .btn {
  align-self: flex-start;
  min-height: 48px;
}

.mobile-menu > p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

/* ============================================================
   Home / hero + map
   ============================================================ */
.hero {
  position: relative;
  background: var(--blue);
  isolation: isolate;
}

.map-stage {
  --reveal-x: 50%;
  --reveal-y: 50%;
  --reveal-r: 0px;
  position: relative;
  min-height: clamp(700px, 100svh, 1000px);
  overflow: hidden;
  background: var(--blue);
  isolation: isolate;
}

.map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  user-select: none;
}

.map-img--fog {
  z-index: 0;
  filter: blur(15px) saturate(0.9) brightness(0.88) contrast(1.01);
  transform: scale(1.045);
}

.map-img--clear {
  z-index: 2;
  opacity: 0;
  filter: saturate(1.08) contrast(1.03) brightness(1.03);
  -webkit-mask-image: radial-gradient(
    circle var(--reveal-r) at var(--reveal-x) var(--reveal-y),
    #000 0%,
    #000 57%,
    rgba(0, 0, 0, 0.72) 70%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--reveal-r) at var(--reveal-x) var(--reveal-y),
    #000 0%,
    #000 57%,
    rgba(0, 0, 0, 0.72) 70%,
    transparent 100%
  );
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.map-stage.is-revealing .map-img--clear {
  opacity: 1;
}

.map-mist {
  position: absolute;
  z-index: 3;
  width: 54%;
  aspect-ratio: 1.4;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(44px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.map-mist--one {
  top: 3%;
  left: -10%;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(213, 240, 241, 0.4), transparent 62%),
    radial-gradient(ellipse at 60% 40%, rgba(162, 211, 224, 0.26), transparent 60%);
  animation: mistDriftOne 20s ease-in-out infinite alternate;
}

.map-mist--two {
  right: -8%;
  bottom: 8%;
  width: 46%;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 249, 233, 0.23), transparent 62%),
    radial-gradient(ellipse at 40% 40%, rgba(0, 198, 235, 0.18), transparent 65%);
  animation: mistDriftTwo 24s ease-in-out infinite alternate;
}

@keyframes mistDriftOne {
  to {
    transform: translate(7%, 4%) scale(1.08);
  }
}

@keyframes mistDriftTwo {
  to {
    transform: translate(-6%, -4%) scale(1.05);
  }
}

.map-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.17;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.map-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(4, 2, 26, 0.64) 0%,
      rgba(4, 2, 26, 0.12) 25%,
      rgba(4, 2, 26, 0) 48%,
      rgba(4, 2, 26, 0.36) 74%,
      rgba(4, 2, 26, 0.78) 100%
    ),
    radial-gradient(ellipse at 72% 38%, transparent 18%, rgba(4, 2, 26, 0.17) 100%);
}

.map-lens {
  position: absolute;
  top: var(--reveal-y);
  left: var(--reveal-x);
  z-index: 7;
  width: calc(var(--reveal-r) * 2);
  height: calc(var(--reveal-r) * 2);
  border: 1px dashed rgba(255, 249, 233, 0.48);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.035);
}

.map-lens::before,
.map-lens::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 249, 233, 0.6);
  transform: translate(-50%, -50%);
}

.map-lens::before {
  width: 8px;
  height: 1px;
}

.map-lens::after {
  width: 1px;
  height: 8px;
}

.map-stage.is-revealing .map-lens {
  opacity: 1;
}

.map-coordinate {
  position: absolute;
  top: clamp(120px, 16vh, 175px);
  right: var(--page-pad);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: rgba(255, 249, 233, 0.72);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  line-height: 1.55;
  text-align: right;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.map-coordinate span {
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(223, 249, 84, 0.48);
  color: var(--acid);
}

.map-coordinate strong {
  font-weight: 500;
}

.map-pins {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  width: 34px;
  height: 34px;
  color: var(--paper);
  text-decoration: none;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.map-pin__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(223, 249, 84, 0.2);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.map-pin__halo {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(223, 249, 84, 0.7);
  border-radius: 50%;
  animation: pinPulse 2.8s ease-out infinite;
}

.map-pin:nth-child(2) .map-pin__halo {
  animation-delay: 1.2s;
}

.map-pin:nth-child(3) .map-pin__halo {
  animation-delay: 0.6s;
}

@keyframes pinPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.4);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.map-pin__label {
  position: absolute;
  top: 50%;
  left: 23px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(19, 19, 19, 0.9);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.map-pin__label em {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-pin__label strong {
  font-size: 11px;
  font-weight: 800;
}

.map-pin:hover .map-pin__label,
.map-pin:focus-visible .map-pin__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.map-pin:hover .map-pin__dot {
  background: var(--pink);
  transform: translate(-50%, -50%) scale(1.3);
}

.map-pin:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: clamp(700px, 100svh, 1000px);
  padding-top: clamp(120px, 15vh, 162px);
  padding-bottom: 24px;
  pointer-events: none;
}

.hero a,
.hero button,
.hero .mist-card {
  pointer-events: auto;
}

.hero-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-edition {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 249, 233, 0.68);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-edition span {
  color: var(--acid);
}

.hero-edition--right {
  color: rgba(255, 249, 233, 0.5);
}

.hero-copy {
  margin-top: auto;
  padding-top: 36px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(223, 249, 84, 0.42);
  background: rgba(6, 0, 196, 0.42);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
  backdrop-filter: blur(9px);
}

.hero-kicker span {
  color: var(--pink);
}

.hero-kicker i {
  color: rgba(255, 249, 233, 0.6);
  font-style: normal;
}

.hero-title {
  margin: 0 0 20px -0.085em;
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(5.4rem, 15.8vw, 15.5rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.76;
  text-shadow:
    6px 6px 0 var(--blue),
    12px 12px 0 var(--pink);
}

.hero-title .dot {
  color: var(--pink);
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: end;
  gap: clamp(30px, 5vw, 74px);
}

.hero-lede-wrap {
  max-width: 660px;
}

.hero-lede {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.hero-lede em {
  color: var(--acid);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.hero-desc {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 249, 233, 0.74);
  font-size: 13px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(255, 249, 233, 0.74);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.hero-scroll__line {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: rgba(255, 249, 233, 0.55);
  transition: width 0.25s ease;
}

.hero-scroll:hover .hero-scroll__line {
  width: 52px;
  background: var(--acid);
}

.mist-card {
  position: relative;
  width: 292px;
  justify-self: end;
  padding: 16px 17px 14px;
  border: 2px solid var(--ink);
  background: rgba(255, 249, 233, 0.95);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(255, 0, 120, 0.88);
  transform: rotate(1.3deg);
  transition: transform 0.25s ease;
  backdrop-filter: blur(6px);
}

.mist-card:hover {
  transform: rotate(0deg) translateY(-3px);
}

.mist-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 28px;
  width: 72px;
  height: 19px;
  border: 1.5px solid var(--ink);
  background: var(--acid);
  opacity: 0.92;
  transform: rotate(-4deg);
}

.mist-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(19, 19, 19, 0.24);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.mist-card__main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.mist-reticle {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.mist-reticle::before,
.mist-reticle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.mist-reticle::before {
  width: 7px;
  height: 1px;
}

.mist-reticle::after {
  width: 1px;
  height: 7px;
}

.mist-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.mist-touch {
  display: none;
}

@media (hover: none) {
  .mist-desktop {
    display: none;
  }

  .mist-touch {
    display: inline;
  }
}

.mist-card__en {
  margin: 7px 0 11px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mist-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(19, 19, 19, 0.24);
}

.mist-stats div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.mist-stats strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mist-stats span {
  color: #626257;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 249, 233, 0.28);
  color: rgba(255, 249, 233, 0.65);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.map-caption__mid {
  color: rgba(223, 249, 84, 0.82);
  text-align: center;
}

/* ============================================================
   Ticker
   ============================================================ */
.ticker {
  position: relative;
  z-index: 12;
  overflow: hidden;
  padding: 11px 0 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--acid);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerMove 38s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.ticker__group span {
  padding: 0 27px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}

.ticker__group b {
  color: var(--pink);
  font-size: 14px;
  line-height: 1;
}

@keyframes tickerMove {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   Index / four portal cards
   ============================================================ */
.index-section {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 10vw, 148px) 0 clamp(66px, 8vw, 104px);
  background-color: var(--night);
  background-image:
    radial-gradient(1.1px 1.1px at 22px 35px, rgba(255, 249, 233, 0.78) 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 104px 86px, rgba(255, 249, 233, 0.52) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 176px 31px, rgba(0, 198, 235, 0.45) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 268px 124px, rgba(255, 0, 120, 0.5) 50%, transparent 51%);
  background-size: 310px 270px, 190px 210px, 330px 340px, 260px 230px;
  color: var(--paper);
  isolation: isolate;
}

.index-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(194, 0, 255, 0.2), transparent 36%),
    radial-gradient(ellipse at 4% 75%, rgba(6, 0, 196, 0.28), transparent 35%),
    linear-gradient(180deg, transparent 66%, rgba(223, 249, 84, 0.04) 100%);
}

.index-shell {
  position: relative;
  z-index: 3;
}

.index-bloom {
  position: absolute;
  top: -90px;
  right: -130px;
  z-index: 1;
  width: min(42vw, 550px);
  pointer-events: none;
  opacity: 0.9;
  transform: rotate(-14deg);
}

.index-bloom .bloom-svg {
  width: 100%;
  height: auto;
}

.index-spark {
  position: absolute;
  z-index: 2;
  color: var(--acid);
  line-height: 1;
  pointer-events: none;
  animation: twinkle 4.2s ease-in-out infinite alternate;
}

.index-spark--one {
  top: 42%;
  left: 3%;
  font-size: 42px;
  transform: rotate(12deg);
}

.index-spark--two {
  right: 6%;
  bottom: 11%;
  color: var(--pink);
  font-size: 27px;
  animation-delay: 1.4s;
}

@keyframes twinkle {
  0% {
    opacity: 0.45;
    transform: rotate(8deg) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: rotate(20deg) scale(1.04);
  }
}

.section-head {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(36px, 6vw, 90px);
  margin-bottom: clamp(48px, 6.5vw, 88px);
}

.section-heading h2 {
  max-width: 1000px;
  margin: 16px 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.7vw, 7.7rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.section-heading h2 em {
  position: relative;
  display: inline-block;
  color: var(--acid);
  font-style: normal;
  transform: rotate(-1.2deg);
}

.section-heading h2 em::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -3px;
  left: 2px;
  height: 8px;
  background: var(--pink);
  clip-path: polygon(0 35%, 100% 0, 98% 70%, 1% 100%);
}

.section-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: end;
  justify-self: end;
  gap: 16px;
  width: 100%;
  max-width: 366px;
  padding: 22px 21px 19px;
  border: 1px solid rgba(223, 249, 84, 0.27);
  background: rgba(7, 5, 26, 0.9);
  box-shadow: 6px 6px 0 rgba(255, 0, 120, 0.48);
  backdrop-filter: blur(8px);
}

.section-side::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 26px;
  width: 71px;
  height: 18px;
  border: 1.5px solid var(--ink);
  background: var(--acid);
  opacity: 0.96;
  transform: rotate(-3deg);
}

.section-side p {
  max-width: 100%;
  margin: 0;
  color: rgba(255, 249, 233, 0.74);
  font-size: 13px;
  line-height: 1.85;
}

.seal {
  position: absolute;
  top: -76px;
  right: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 86px;
  height: 86px;
  border: 1px dashed rgba(223, 249, 84, 0.8);
  border-radius: 50%;
  background: rgba(7, 5, 26, 0.95);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(9deg);
}

.seal b {
  color: var(--pink);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
}

.section-side .text-arrow {
  flex: 0 0 auto;
}

.portal-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 3.5vw, 54px);
}

.portal {
  --tilt: 0deg;
  --dy: 0px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(25px, 3vw, 43px);
  border: 3px solid var(--ink);
  border-radius: 27px 8px 31px 10px / 10px 29px 8px 25px;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--on-accent);
  box-shadow: 10px 12px 0 var(--ink);
  transform: rotate(var(--tilt)) translateY(var(--dy));
  transition:
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.32s ease;
  scroll-margin-top: 110px;
  isolation: isolate;
}

.portal:nth-child(1) {
  --tilt: -1.15deg;
  --dy: 8px;
}

.portal:nth-child(2) {
  --tilt: 1.2deg;
  --dy: 42px;
}

.portal:nth-child(3) {
  --tilt: 0.9deg;
  --dy: -10px;
}

.portal:nth-child(4) {
  --tilt: -1.45deg;
  --dy: 22px;
}

.portal:hover,
.portal:focus-within {
  z-index: 5;
  transform: rotate(0deg) translateY(calc(var(--dy) - 8px));
  box-shadow: 15px 18px 0 var(--ink);
}

.portal::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -35%;
  z-index: 0;
  width: 80%;
  aspect-ratio: 1;
  border: 2px dashed currentColor;
  border-radius: 50%;
  opacity: 0.17;
  pointer-events: none;
}

.portal::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -48px;
  z-index: 0;
  width: 160px;
  height: 160px;
  border: 18px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.portal-tape {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  display: block;
  width: 108px;
  height: 21px;
  border: 1.5px solid var(--ink);
  background: var(--tape);
  opacity: 0.94;
  transform: translateX(-50%) rotate(-3deg);
  clip-path: polygon(1% 7%, 99% 0, 98% 92%, 2% 100%);
  pointer-events: none;
}

.portal-spark {
  position: absolute;
  top: 38%;
  right: -8px;
  z-index: 0;
  color: currentColor;
  font-size: 128px;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(12deg);
}

.portal-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-top: 13px;
}

.portal-index {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}

.portal-title {
  min-width: 0;
}

.portal-title p {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  opacity: 0.7;
  text-transform: uppercase;
}

.portal-title h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 6.8vw, 6.3rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.portal-ornament {
  margin-left: auto;
  font-size: 28px;
  line-height: 1;
  opacity: 0.8;
  transform: rotate(14deg);
}

.portal-blurb {
  position: relative;
  z-index: 2;
  max-width: 92%;
  margin: 24px 0 0;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 650;
  line-height: 1.8;
}

.portal-blurb-en {
  position: relative;
  z-index: 2;
  max-width: 92%;
  margin: 8px 0 23px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.045em;
  line-height: 1.7;
  opacity: 0.62;
  text-transform: uppercase;
}

.portal-entries {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid currentColor;
  list-style: none;
}

.portal-entries li {
  border-bottom: 1px solid currentColor;
  border-bottom-color: color-mix(in srgb, currentColor 32%, transparent);
}

.portal-empty {
  padding: 18px 0;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.8;
}

.portal-entries a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  transition: padding 0.22s ease, background-color 0.22s ease;
}

.portal-entries a:hover {
  padding-left: 7px;
  padding-right: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-entry-no {
  flex: 0 0 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.58;
}

.portal-entry-name {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.portal-entry-name strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-entry-name em {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.4;
  opacity: 0.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-entry-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  transform: translate(-3px, 3px);
  transition: transform 0.2s ease;
}

.portal-entries a:hover .portal-entry-arrow {
  transform: translate(1px, -1px);
}

.portal-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 21px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.055em;
  line-height: 1.5;
  text-transform: uppercase;
}

.portal-foot a {
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  text-decoration: none;
}

.portal-watermark {
  position: absolute;
  right: -0.02em;
  bottom: -0.16em;
  z-index: 0;
  color: currentColor;
  font-family: var(--display);
  font-size: clamp(5.5rem, 10vw, 10.5rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.8;
  opacity: 0.055;
  pointer-events: none;
  white-space: nowrap;
}

.index-close {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 92px);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 249, 233, 0.22);
  color: rgba(255, 249, 233, 0.52);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.index-close__mid {
  color: rgba(255, 0, 120, 0.78);
  text-align: center;
}

.add-text-button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

/* ============================================================
   Open call
   ============================================================ */
.open-call {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 130px) 0;
  border-bottom: 3px solid var(--ink);
  background: var(--acid);
  isolation: isolate;
}

.open-call__bloom {
  position: absolute;
  right: -145px;
  bottom: -190px;
  z-index: 0;
  width: min(33vw, 460px);
  opacity: 0.78;
  transform: rotate(-18deg);
  pointer-events: none;
}

.open-call__bloom .bloom-svg {
  width: 100%;
  height: auto;
}

.open-call__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.63fr);
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
}

.open-call__copy {
  position: relative;
  z-index: 2;
}

.open-call__copy h2 {
  margin: 19px 0 24px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3rem, 6.3vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.open-call__copy h2 em {
  display: inline-block;
  color: var(--pink);
  font-style: normal;
  transform: rotate(-1deg);
}

.open-call__copy > p {
  max-width: 565px;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

.open-call__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}

.open-call__meta span {
  padding: 7px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 249, 233, 0.38);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.open-call__ticket {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: clamp(24px, 3vw, 36px);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--pink);
  transform: rotate(1.1deg);
}

.open-call__tape {
  position: absolute;
  top: -16px;
  left: 28px;
  padding: 6px 13px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.ticket-kicker {
  margin: 13px 0 0;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ticket-title {
  margin: 14px 0 14px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.ticket-note {
  margin: 0;
  color: #45453b;
  font-size: 11px;
  line-height: 1.8;
}

.ticket-note code {
  padding: 1px 4px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
}

.open-call__ticket .btn {
  margin-top: 22px;
  box-shadow: 4px 4px 0 var(--pink);
}

.ticket-link {
  display: inline-block;
  margin-top: 17px;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

.ticket-local {
  margin: 19px 0 0;
  color: #7e7e71;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.open-call__stamp {
  position: absolute;
  top: 3%;
  right: 3%;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  color: var(--pink);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 0.88;
  text-align: center;
  opacity: 0.78;
  transform: rotate(11deg);
  pointer-events: none;
}

/* ============================================================
   Archive
   ============================================================ */
.archive-head {
  position: relative;
  overflow: hidden;
  padding: clamp(124px, 15vh, 180px) 0 clamp(44px, 6vw, 70px);
  border-bottom: 3px solid var(--ink);
  background: var(--acid);
  isolation: isolate;
}

.archive-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(19, 19, 19, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 19, 19, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
  pointer-events: none;
}

.archive-bloom {
  position: absolute;
  top: 36px;
  right: -88px;
  z-index: 1;
  width: min(28vw, 400px);
  opacity: 0.9;
  transform: rotate(8deg);
  pointer-events: none;
}

.archive-bloom .bloom-svg {
  width: 100%;
  height: auto;
}

.archive-head__inner {
  position: relative;
  z-index: 3;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 31px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  opacity: 0.76;
  text-transform: uppercase;
}

.breadcrumbs a {
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.breadcrumbs a:hover {
  opacity: 0.7;
}

.breadcrumbs--ink {
  color: var(--ink);
}

.archive-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.archive-title-row h1 {
  margin: 10px 0 22px;
  font-family: var(--display);
  font-size: clamp(4.5rem, 11vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.77;
}

.archive-lede {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.8;
}

.archive-stamp {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 150px;
  height: 150px;
  margin-right: 3vw;
  margin-bottom: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--pink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(8deg);
}

.archive-stamp::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(19, 19, 19, 0.36);
  border-radius: 50%;
  pointer-events: none;
}

.archive-stamp strong {
  color: var(--pink);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.1;
}

.archive-controls {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(270px, 1.2fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 55px);
}

.archive-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--violet);
}

.archive-search svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--acid);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.archive-search input {
  width: 100%;
  min-width: 0;
  padding: 18px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.archive-search input::placeholder {
  color: rgba(255, 249, 233, 0.52);
}

.archive-search__key {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 249, 233, 0.35);
  border-radius: 3px;
  color: rgba(255, 249, 233, 0.62);
  font-family: var(--mono);
  font-size: 12px;
}

.archive-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.filter-chip sup {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  opacity: 0.62;
}

.filter-chip:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--chip);
  color: var(--chip-ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.archive-add {
  align-self: stretch;
  min-height: 46px;
  padding: 10px 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.archive-add:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.archive-body {
  padding: clamp(38px, 5vw, 68px) 0 clamp(68px, 8vw, 110px);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(19, 19, 19, 0.08) 0.7px, transparent 0.8px);
  background-size: 19px 19px;
}

.archive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.055em;
  line-height: 1.6;
  text-transform: uppercase;
}

.archive-meta p {
  margin: 0;
}

.archive-meta strong {
  display: inline-block;
  margin-right: 3px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.05em;
}

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.mini-action {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: #4d4d43;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.mini-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.mini-action:hover {
  color: var(--blue);
}

.mini-action:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.mini-action.manage-toggle {
  padding: 7px 11px;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.mini-action.manage-toggle:hover {
  background: var(--ink);
  color: var(--acid);
}

.mini-action.manage-toggle.is-active {
  background: var(--ink);
  color: var(--acid);
}

.mini-action.restore-hidden {
  color: var(--pink);
  font-weight: 700;
}

.manage-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: -8px 0 22px;
  padding: 9px 12px;
  border: 1px dashed rgba(19, 19, 19, 0.3);
  background: rgba(223, 249, 84, 0.28);
  color: #4e4e42;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
}

.manage-hint span {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.manage-hint[hidden] {
  display: none !important;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2.3vw, 28px);
}

.archive-card-shell {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.archive-card-shell .archive-card {
  flex: 1;
}

.archive-card-controls {
  display: none;
  gap: 7px;
  padding-top: 8px;
}

.archive-body.is-managing .archive-card-controls {
  display: flex;
}

.archive-control {
  flex: 1;
  min-height: 33px;
  padding: 6px 9px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.archive-control:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.archive-control--danger:hover {
  background: var(--pink);
  color: var(--paper);
}

.archive-control:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.archive-card:hover {
  transform: translate(-3px, -5px) rotate(-0.55deg);
  box-shadow: 10px 12px 0 var(--accent);
}

.archive-card__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
  line-height: 1.5;
  text-transform: uppercase;
}

.archive-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 17px 16px;
}

.archive-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
  color: #66665b;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.archive-card__meta em {
  color: var(--pink);
  font-style: normal;
  font-weight: 700;
}

.archive-card h2 {
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.archive-card__en {
  min-height: 1.2em;
  margin: 0 0 17px;
  color: #66665b;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.025em;
  line-height: 1.5;
  text-transform: uppercase;
}

.archive-card__tagline {
  margin: 0 0 22px;
  color: #32322b;
  font-size: 12px;
  line-height: 1.75;
}

.archive-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #dbd7c6;
}

.archive-card__tags {
  overflow: hidden;
  white-space: nowrap;
}

.archive-card__tags span {
  margin-right: 7px;
  color: #727266;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.archive-card__arrow {
  color: var(--accent-deep);
  font-size: 23px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.archive-card:hover .archive-card__arrow {
  transform: translate(2px, -2px);
}

.archive-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 44px 24px;
  border: 2px dashed var(--ink);
  background: var(--paper);
  text-align: center;
}

.archive-empty > span {
  color: var(--violet);
  font-size: 42px;
  line-height: 1;
}

.archive-empty h2 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.archive-empty p {
  margin: 0 0 23px;
  color: #555549;
  font-size: 13px;
}

.archive-empty > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.archive-footnote {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 50px;
  padding-top: 19px;
  border-top: 1px solid #d2cebc;
  color: #5e5e53;
}

.archive-footnote > span {
  color: var(--pink);
  font-size: 23px;
  line-height: 1;
}

.archive-footnote p {
  max-width: 780px;
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

.archive-footnote code {
  padding: 1px 4px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
}

.archive-footnote a {
  margin-left: auto;
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

/* ============================================================
   Entry detail
   ============================================================ */
.entry-page {
  background: var(--acid);
}

.entry-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 14vh, 162px) 0 clamp(46px, 6vw, 76px);
  border-bottom: 3px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  isolation: isolate;
}

.entry-hero::before,
.entry-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}

.entry-hero::before {
  top: -28vw;
  right: -9vw;
  width: 58vw;
  height: 58vw;
}

.entry-hero::after {
  top: -18vw;
  right: 4vw;
  width: 32vw;
  height: 32vw;
  border-style: dashed;
  opacity: 0.15;
}

/* A blurred, logo-colour current that only appears once an entry has a logo. */
.entry-hero-flow {
  --flow-a: var(--violet);
  --flow-b: var(--pink);
  --flow-c: var(--cyan);
  --flow-d: var(--paper);
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.entry-hero-flow.is-ready {
  opacity: 1;
}

.entry-hero.has-logo-flow .entry-hero__pattern {
  z-index: 1;
  opacity: 0.065;
}

.entry-hero-flow__wash {
  position: absolute;
  top: -14%;
  right: -7%;
  width: 70%;
  height: 128%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.58;
  filter: blur(88px) saturate(1.35) brightness(1.12);
  transform: rotate(-7deg) scale(1.04);
}

.entry-hero-flow__cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.7;
  will-change: transform;
}

.entry-hero-flow__cloud--one {
  top: -28%;
  right: 2%;
  width: 58%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--flow-b) 78%, transparent) 0%,
    transparent 69%
  );
  animation: flowCloudOne 32s ease-in-out infinite alternate;
}

.entry-hero-flow__cloud--two {
  bottom: -38%;
  left: 22%;
  width: 70%;
  height: 88%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--flow-c) 64%, transparent) 0%,
    transparent 70%
  );
  animation: flowCloudTwo 38s ease-in-out infinite alternate;
}

.entry-hero-flow__ribbon {
  position: absolute;
  border-radius: 50%;
  filter: blur(47px);
  opacity: 0.58;
  will-change: transform;
}

.entry-hero-flow__ribbon--one {
  top: 3%;
  left: 27%;
  width: 92%;
  height: 38%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    color-mix(in srgb, var(--flow-a) 82%, transparent) 26%,
    color-mix(in srgb, var(--flow-b) 72%, transparent) 55%,
    transparent 95%
  );
  transform: rotate(-14deg);
  animation: flowRibbonOne 36s ease-in-out infinite alternate;
}

.entry-hero-flow__ribbon--two {
  top: 44%;
  left: -18%;
  width: 98%;
  height: 31%;
  background: linear-gradient(
    88deg,
    transparent 0%,
    color-mix(in srgb, var(--flow-c) 65%, transparent) 24%,
    color-mix(in srgb, var(--flow-d) 58%, transparent) 58%,
    transparent 94%
  );
  transform: rotate(7deg);
  animation: flowRibbonTwo 43s ease-in-out infinite alternate;
}

.entry-hero-flow__ribbon--three {
  bottom: -9%;
  right: -17%;
  width: 73%;
  height: 38%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    color-mix(in srgb, var(--flow-b) 56%, transparent) 39%,
    color-mix(in srgb, var(--flow-d) 42%, transparent) 72%,
    transparent 100%
  );
  transform: rotate(-5deg);
  animation: flowRibbonThree 34s ease-in-out infinite alternate;
}

.entry-hero-flow__strand {
  position: absolute;
  border-radius: 50%;
  opacity: 0.46;
  filter: blur(17px);
  mix-blend-mode: screen;
  will-change: transform;
}

.entry-hero-flow__strand--one {
  top: 17%;
  left: 23%;
  width: 104%;
  height: 8%;
  background: linear-gradient(
    95deg,
    transparent 0%,
    color-mix(in srgb, var(--flow-d) 68%, transparent) 27%,
    color-mix(in srgb, var(--flow-a) 46%, transparent) 60%,
    transparent 94%
  );
  transform: rotate(-13deg);
  animation: flowStrandOne 29s ease-in-out infinite alternate;
}

.entry-hero-flow__strand--two {
  right: -16%;
  bottom: 18%;
  width: 82%;
  height: 5%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--flow-d) 52%, transparent) 43%,
    color-mix(in srgb, var(--flow-b) 46%, transparent) 73%,
    transparent 100%
  );
  opacity: 0.32;
  filter: blur(12px);
  transform: rotate(9deg);
  animation: flowStrandTwo 33s ease-in-out infinite alternate;
}

.entry-hero-flow__grain {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.entry-hero-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--accent) 82%, transparent) 0%,
      color-mix(in srgb, var(--accent) 52%, transparent) 42%,
      transparent 79%
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--accent) 44%, transparent) 0%,
      transparent 48%
    );
  pointer-events: none;
}

.entry-hero.has-logo-flow .entry-logo__button {
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--on-accent) 15%, transparent),
    0 10px 50px color-mix(in srgb, var(--accent) 44%, transparent);
}

@keyframes flowCloudOne {
  to {
    transform: translate3d(-4%, 5%, 0) scale(1.08) rotate(5deg);
  }
}

@keyframes flowCloudTwo {
  to {
    transform: translate3d(5%, -6%, 0) scale(1.06) rotate(-5deg);
  }
}

@keyframes flowRibbonOne {
  to {
    transform: translate3d(3%, 4%, 0) rotate(-10deg) scaleX(1.04);
  }
}

@keyframes flowRibbonTwo {
  to {
    transform: translate3d(-4%, -4%, 0) rotate(10deg) scaleX(1.03);
  }
}

@keyframes flowRibbonThree {
  to {
    transform: translate3d(-3%, -3%, 0) rotate(-8deg) scaleX(1.04);
  }
}

@keyframes flowStrandOne {
  to {
    transform: translate3d(4%, 3%, 0) rotate(-10deg) scaleX(1.03);
  }
}

@keyframes flowStrandTwo {
  to {
    transform: translate3d(-3%, -2%, 0) rotate(12deg) scaleX(1.05);
  }
}

.entry-hero.has-logo-flow .entry-quick-button {
  border-color: color-mix(in srgb, var(--paper) 56%, transparent);
  background: color-mix(in srgb, var(--ink) 64%, transparent);
  color: var(--paper);
  backdrop-filter: blur(9px);
}

.entry-hero.has-logo-flow .entry-quick-button:hover {
  border-color: var(--acid);
  background: var(--ink);
  color: var(--acid);
}

.entry-hero.has-logo-flow .entry-quick-button--danger:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--paper);
}

.entry-hero.has-logo-flow .entry-logo__caption {
  text-shadow: 0 1px 9px color-mix(in srgb, var(--accent) 80%, transparent);
}

.entry-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(currentColor 0.8px, transparent 0.9px),
    linear-gradient(120deg, transparent 49.7%, currentColor 50%, transparent 50.3%);
  background-size: 21px 21px, 100% 100%;
  opacity: 0.11;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.entry-hero__inner {
  position: relative;
  z-index: 2;
}

.entry-hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.entry-hero-nav .breadcrumbs {
  margin-bottom: 0;
}

.entry-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.entry-quick-button {
  min-height: 31px;
  padding: 6px 10px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 249, 233, 0.07);
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.entry-quick-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--acid);
}

.entry-quick-button--danger:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--paper);
}

.entry-quick-button:focus-visible {
  outline-color: var(--on-accent);
}

.entry-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: clamp(30px, 5vw, 70px);
}

.entry-kicker {
  margin: 0 0 21px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  opacity: 0.8;
}

.entry-kicker span {
  color: var(--acid);
  padding: 0 5px;
  text-shadow: 1px 1px 0 rgba(19, 19, 19, 0.32);
}

.entry-heading h1 {
  max-width: 1050px;
  margin: 0 0 23px;
  font-family: var(--display);
  font-size: clamp(4.1rem, 9.8vw, 10.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.entry-heading h1.is-long-title {
  font-size: clamp(3rem, 7.4vw, 8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.entry-en {
  margin: 0 0 23px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.6;
  opacity: 0.72;
  text-transform: uppercase;
}

.entry-summary {
  max-width: 760px;
  margin: 0 0 25px;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 550;
  line-height: 1.85;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.entry-tags span {
  padding: 5px 9px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.entry-tags .tag-local {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--acid);
}

.entry-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: 250px;
  margin-bottom: 8px;
  color: currentColor;
}

.entry-logo__orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 250px;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
  opacity: 0.46;
  pointer-events: none;
}

.entry-logo__button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 200px;
  height: 200px;
  margin: 25px;
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 249, 233, 0.08);
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.entry-logo__button::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
}

.entry-logo__button:hover {
  background: rgba(255, 249, 233, 0.16);
  transform: scale(1.025) rotate(-1deg);
}

.entry-logo__button:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.entry-logo__button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.entry-logo.has-image .entry-logo__button {
  background: var(--ink);
  box-shadow: 0 0 0 7px rgba(255, 249, 233, 0.08);
}

.entry-logo__plus {
  font-family: var(--display);
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 0.8;
}

.entry-logo__empty {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.entry-logo__caption {
  margin-top: -5px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-align: center;
  opacity: 0.78;
  text-transform: uppercase;
}

.entry-logo__star {
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 2;
  color: var(--acid);
  font-size: 21px;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(19, 19, 19, 0.34);
  pointer-events: none;
}

.entry-content {
  padding: clamp(38px, 5vw, 72px) 0 clamp(66px, 8vw, 108px);
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: clamp(30px, 4.5vw, 66px);
}

.entry-article {
  min-width: 0;
  padding: clamp(22px, 4vw, 60px);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--accent);
}

.entry-quote {
  position: relative;
  margin: 0 0 clamp(35px, 4vw, 50px);
  padding: clamp(24px, 3.5vw, 38px);
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-0.4deg);
}

.entry-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.entry-quote__mark {
  position: absolute;
  top: 13px;
  right: 17px;
  font-size: 23px;
  line-height: 1;
  opacity: 0.55;
}

.entry-figure {
  margin: 0 0 clamp(34px, 4vw, 52px);
}

.entry-figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  background: var(--night);
  box-shadow: 7px 7px 0 var(--accent);
}

.entry-figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-figure__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1.5px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.entry-figure figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-top: 11px;
  color: #5f5f53;
  font-size: 12px;
  line-height: 1.65;
}

.entry-figure figcaption > span {
  max-width: 80%;
}

.figure-edit {
  flex: 0 0 auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.figure-edit:hover {
  color: var(--blue);
}

.entry-image-field {
  position: relative;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin: 0 0 clamp(34px, 4vw, 52px);
  padding: clamp(22px, 3.5vw, 35px);
  border: 2px dashed var(--ink);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(19, 19, 19, 0.032) 0,
      rgba(19, 19, 19, 0.032) 9px,
      transparent 9px,
      transparent 18px
    ),
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 18%, var(--paper)) 0%, var(--paper) 75%);
}

.entry-image-field::before {
  content: "IMAGE";
  position: absolute;
  right: -0.06em;
  bottom: -0.14em;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(6rem, 15vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.7;
  opacity: 0.08;
  pointer-events: none;
}

.entry-image-field__ring {
  position: absolute;
  top: -92px;
  right: -58px;
  width: 280px;
  height: 280px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

.entry-image-field__ring::after {
  content: "";
  position: absolute;
  inset: 27px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
}

.entry-image-field__star {
  position: absolute;
  right: 34px;
  bottom: 24px;
  color: var(--accent);
  font-size: 44px;
  line-height: 1;
  opacity: 0.72;
  pointer-events: none;
}

.entry-image-field__copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.entry-image-field__copy h2 {
  margin: 12px 0 9px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.entry-image-field__copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: #4e4e42;
  font-size: 12px;
  line-height: 1.75;
}

.entry-image-field__copy strong {
  color: var(--ink);
  font-weight: 800;
}

.entry-image-field__button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 41px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.entry-image-field__button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--accent);
}

.entry-image-field__button span {
  color: var(--pink);
}

.entry-section {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(29px, 3.5vw, 42px) 0;
  border-top: 1px solid #d8d4c1;
}

.entry-section__number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  transform: rotate(-6deg);
}

.entry-section__body {
  min-width: 0;
}

.entry-section__body h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.entry-section__en {
  margin: 8px 0 21px;
  color: #77776a;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.entry-section__body > p {
  margin: 0 0 17px;
  color: #282820;
  font-size: clamp(14px, 1.18vw, 16px);
  line-height: 1.96;
}

.entry-section__body > p:last-child {
  margin-bottom: 0;
}

.related-section {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 2px solid var(--ink);
}

.related-head h2 {
  margin: 10px 0 22px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 135px;
  padding: 15px;
  border: 1.5px solid var(--ink);
  border-left: 5px solid var(--related-accent);
  background: #fffdf4;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--related-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 5px 6px 0 var(--related-accent);
}

.related-card > span {
  color: #757567;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
}

.related-card strong {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.related-card em {
  overflow: hidden;
  color: #68685b;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card b {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: var(--related-accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.entry-signoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 46px;
  padding-top: 27px;
  border-top: 1px dashed #c7c3b1;
  color: #727264;
  text-align: center;
}

.entry-signoff span {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.entry-signoff p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.entry-signoff em {
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

.entry-aside {
  position: sticky;
  top: 97px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-self: start;
}

.infobox {
  border: 2px solid var(--ink);
  background: var(--night);
  color: var(--paper);
  box-shadow: 7px 7px 0 var(--accent);
}

.infobox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 2px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.infobox__head strong {
  font-size: 11px;
  font-weight: 700;
}

.infobox__title {
  padding: 21px 17px 17px;
  border-bottom: 1px dashed rgba(255, 249, 233, 0.25);
}

.infobox__title p {
  margin: 0 0 8px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.infobox__title h2 {
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.infobox__title > span {
  color: rgba(255, 249, 233, 0.58);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.infobox__facts {
  margin: 0;
  padding: 7px 17px 12px;
}

.infobox__facts div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 249, 233, 0.11);
}

.infobox__facts div:last-child {
  border-bottom: 0;
}

.infobox__facts dt {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.infobox__facts dd {
  margin: 0;
  color: rgba(255, 249, 233, 0.86);
  font-size: 11px;
  line-height: 1.65;
  text-align: right;
}

.infobox__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 17px 15px;
}

.infobox__tags span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 249, 233, 0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.infobox__note {
  margin: 0;
  padding: 9px 17px;
  border-top: 1px solid rgba(255, 249, 233, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 249, 233, 0.48);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.entry-management {
  padding: 15px;
  border: 2px solid var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--pink);
  transform: rotate(-0.45deg);
}

.entry-management__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(19, 19, 19, 0.27);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
  line-height: 1.45;
}

.entry-management__head em {
  padding: 2px 6px;
  background: var(--ink);
  color: var(--acid);
  font-size: 8.5px;
  font-style: normal;
  white-space: nowrap;
}

.entry-management > p {
  margin: 0 0 11px;
  color: #35352c;
  font-size: 12px;
  line-height: 1.7;
}

.entry-management__actions {
  display: flex;
  gap: 7px;
  margin-bottom: 11px;
}

.entry-management__actions .mini-btn {
  flex: 1;
}

.entry-management .entry-reset {
  display: block;
  margin-bottom: 10px;
  color: #6d6d5f;
  font-size: 10px;
}

.entry-management .entry-add-more {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.entry-management__note {
  margin: 12px 0 0 !important;
  color: #747466 !important;
  font-family: var(--mono);
  font-size: 8px !important;
  letter-spacing: 0.035em;
  line-height: 1.6 !important;
}

.mini-btn {
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.mini-btn:hover {
  background: var(--ink);
  color: var(--acid);
}

.mini-btn--danger:hover {
  background: var(--pink);
  color: var(--paper);
}

.aside-back {
  width: max-content;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.entry-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 13px;
  margin-top: clamp(36px, 5vw, 56px);
}

.entry-page-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 17px 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.entry-page-link--next {
  align-items: flex-end;
  text-align: right;
}

.entry-page-link span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
  line-height: 1.5;
}

.entry-page-link strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-page-link em {
  overflow: hidden;
  max-width: 100%;
  color: #6e6e61;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-page-link:hover {
  background: var(--acid);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.entry-page-link--empty {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.entry-pagination__index {
  align-self: center;
  padding: 9px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.entry-pagination__index span {
  color: var(--pink);
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  padding: clamp(140px, 18vh, 210px) 0 90px;
  background: var(--acid);
  isolation: isolate;
}

.notfound::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  z-index: 0;
  width: 430px;
  height: 430px;
  border: 2px dashed rgba(19, 19, 19, 0.18);
  border-radius: 50%;
}

.notfound__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(19, 19, 19, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 19, 19, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000, transparent 75%);
}

.notfound__inner {
  position: relative;
  z-index: 2;
}

.notfound h1 {
  margin: 18px 0 24px;
  font-family: var(--display);
  font-size: clamp(4.4rem, 12vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.94;
}

.notfound h1 em {
  color: var(--pink);
  font-style: normal;
}

.notfound__inner > p:not(.eyebrow) {
  max-width: 450px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 23px;
  margin-top: 30px;
}

.notfound__number {
  position: absolute;
  right: -0.03em;
  bottom: -0.22em;
  z-index: 1;
  color: rgba(19, 19, 19, 0.07);
  font-family: var(--display);
  font-size: 37vw;
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 0.7;
  pointer-events: none;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 98px) 0 21px;
  background-color: var(--night);
  background-image:
    radial-gradient(0.9px 0.9px at 30px 40px, rgba(255, 249, 233, 0.55) 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 120px 100px, rgba(0, 198, 235, 0.35) 50%, transparent 51%);
  background-size: 250px 220px, 190px 260px;
  color: var(--paper);
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -32%;
  z-index: 0;
  width: 55vw;
  height: 55vw;
  border: 1px solid rgba(223, 249, 84, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(223, 249, 84, 0.025),
    0 0 0 140px rgba(194, 0, 255, 0.035);
  pointer-events: none;
}

.site-footer .shell {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(255, 249, 233, 0.18);
}

.footer-kicker {
  margin: 0;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

.footer-kicker span {
  color: var(--pink);
}

.footer-note {
  margin: 0;
  color: rgba(255, 249, 233, 0.48);
  font-size: 11px;
  line-height: 1.8;
  text-align: right;
}

.footer-word {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: clamp(43px, 5vw, 70px) auto clamp(34px, 4vw, 52px);
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(6.5rem, 20vw, 22rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.69;
  text-align: center;
  text-decoration: none;
  text-shadow: 7px 9px 0 var(--pink);
  white-space: nowrap;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.footer-word span {
  color: var(--pink);
  text-shadow: 7px 9px 0 var(--blue);
}

.footer-word:hover {
  transform: translateY(-4px);
  text-shadow: 11px 14px 0 var(--pink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.45fr) minmax(220px, 0.55fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid rgba(255, 249, 233, 0.18);
}

.footer-about > p {
  max-width: 420px;
  margin: 0 0 13px;
  color: rgba(255, 249, 233, 0.72);
  font-size: 12px;
  line-height: 1.85;
}

.footer-about .footer-en {
  color: rgba(255, 249, 233, 0.36);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
  line-height: 1.8;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: max-content;
  color: var(--paper);
  font-size: 11px;
  text-decoration: none;
}

.footer-nav a span {
  color: rgba(255, 249, 233, 0.35);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.footer-nav a:hover {
  color: var(--acid);
}

.footer-action {
  justify-self: end;
  width: 100%;
  max-width: 280px;
}

.footer-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  border: 1.5px solid var(--acid);
  background: transparent;
  color: var(--acid);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-add > span:first-child {
  color: var(--pink);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.footer-add > span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.7;
  text-align: right;
}

.footer-add:hover {
  background: var(--acid);
  color: var(--ink);
}

.footer-add:hover > span:first-child {
  color: var(--pink);
}

.footer-action > p {
  margin: 10px 0 0;
  color: rgba(255, 249, 233, 0.32);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.045em;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 249, 233, 0.13);
  color: rgba(255, 249, 233, 0.38);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-coordinates {
  text-align: center;
}

.footer-coordinates span {
  color: var(--pink);
  padding: 0 5px;
}

.footer-bottom a {
  border-bottom: 1px solid currentColor;
  color: var(--acid);
  text-decoration: none;
}

/* ============================================================
   Dialog + form
   ============================================================ */
.entry-modal {
  width: min(calc(100% - 32px), 800px);
  max-height: calc(100svh - 30px);
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
}

.entry-modal::backdrop {
  background: rgba(4, 2, 22, 0.72);
  backdrop-filter: blur(9px);
}

.entry-modal[open] {
  animation: modalRise 0.25s ease both;
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.entry-modal form {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 32px);
  overflow: hidden;
  padding: 0;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--pink);
}

.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(23px, 4vw, 45px);
  scrollbar-color: #bdb7a3 var(--paper);
  scrollbar-width: thin;
}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid var(--paper);
  background: #bdb7a3;
}

.entry-modal form::before {
  content: "";
  position: relative;
  z-index: 5;
  display: block;
  flex: 0 0 7px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--violet) 0 25%,
    var(--pink) 25% 50%,
    var(--blue) 50% 75%,
    var(--cyan) 75% 100%
  );
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.modal-kicker {
  margin: 2px 0 9px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.modal-close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.modal-close:hover {
  background: var(--pink);
  color: var(--paper);
}

.modal-intro {
  max-width: 580px;
  margin: 16px 0 23px;
  color: #4a4a3f;
  font-size: 12px;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.form-field > span em {
  color: #858576;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: right;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  outline: none;
  background: #fffdf5;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 2px 2px 0 rgba(19, 19, 19, 0.1);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.form-field input,
.form-field select {
  min-height: 43px;
  padding: 9px 12px;
}

.form-field textarea {
  padding: 11px 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--blue);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #919181;
}

.field-hint {
  display: block;
  color: #77776a;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
}

.field-hint code {
  padding: 1px 4px;
  border: 1px solid rgba(19, 19, 19, 0.2);
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
}

.media-panel {
  min-width: 0;
  margin: 2px 0;
  padding: 15px;
  border: 1.5px solid var(--ink);
  background: rgba(223, 249, 84, 0.18);
}

.media-panel legend {
  padding: 0 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(155px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 18px;
}

.media-item {
  min-width: 0;
}

.media-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.media-item__head span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.media-item__head em {
  color: #79796b;
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.media-logo-frame {
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  margin: 3px 0 10px;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed var(--ink);
  border-radius: 50%;
  background: rgba(255, 249, 233, 0.6);
}

.media-logo-frame.has-image {
  border-style: solid;
  border-width: 2px;
}

.media-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.media-wide-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 3px 0 10px;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed var(--ink);
  background: rgba(255, 249, 233, 0.6);
}

.media-wide-frame.has-image {
  border-style: solid;
  border-width: 2px;
}

.media-wide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #69695b;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.media-empty small {
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.upload-button:hover {
  background: var(--blue);
}

.upload-button:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.media-remove {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: #b60040;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.media-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.media-caption > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.media-caption em {
  color: #7e7e71;
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 400;
}

.media-caption input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1.5px solid var(--ink);
  outline: none;
  background: #fffdf5;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

.media-caption input:focus {
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--blue);
}

.media-caption input:disabled {
  background: #f1eddf;
  color: #929283;
}

.media-hint {
  margin: 8px 0 0;
  color: #77776a;
  font-family: var(--mono);
  font-size: 8.8px;
  line-height: 1.7;
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #c00045;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.modal-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 0;
  padding: 15px clamp(23px, 4vw, 45px) 18px;
  border-top: 1px solid #cfcbb8;
  background: var(--paper);
}

.modal-note {
  max-width: 380px;
  margin: 0;
  color: #77776a;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 600;
  max-width: calc(100vw - 30px);
  padding: 11px 17px;
  border: 1.5px solid var(--acid);
  background: var(--ink);
  color: var(--acid);
  box-shadow: 4px 4px 0 var(--pink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 900;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1360px) {
  .brand-sub {
    display: none;
  }

  .main-nav {
    gap: clamp(10px, 1.45vw, 21px);
  }

  .header-tools {
    gap: 10px;
  }

  .hero-lower {
    grid-template-columns: minmax(0, 1fr) 276px;
  }

  .mist-card {
    width: 276px;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .menu-button {
    display: flex;
  }

  .archive-controls {
    grid-template-columns: minmax(290px, 1fr) auto;
  }

  .archive-chips {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    padding-top: 2px;
  }

  .archive-add {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .hero-title {
    font-size: clamp(5.4rem, 16.2vw, 14rem);
  }

  .portal-grid {
    gap: 32px 26px;
  }

  .portal-blurb,
  .portal-blurb-en {
    max-width: 100%;
  }

  .footer-word {
    font-size: clamp(6.5rem, 22vw, 18rem);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    padding-top: 120px;
    padding-bottom: 19px;
  }

  .hero-topline {
    display: none;
  }

  .hero-copy {
    padding-top: 22px;
  }

  .hero-title {
    font-size: clamp(5rem, 18vw, 11rem);
    margin-bottom: 25px;
  }

  .hero-lower {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .mist-card {
    justify-self: start;
    width: min(100%, 360px);
  }

  .map-caption__mid {
    display: none;
  }

  .hero-edition--right {
    display: none;
  }

  .map-coordinate {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 44px;
  }

  .section-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    padding: 22px 20px 19px;
  }

  .seal {
    position: absolute;
    top: -72px;
    right: 16px;
    width: 78px;
    height: 78px;
  }

  .section-side .text-arrow {
    grid-column: auto;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 760px;
  }

  .portal {
    --tilt: 0deg !important;
    --dy: 0px !important;
    min-height: auto;
  }

  .portal:nth-child(1),
  .portal:nth-child(4) {
    transform: rotate(-0.55deg);
  }

  .portal:nth-child(2),
  .portal:nth-child(3) {
    transform: rotate(0.55deg);
  }

  .portal:hover,
  .portal:focus-within {
    transform: rotate(0deg) translateY(-7px);
  }

  .portal-title h3 {
    font-size: clamp(4rem, 11vw, 6.2rem);
  }

  .portal-blurb {
    font-size: 14px;
  }

  .index-close {
    flex-wrap: wrap;
  }

  .index-close__mid {
    display: none;
  }

  .open-call__inner {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .open-call__copy h2 {
    max-width: 800px;
  }

  .open-call__ticket {
    justify-self: start;
    max-width: 500px;
  }

  .open-call__stamp {
    top: 4%;
    right: 2%;
  }

  .archive-bloom {
    width: 40vw;
    top: 80px;
    right: -90px;
    opacity: 0.6;
  }

  .archive-stamp {
    width: 135px;
    height: 135px;
    margin-right: 0;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-heading-grid {
    grid-template-columns: minmax(0, 1fr) 195px;
  }

  .entry-logo {
    width: 195px;
  }

  .entry-logo__orbit {
    width: 195px;
    height: 195px;
  }

  .entry-logo__button {
    width: 157px;
    height: 157px;
    margin: 19px;
  }

  .entry-logo__plus {
    font-size: 2.4rem;
  }

  .entry-logo__caption {
    font-size: 8px;
  }

  .entry-logo__star {
    top: 18px;
    right: 20px;
    font-size: 18px;
  }

  .entry-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .entry-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    align-items: start;
    gap: 18px;
  }

  .infobox {
    grid-row: span 3;
  }

  .entry-pagination {
    grid-template-columns: 1fr auto 1fr;
  }

  .entry-page-link {
    padding: 14px;
  }

  .entry-page-link strong {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 74px;
  }

  .site-header.is-solid {
    height: 66px;
  }

  .brand-word {
    font-size: 25px;
  }

  .brand-star {
    font-size: 13px;
  }

  .search-link span {
    display: none;
  }

  .search-link svg {
    width: 17px;
    height: 17px;
  }

  .add-button {
    padding: 6px 11px;
    min-height: 33px;
    font-size: 12px;
  }

  .header-tools {
    gap: 11px;
  }

  .menu-button {
    width: 34px;
    height: 34px;
  }

  .mobile-menu {
    top: 66px;
    padding-top: 24px;
  }

  .map-stage,
  .hero-inner {
    min-height: 640px;
  }

  .hero-inner {
    padding-top: 95px;
  }

  .hero-kicker {
    margin-bottom: 16px;
    padding: 7px 9px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .hero-title {
    margin-bottom: 20px;
    font-size: clamp(4.15rem, 20vw, 8.5rem);
    text-shadow:
      4px 4px 0 var(--blue),
      8px 8px 0 var(--pink);
  }

  .hero-lede {
    font-size: clamp(1.15rem, 5.7vw, 1.5rem);
  }

  .hero-desc {
    font-size: 12px;
    line-height: 1.78;
  }

  .hero-actions {
    gap: 16px;
    margin-top: 22px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 17px;
    font-size: 12px;
  }

  .hero-scroll {
    font-size: 9px;
  }

  .hero-scroll__line {
    width: 26px;
  }

  .mist-card {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    box-shadow: 6px 6px 0 rgba(255, 0, 120, 0.88);
    transform: rotate(0.7deg);
  }

  .mist-card__title {
    font-size: 14px;
  }

  .mist-stats strong {
    font-size: 19px;
  }

  .map-caption {
    gap: 10px;
    margin-top: 18px;
    padding-top: 10px;
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  .map-caption span:last-child {
    display: none;
  }

  .map-caption__mid {
    display: none;
  }

  .map-pin__label {
    display: none;
  }

  .map-pin {
    width: 30px;
    height: 30px;
  }

  .ticker {
    padding: 9px 0;
  }

  .ticker__group span {
    padding: 0 19px;
    font-size: 10px;
  }

  .ticker__group b {
    font-size: 11px;
  }

  .index-section {
    padding-top: 65px;
    padding-bottom: 57px;
  }

  .index-bloom {
    top: -38px;
    right: -100px;
    width: 270px;
    opacity: 0.63;
  }

  .index-spark--one {
    top: 30%;
    left: 2%;
    font-size: 27px;
  }

  .section-heading h2 {
    margin-top: 12px;
    font-size: clamp(2.9rem, 12vw, 5.2rem);
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    padding: 19px 17px 17px;
    box-shadow: 5px 5px 0 rgba(255, 0, 120, 0.44);
  }

  .seal {
    display: none;
  }

  .section-side p {
    max-width: 100%;
    font-size: 12px;
  }

  .section-side .text-arrow {
    grid-column: auto;
  }

  .portal-grid {
    gap: 22px;
  }

  .portal {
    padding: 23px 19px 20px;
    border-width: 2px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .portal:hover,
  .portal:focus-within {
    box-shadow: 8px 11px 0 var(--ink);
  }

  .portal-head {
    gap: 11px;
    padding-top: 14px;
  }

  .portal-index {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .portal-title p {
    font-size: 10px;
  }

  .portal-title h3 {
    font-size: clamp(3.7rem, 17vw, 5.6rem);
  }

  .portal-ornament {
    font-size: 21px;
  }

  .portal-blurb {
    margin-top: 19px;
    font-size: 13px;
    line-height: 1.75;
  }

  .portal-blurb-en {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .portal-entries a {
    gap: 8px;
    padding: 12px 0;
  }

  .portal-entry-no {
    display: none;
  }

  .portal-entry-name strong {
    font-size: 14px;
  }

  .portal-entry-name em {
    font-size: 9px;
  }

  .portal-foot {
    margin-top: 17px;
    font-size: 9px;
  }

  .portal-watermark {
    font-size: 5rem;
  }

  .index-close {
    margin-top: 38px;
    font-size: 9px;
  }

  .index-close > span:first-child {
    max-width: 190px;
    line-height: 1.6;
  }

  .add-text-button {
    font-size: 10px;
  }

  .open-call {
    padding: 61px 0 68px;
  }

  .open-call__bloom {
    right: -120px;
    bottom: -110px;
    width: 260px;
    opacity: 0.65;
  }

  .open-call__copy h2 {
    margin: 15px 0 18px;
    font-size: clamp(2.2rem, 10.8vw, 4.4rem);
  }

  .open-call__copy > p {
    font-size: 12px;
    line-height: 1.85;
  }

  .open-call__meta {
    margin-top: 20px;
    gap: 6px;
  }

  .open-call__meta span {
    padding: 6px 8px;
    font-size: 9px;
  }

  .open-call__ticket {
    max-width: 100%;
    padding: 23px 19px;
    box-shadow: 7px 7px 0 var(--pink);
  }

  .open-call__tape {
    top: -14px;
    left: 20px;
  }

  .ticket-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .open-call__stamp {
    display: none;
  }

  .archive-head {
    padding-top: 110px;
    padding-bottom: 39px;
  }

  .archive-bloom {
    top: 52px;
    right: -88px;
    width: 270px;
    opacity: 0.78;
  }

  .archive-title-row {
    display: block;
  }

  .archive-title-row h1 {
    margin-bottom: 17px;
    font-size: clamp(4.1rem, 20vw, 7rem);
  }

  .archive-lede {
    font-size: 13px;
  }

  .archive-stamp {
    display: none;
  }

  .archive-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    margin-top: 29px;
  }

  .archive-search {
    min-height: 52px;
    box-shadow: 4px 4px 0 var(--violet);
  }

  .archive-search input {
    padding: 15px 0;
    font-size: 12px;
  }

  .archive-search__key {
    display: none;
  }

  .archive-chips {
    order: 2;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 0 7px;
    scrollbar-width: none;
  }

  .archive-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .archive-add {
    order: 3;
    align-self: flex-start;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .archive-body {
    padding-top: 30px;
    padding-bottom: 65px;
  }

  .archive-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 10px;
  }

  .archive-meta strong {
    font-size: 19px;
  }

  .archive-tools {
    justify-content: flex-start;
    gap: 10px;
  }

  .mini-action {
    font-size: 9px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .archive-card {
    min-height: 290px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .archive-card h2 {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .archive-card__tagline {
    font-size: 12px;
  }

  .archive-footnote {
    margin-top: 35px;
  }

  .archive-footnote p {
    font-size: 12px;
  }

  .archive-footnote a {
    display: none;
  }

  .entry-hero {
    padding-top: 110px;
    padding-bottom: 43px;
  }

  .entry-hero-flow__wash {
    opacity: 0.5;
    filter: blur(56px) saturate(1.28) brightness(1.08);
  }

  .entry-hero-flow__cloud {
    filter: blur(48px);
  }

  .entry-hero-flow__ribbon {
    filter: blur(33px);
  }

  .entry-hero-flow__strand {
    filter: blur(12px);
  }

  .entry-hero-flow__cloud,
  .entry-hero-flow__ribbon,
  .entry-hero-flow__strand {
    animation: none;
  }

  .entry-heading-grid {
    display: block;
  }

  .entry-hero-nav {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .entry-quick-actions {
    justify-content: flex-start;
  }

  .entry-quick-button {
    min-height: 29px;
    padding: 5px 9px;
    font-size: 9.5px;
  }

  .entry-logo {
    width: 134px;
    margin: 22px 0 9px;
    justify-self: start;
  }

  .entry-logo__orbit {
    width: 134px;
    height: 134px;
  }

  .entry-logo__button {
    width: 108px;
    height: 108px;
    margin: 13px;
  }

  .entry-logo__button::after {
    inset: 6px;
  }

  .entry-logo__plus {
    font-size: 2rem;
  }

  .entry-logo__empty {
    font-size: 8px;
  }

  .entry-logo__caption {
    margin-top: -2px;
    font-size: 8px;
  }

  .entry-logo__star {
    top: 12px;
    right: 13px;
    font-size: 14px;
  }

  .entry-image-field {
    min-height: 220px;
    padding: 20px 18px;
    gap: 19px;
  }

  .entry-image-field__copy h2 {
    font-size: 1.6rem;
  }

  .entry-image-field__copy p:not(.eyebrow) {
    font-size: 11px;
  }

  .entry-image-field__button {
    min-height: 38px;
    font-size: 10px;
  }

  .entry-image-field__star {
    right: 20px;
    bottom: 16px;
    font-size: 28px;
  }

  .entry-figure figcaption {
    display: block;
  }

  .figure-edit {
    margin-top: 7px;
  }

  .entry-kicker {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .entry-heading h1 {
    font-size: clamp(3.7rem, 17vw, 6.2rem);
    margin-bottom: 12px;
  }

  .entry-en {
    margin-bottom: 17px;
    font-size: 10px;
  }

  .entry-summary {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .entry-tags span {
    padding: 4px 7px;
    font-size: 9px;
  }

  .entry-content {
    padding-top: 29px;
    padding-bottom: 66px;
  }

  .entry-article {
    padding: 18px;
    border-width: 2px;
    box-shadow: 6px 6px 0 var(--accent);
  }

  .entry-quote {
    margin-bottom: 26px;
    padding: 18px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .entry-quote p {
    font-size: 1.18rem;
  }

  .entry-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 25px 0;
  }

  .entry-section__number {
    width: 31px;
    height: 31px;
    font-size: 10px;
  }

  .entry-section__body h2 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }

  .entry-section__en {
    margin: 6px 0 15px;
    font-size: 9px;
  }

  .entry-section__body > p {
    font-size: 13.5px;
    line-height: 1.9;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    min-height: 108px;
  }

  .entry-signoff {
    margin-top: 32px;
    gap: 10px;
  }

  .entry-signoff p {
    font-size: 11px;
  }

  .entry-aside {
    display: flex;
    flex-direction: column;
  }

  .infobox {
    box-shadow: 5px 5px 0 var(--accent);
  }

  .entry-pagination {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .entry-page-link--next {
    align-items: flex-start;
    text-align: left;
  }

  .entry-pagination__index {
    grid-row: 2;
    justify-self: center;
  }

  .entry-page-link--empty {
    display: none;
  }

  .entry-page-link {
    padding: 14px;
  }

  .entry-page-link strong {
    font-size: 15px;
  }

  .notfound {
    min-height: 80svh;
    padding-top: 125px;
  }

  .notfound h1 {
    font-size: clamp(4.2rem, 20vw, 8rem);
  }

  .notfound__inner > p:not(.eyebrow) {
    font-size: 12px;
  }

  .notfound__number {
    font-size: 52vw;
  }

  .site-footer {
    padding-top: 45px;
  }

  .footer-top {
    display: block;
  }

  .footer-note {
    margin-top: 12px;
    text-align: left;
  }

  .footer-word {
    margin-top: 34px;
    margin-bottom: 33px;
    font-size: clamp(5.3rem, 24vw, 10rem);
    text-shadow: 5px 7px 0 var(--pink);
    text-align: left;
  }

  .footer-word span {
    text-shadow: 5px 7px 0 var(--blue);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px 0;
  }

  .footer-about > p {
    font-size: 11px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
  }

  .footer-action {
    justify-self: start;
    max-width: 100%;
  }

  .footer-add {
    max-width: 330px;
  }

  .footer-action > p {
    text-align: left;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 8.5px;
  }

  .footer-bottom p:first-child {
    width: 100%;
  }

  .footer-coordinates {
    text-align: left;
  }

  .entry-modal {
    width: calc(100% - 24px);
  }

  .entry-modal form {
    max-height: calc(100svh - 24px);
    box-shadow: 7px 7px 0 var(--pink);
  }

  .modal-scroll {
    padding: 18px 16px 6px;
  }

  .modal-head h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }

  .modal-intro {
    margin: 11px 0 16px;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-field--full {
    grid-column: auto;
  }

  .form-field > span {
    font-size: 12px;
  }

  .form-field > span em {
    font-size: 8.5px;
  }

  #field-body {
    height: 112px;
    min-height: 100px;
  }

  .media-panel {
    padding: 12px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media-logo-frame {
    width: 96px;
  }

  .media-item__head {
    display: block;
  }

  .media-item__head em {
    display: block;
    margin-top: 3px;
    text-align: left;
  }

  .media-hint {
    font-size: 8.5px;
  }

  .modal-foot {
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 12px 16px 15px;
  }

  .modal-note {
    display: none;
  }

  .modal-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .modal-actions .btn {
    min-height: 43px;
  }

  .toast {
    bottom: 14px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .brand-word {
    font-size: 23px;
  }

  .header-tools {
    gap: 8px;
  }

  .search-link {
    display: none;
  }

  .add-button {
    gap: 3px;
    padding: 6px 9px;
  }

  .menu-button {
    width: 32px;
    height: 32px;
  }

  .hero-inner {
    padding-top: 90px;
  }

  .hero-title {
    font-size: clamp(4.35rem, 20.2vw, 6.4rem);
  }

  .hero-kicker {
    max-width: 100%;
    white-space: normal;
  }

  .map-caption {
    font-size: 8px;
    line-height: 1.6;
  }

  .mist-card__en {
    margin-bottom: 8px;
  }

  .mist-stats {
    gap: 6px;
  }

  .index-close {
    gap: 12px;
  }

  .portal-title h3 {
    font-size: 3.55rem;
  }

  .portal-entries a {
    padding: 11px 0;
  }

  .entry-heading h1 {
    font-size: 3.5rem;
  }

  .article-date {
    display: none;
  }

  .archive-meta {
    display: block;
  }

  .archive-tools {
    margin-top: 10px;
    justify-content: flex-start;
  }

  .archive-card__strip {
    font-size: 8px;
  }
}

/* ============================================================
   Motion / print preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ticker__track {
    animation: none;
  }

  .entry-hero-flow__cloud,
  .entry-hero-flow__ribbon,
  .entry-hero-flow__strand {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .map-pins,
  .map-lens,
  .entry-aside,
  .entry-pagination,
  .toast,
  .skip-link {
    display: none !important;
  }

  body,
  .entry-page,
  .entry-content {
    background: #fff !important;
  }

  .entry-hero {
    padding: 24px 0 !important;
    border: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  .entry-layout {
    display: block;
  }

  .entry-article {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .entry-quote {
    background: #eee;
    color: #000;
    box-shadow: none;
  }
}

/* ============================================================
   Priority + character sub-entries
   ============================================================ */

.entry-tags .tag-pinned {
  border-color: var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
}

.entry-tags .tag-priority {
  border-style: dashed;
  background: transparent;
  opacity: 0.86;
}

.portal-pin {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.72em;
}

.archive-card__meta .archive-priority {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, currentColor 48%, transparent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.form-field.form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  background: #fffdf5;
}

.form-field.form-checkbox input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--violet);
}

.form-field.form-checkbox > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-size: 11px;
}

.form-field.form-checkbox > span em {
  text-align: left;
}

.character-modal {
  width: min(calc(100% - 32px), 900px);
}

.character-modal .media-grid {
  grid-template-columns: minmax(150px, 0.68fr) minmax(190px, 1.32fr);
  align-items: start;
}

.media-portrait-frame {
  display: grid;
  width: min(100%, 196px);
  aspect-ratio: 2 / 3;
  margin: 3px 0 10px;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed var(--ink);
  background:
    linear-gradient(145deg, rgba(194, 0, 255, 0.09), transparent 55%),
    rgba(255, 249, 233, 0.72);
}

.media-portrait-frame.has-image {
  border-style: solid;
  border-width: 2px;
}

.media-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ------------------------------------------------------------
   Cast section inside an entry
   ------------------------------------------------------------ */

.cast-section {
  margin: 58px 0 42px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.cast-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.cast-head .eyebrow {
  margin-bottom: 10px;
}

.cast-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.1vw, 2.9rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.cast-head__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.cast-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cast-add-button,
.cast-empty .text-arrow {
  min-height: 32px;
}

.cast-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1.5px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cast-add-button:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.cast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(220px, 0.72fr);
  align-items: stretch;
  gap: 13px;
  margin-top: 22px;
}

.cast-grid--solo {
  grid-template-columns: 1fr;
}

.cast-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.18fr);
  min-height: 318px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cast-feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--accent);
}

.cast-feature__visual {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  place-items: center;
  border-right: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 26%, color-mix(in srgb, var(--accent) 34%, var(--paper)) 0 17%, transparent 17.5%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(19, 19, 19, 0.085) 14px 15px),
    color-mix(in srgb, var(--accent) 32%, var(--paper));
}

.cast-feature__visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed color-mix(in srgb, var(--ink) 32%, transparent);
  pointer-events: none;
}

.cast-feature__portrait,
.cast-feature__avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cast-feature__portrait {
  padding: 8px;
}

.cast-feature__avatar {
  width: 68%;
  height: 68%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--ink) 24%, transparent);
}

.cast-feature__monogram {
  position: relative;
  z-index: 1;
  color: var(--on-accent);
  font-family: var(--display);
  font-size: clamp(4.6rem, 9vw, 8rem);
  line-height: 0.8;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 22%, transparent);
}

.cast-feature__rank {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  border: 1.5px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.cast-feature__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px 16px;
}

.cast-role {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cast-feature h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.cast-en {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.cast-summary {
  max-width: 33em;
  margin: 17px 0 22px;
  color: #444438;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.75;
}

.cast-feature__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.035em;
}

.cast-feature__foot span {
  color: var(--muted);
}

.cast-feature__foot b {
  color: var(--ink);
  white-space: nowrap;
}

.cast-roster {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.cast-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.cast-card:hover {
  transform: translateX(-2px);
  background: color-mix(in srgb, var(--accent) 18%, var(--paper));
}

.cast-card__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cast-card__copy strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-card__copy em {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-card__priority {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.cast-card__arrow {
  font-size: 13px;
}

.char-avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--paper);
}

.char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-avatar__initial {
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  line-height: 1;
}

.char-avatar--cast {
  width: 50px;
  height: 50px;
  border-color: var(--ink);
  flex-basis: 50px;
}

.char-avatar--sibling {
  width: 38px;
  height: 38px;
  border-color: var(--ink);
  flex-basis: 38px;
}

.cast-side-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border: 1.5px dashed var(--ink);
  background:
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(19, 19, 19, 0.055) 16px 17px),
    color-mix(in srgb, var(--accent) 18%, var(--paper));
}

.cast-side-note__star {
  font-size: 30px;
  line-height: 1;
}

.cast-side-note p {
  margin: 0;
  color: #4d4d40;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.cast-section--empty {
  padding-bottom: 8px;
}

.cast-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 18px;
  border: 1.5px dashed var(--ink);
  background: rgba(19, 19, 19, 0.025);
}

.cast-empty__mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
}

.cast-empty p {
  max-width: 560px;
  margin: 0;
  color: #4d4d40;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Character detail page
   ------------------------------------------------------------ */

.character-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.character-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 42px;
  background: var(--accent);
  color: var(--on-accent);
}

.character-hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at 84% 28%, transparent 0 110px, currentColor 111px, transparent 112px),
    radial-gradient(circle at 84% 28%, transparent 0 188px, currentColor 189px, transparent 190px),
    linear-gradient(115deg, transparent 0 47%, currentColor 47.1%, transparent 47.3%);
  mix-blend-mode: multiply;
}

.character-hero__inner {
  position: relative;
  z-index: 1;
}

.character-nav {
  margin-bottom: 34px;
}

.character-nav .entry-quick-button {
  border-color: currentColor;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  color: inherit;
}

.character-nav .entry-quick-button:hover {
  background: var(--ink);
  color: var(--acid);
}

.character-nav .entry-quick-button--danger:hover {
  background: var(--pink);
  color: var(--paper);
}

.character-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.character-kicker {
  margin-bottom: 21px;
}

.character-kicker span {
  color: currentColor;
  opacity: 0.55;
}

.character-role {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.76;
}

.character-heading h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 9.4vw, 10rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.character-heading h1.is-long-title {
  font-size: clamp(3rem, 7.6vw, 8rem);
  line-height: 0.86;
}

.character-en {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.character-summary {
  max-width: 660px;
  margin: 20px 0 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.character-tags {
  margin-top: 0;
}

.character-tags .tag-pinned {
  border-color: var(--ink);
  background: var(--acid);
  color: var(--ink);
}

.character-avatar-stage {
  position: relative;
  display: grid;
  width: clamp(190px, 21vw, 280px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in srgb, currentColor 10%, transparent) 13px 14px),
    color-mix(in srgb, var(--accent-deep) 34%, var(--accent));
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--ink) 22%, transparent);
}

.character-avatar-stage::before {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.character-avatar-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-avatar-stage__initial {
  font-family: var(--display);
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 1;
}

.character-avatar-stage__label {
  position: absolute;
  bottom: 9%;
  left: 50%;
  padding: 4px 7px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.character-body {
  padding: 54px 0 86px;
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.character-portrait-panel {
  margin: 0;
}

.character-portrait-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--accent) 28%, var(--paper)) 0 18%, transparent 18.5%),
    repeating-linear-gradient(135deg, transparent 0 19px, rgba(19, 19, 19, 0.065) 19px 20px),
    var(--paper-deep);
  box-shadow: 9px 9px 0 var(--accent);
}

.character-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(19, 19, 19, 0.32);
  pointer-events: none;
}

.character-portrait-frame.has-image::after {
  display: none;
}

.character-portrait-frame > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.character-portrait-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 240px;
  padding: 22px;
  text-align: center;
}

.character-portrait-placeholder > span {
  margin-bottom: 13px;
  font-size: 38px;
  line-height: 1;
}

.character-portrait-placeholder strong {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.character-portrait-placeholder p {
  margin: 9px 0 15px;
  color: #5a5a4c;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
}

.character-portrait-panel figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.character-portrait-panel figcaption em {
  color: var(--muted);
  font-style: normal;
}

.character-main {
  min-width: 0;
}

.character-section-head {
  margin-bottom: 24px;
}

.character-section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.character-profile > p {
  max-width: 700px;
  margin: 0 0 17px;
  color: #343429;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
}

.character-empty-copy {
  padding: 18px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  color: var(--muted) !important;
  font-style: italic;
}

.character-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 31px 0 0;
  border: 1.5px solid var(--ink);
  background: var(--ink);
}

.character-fact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--paper);
}

.character-fact > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.055em;
}

.character-fact strong,
.character-fact a {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.character-fact a {
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.character-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.character-actions .text-arrow {
  margin-left: auto;
}

.character-siblings {
  margin-top: 46px;
  padding-top: 25px;
  border-top: 2px solid var(--ink);
}

.character-siblings__head h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 0.95;
}

.character-siblings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.character-sibling {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  text-decoration: none;
}

.character-sibling:hover {
  background: var(--accent);
}

.character-sibling > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.character-sibling strong {
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
}

.character-sibling em {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Origin myth — editorial spread
   ============================================================ */

.myth-page {
  --myth-paper: #f3efe4;
  --myth-paper-deep: #e4ddcd;
  --myth-ink: #171526;
  --myth-night: #17161c;
  --myth-blue: #2849e8;
  --myth-cyan: #00c6eb;
  --myth-orange: #ff6b57;
  --myth-yellow: #f0d34e;
  --myth-violet: #c200ff;
  position: relative;
  overflow: hidden;
  padding-top: 76px;
  background:
    linear-gradient(90deg, rgba(23, 21, 38, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 38, 0.035) 1px, transparent 1px),
    #d9d4c7;
  background-size: 54px 54px;
  color: var(--myth-ink);
}

.myth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.myth-page > * {
  position: relative;
  z-index: 1;
}

.myth-toolbar-wrap {
  border-bottom: 1px solid rgba(23, 21, 38, 0.2);
}

.myth-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 25px;
  padding-bottom: 18px;
}

.myth-toolbar .breadcrumbs {
  margin-bottom: 0;
  color: var(--myth-ink);
}

.myth-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.myth-status {
  padding: 6px 9px;
  border: 1.5px solid var(--myth-ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.myth-quick {
  min-height: 31px;
  padding: 6px 10px;
  border: 1.5px solid var(--myth-ink);
  background: transparent;
  color: var(--myth-ink);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.myth-quick:hover {
  background: var(--myth-ink);
  color: var(--acid);
}

.myth-quick--danger:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--paper);
}

.myth-masthead {
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.myth-masthead__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 19px;
}

.myth-masthead__top .eyebrow {
  margin-bottom: 0;
  color: var(--myth-ink);
}

.myth-masthead__top .eyebrow span {
  color: var(--myth-violet);
}

.myth-volume {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.myth-masthead__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.myth-masthead h1 {
  max-width: 1230px;
  margin: 0;
  color: var(--myth-ink);
  font-family: var(--display);
  font-size: clamp(5.2rem, 15.4vw, 15.5rem);
  line-height: 0.73;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.myth-masthead__seal {
  display: flex;
  flex: 0 0 102px;
  width: 102px;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--myth-ink);
  border-radius: 50%;
  background: var(--myth-yellow);
  color: var(--myth-ink);
  transform: rotate(8deg);
  text-align: center;
}

.myth-masthead__seal span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.myth-masthead__seal strong {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.myth-masthead__deck {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.93fr);
  gap: 30px;
  align-items: start;
  margin-top: 25px;
  padding-top: 16px;
  border-top: 2px solid var(--myth-ink);
}

.myth-masthead__en {
  margin: 0;
  color: var(--myth-violet);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.myth-masthead__summary {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.85;
}

.myth-masthead__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 27px;
  border: 1.5px solid var(--myth-ink);
  background: var(--myth-ink);
}

.myth-masthead__meta > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--myth-paper);
}

.myth-masthead__meta em {
  color: #787365;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.myth-masthead__meta strong {
  font-size: 12px;
  line-height: 1.35;
}

.myth-spread-wrap {
  padding: 35px 0 58px;
}

.myth-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1540px;
  border: 1.5px solid var(--myth-ink);
  box-shadow: 0 26px 70px rgba(23, 21, 38, 0.22);
}

.myth-binding {
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 42px;
  transform: translateX(-50%);
  pointer-events: none;
}

.myth-binding__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(23, 21, 38, 0.35);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
}

.myth-binding__tabs {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 50%;
  width: 19px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--myth-violet) 0 24px,
    transparent 24px 63px
  );
  box-shadow: 0 0 0 2px rgba(23, 21, 38, 0.14);
}

.myth-leaf {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px clamp(30px, 4.2vw, 62px) 24px;
}

.myth-leaf--light {
  padding-right: clamp(44px, 5.4vw, 82px);
  background:
    linear-gradient(90deg, transparent 0 97%, rgba(23, 21, 38, 0.055) 97%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(23, 21, 38, 0.022) 3px 4px),
    var(--myth-paper);
  color: var(--myth-ink);
}

.myth-leaf--dark {
  padding-left: clamp(44px, 5.4vw, 82px);
  background:
    radial-gradient(circle at 28% 22%, rgba(40, 73, 232, 0.34), transparent 38%),
    linear-gradient(160deg, #191722 0%, #101015 100%);
  color: var(--myth-paper);
}

.myth-leaf__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 27px;
  padding-bottom: 9px;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  opacity: 0.68;
}

.myth-leaf--dark .myth-leaf__head {
  color: var(--myth-blue);
  opacity: 0.9;
}

.myth-lead {
  position: relative;
  z-index: 1;
}

.myth-lead__star {
  display: block;
  margin-bottom: 11px;
  color: var(--myth-violet);
  font-size: 22px;
  line-height: 1;
}

.myth-lead h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 4.3vw, 4.7rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.myth-lead__en {
  margin: 7px 0 23px;
  color: var(--myth-violet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.myth-lead p,
.myth-ancestor__copy p,
.myth-coda p {
  font-family: var(--serif);
  font-size: clamp(12.5px, 1.03vw, 14px);
  line-height: 1.9;
}

.myth-lead p {
  margin: 0 0 14px;
}

.myth-lead .myth-incipit {
  margin-bottom: 21px;
  padding-left: 15px;
  border-left: 3px solid var(--myth-violet);
  color: var(--myth-blue);
  font-size: clamp(18px, 1.75vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.myth-ancestor-list {
  display: grid;
  gap: 0;
  margin-top: 11px;
}

.myth-ancestor {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  padding: 15px 0 14px;
  border-top: 1px solid rgba(23, 21, 38, 0.22);
}

.myth-leaf--dark .myth-ancestor {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin: 11px 0;
  padding: 14px 15px;
  border: 0;
  background: var(--myth-blue);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.myth-leaf--dark .myth-ancestor:nth-child(2n) {
  transform: rotate(1.1deg);
  background: color-mix(in srgb, var(--myth-blue) 84%, #000);
}

.myth-leaf--dark .myth-ancestor:nth-child(3n) {
  transform: rotate(-0.8deg);
}

.myth-ancestor__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.myth-ancestor__mark > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1;
}

.myth-ancestor__mark small {
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.56;
}

.myth-ancestor__copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.myth-ancestor__en {
  margin: 3px 0 6px;
  color: var(--myth-violet);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.myth-leaf--dark .myth-ancestor__en {
  color: var(--myth-yellow);
}

.myth-ancestor__copy p {
  margin: 0;
  line-height: 1.75;
}

.myth-leaf--dark .myth-ancestor__copy p {
  color: #fff;
}

.myth-plate {
  position: relative;
  z-index: 4;
  margin: 2px 0 29px clamp(-34px, -2.6vw, -20px);
  padding: 7px 7px 0;
  border: 1.5px solid var(--myth-ink);
  background: var(--myth-paper);
  box-shadow: 11px 13px 0 rgba(0, 0, 0, 0.3);
  transform: rotate(-1.4deg);
}

.myth-plate__tape {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 34%;
  width: 92px;
  height: 23px;
  background: rgba(240, 211, 78, 0.82);
  transform: rotate(2deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.myth-plate__image {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 5 / 4;
  place-items: center;
  overflow: hidden;
  background: var(--myth-night);
}

.myth-plate__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.myth-plate__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--myth-paper);
  font-family: var(--serif);
}

.myth-plate__empty > span {
  font-size: 28px;
}

.myth-plate__empty strong {
  font-family: var(--display);
  font-size: 19px;
}

.myth-plate__empty .text-arrow {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
}

.myth-plate figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  min-height: 31px;
  padding: 7px 4px 5px;
  color: var(--myth-ink);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.myth-plate figcaption span:first-child {
  color: var(--myth-violet);
  font-weight: 700;
}

.myth-plate figcaption button {
  margin-left: auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--myth-ink);
  font-family: var(--mono);
  font-size: 8.5px;
  cursor: pointer;
}

.myth-coda {
  margin-top: 21px;
  padding-top: 19px;
  border-top: 1px solid var(--myth-yellow);
}

.myth-coda__mark {
  display: block;
  margin-bottom: 9px;
  color: var(--myth-yellow);
  font-size: 22px;
}

.myth-coda__en {
  margin: 0 0 5px;
  color: var(--myth-yellow);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.myth-coda h2 {
  margin: 0 0 10px;
  color: var(--myth-paper);
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 0.92;
}

.myth-coda p {
  margin: 0 0 12px;
  color: var(--myth-paper);
  font-size: 14px;
  line-height: 1.8;
}

.myth-coda__end {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 7px;
  background: var(--myth-yellow);
  color: var(--myth-ink);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.myth-leaf__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 21px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.055em;
  opacity: 0.56;
}

.myth-leaf--dark .myth-leaf__foot {
  color: var(--myth-paper);
}

.myth-colophon {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 35px;
  padding: 12px 0 46px;
}

.myth-colophon__quote {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 5px;
}

.myth-colophon__quote > span {
  color: var(--myth-violet);
  font-family: var(--serif);
  font-size: 40px;
  line-height: 0.8;
}

.myth-colophon__quote p {
  max-width: 720px;
  margin: 0;
  color: var(--myth-ink);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  font-style: italic;
  line-height: 1.55;
}

.myth-colophon__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  padding-top: 8px;
}

.myth-colophon__meta .eyebrow {
  margin-bottom: 8px;
  color: var(--myth-ink);
}

.myth-colophon__meta .entry-tags span {
  border-color: var(--myth-ink);
  color: var(--myth-ink);
}

.myth-colophon__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.myth-colophon__actions .text-arrow {
  color: var(--myth-ink);
  font-family: var(--mono);
  font-size: 10px;
}

.myth-cast {
  padding-bottom: 82px;
}

.myth-cast .cast-section {
  margin-top: 0;
  padding-top: 34px;
  border-top: 2px solid var(--myth-ink);
}

.myth-cast .cast-section--empty {
  padding-bottom: 0;
}

.myth-cast .cast-feature {
  box-shadow: 6px 6px 0 var(--myth-violet);
}

.myth-cast .cast-add-button {
  background: var(--myth-yellow);
  color: var(--myth-ink);
}

.myth-cast .cast-empty__mark {
  background: var(--myth-yellow);
  color: var(--myth-ink);
}

/* ------------------------------------------------------------
   Responsive: priority, cast, character, myth
   ------------------------------------------------------------ */

@media (max-width: 1180px) {
  .cast-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(210px, 0.7fr);
  }

  .cast-feature {
    grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
  }

  .myth-masthead h1 {
    font-size: clamp(5rem, 14vw, 12rem);
  }

  .myth-leaf {
    padding-inline: clamp(25px, 3.4vw, 45px);
  }

  .myth-leaf--light {
    padding-right: clamp(38px, 4.6vw, 58px);
  }

  .myth-leaf--dark {
    padding-left: clamp(38px, 4.6vw, 58px);
  }
}

@media (max-width: 980px) {
  .cast-grid {
    grid-template-columns: 1fr;
  }

  .cast-roster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cast-feature {
    min-height: 300px;
  }

  .cast-side-note {
    grid-column: 1 / -1;
    min-height: 150px;
  }

  .character-layout {
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
    gap: 34px;
  }

  .myth-spread {
    grid-template-columns: 1fr;
    box-shadow: 0 18px 45px rgba(23, 21, 38, 0.2);
  }

  .myth-binding {
    display: none;
  }

  .myth-leaf {
    padding: 31px clamp(22px, 4.5vw, 44px) 23px;
  }

  .myth-leaf--light {
    padding-right: clamp(22px, 4.5vw, 44px);
  }

  .myth-leaf--dark {
    padding-left: clamp(22px, 4.5vw, 44px);
  }

  .myth-plate {
    margin: 3px 0 28px;
    transform: rotate(-0.9deg);
  }

  .myth-masthead__deck {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .myth-colophon {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .myth-colophon__meta {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .entry-tags .tag-pinned,
  .entry-tags .tag-priority {
    font-size: 9px;
  }

  .cast-section {
    margin-top: 44px;
    padding-top: 23px;
  }

  .cast-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cast-head__tools {
    justify-content: flex-start;
  }

  .cast-grid {
    margin-top: 17px;
  }

  .cast-feature {
    grid-template-columns: 1fr;
    min-height: 0;
    box-shadow: 4px 4px 0 var(--accent);
  }

  .cast-feature__visual {
    min-height: 228px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .cast-feature__copy {
    padding: 18px 16px 14px;
  }

  .cast-feature h3 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .cast-summary {
    margin: 13px 0 18px;
  }

  .cast-roster {
    grid-template-columns: 1fr;
  }

  .cast-empty {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cast-empty__mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .cast-side-note {
    justify-content: flex-start;
  }

  .character-hero {
    padding-top: 101px;
    padding-bottom: 30px;
  }

  .character-nav {
    margin-bottom: 26px;
  }

  .character-heading-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .character-heading h1 {
    font-size: clamp(3.6rem, 17vw, 6rem);
  }

  .character-heading h1.is-long-title {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .character-summary {
    margin: 16px 0 20px;
    font-size: 13px;
  }

  .character-avatar-stage {
    width: 154px;
    justify-self: end;
    grid-row: 1;
    margin-top: -10px;
  }

  .character-heading {
    grid-row: 2;
  }

  .character-heading-grid {
    grid-template-areas: "avatar" "heading";
  }

  .character-avatar-stage {
    grid-area: avatar;
  }

  .character-heading {
    grid-area: heading;
  }

  .character-body {
    padding: 36px 0 60px;
  }

  .character-layout {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .character-portrait-panel {
    width: min(100%, 380px);
    margin-inline: auto;
  }

  .character-portrait-frame {
    box-shadow: 7px 7px 0 var(--accent);
  }

  .character-facts {
    grid-template-columns: 1fr;
  }

  .character-actions {
    align-items: stretch;
  }

  .character-actions .btn {
    flex: 1 1 auto;
  }

  .character-actions .text-arrow {
    flex-basis: 100%;
    margin-left: 0;
    padding-top: 5px;
  }

  .character-siblings__grid {
    grid-template-columns: 1fr;
  }

  .character-modal .media-grid {
    grid-template-columns: 1fr;
  }

  .media-portrait-frame {
    width: min(58vw, 190px);
  }

  .myth-page {
    padding-top: 74px;
  }

  .myth-toolbar {
    padding-top: 17px;
    padding-bottom: 14px;
  }

  .myth-toolbar__right {
    align-items: flex-start;
    gap: 7px;
  }

  .myth-status {
    padding: 5px 7px;
    font-size: 8.5px;
  }

  .myth-masthead {
    padding-top: 34px;
    padding-bottom: 27px;
  }

  .myth-masthead__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .myth-masthead__title-row {
    align-items: flex-end;
    gap: 10px;
  }

  .myth-masthead h1 {
    font-size: clamp(4.3rem, 20vw, 7.2rem);
    line-height: 0.76;
  }

  .myth-masthead__seal {
    flex-basis: 65px;
    width: 65px;
  }

  .myth-masthead__seal span {
    font-size: 4.5px;
  }

  .myth-masthead__seal strong {
    font-size: 20px;
  }

  .myth-masthead__deck {
    margin-top: 17px;
    padding-top: 12px;
  }

  .myth-masthead__en {
    font-size: 10px;
  }

  .myth-masthead__summary {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .myth-masthead__meta {
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .myth-masthead__meta > span {
    padding: 9px 10px;
  }

  .myth-spread-wrap {
    padding: 20px 0 36px;
  }

  .myth-spread {
    width: calc(100% - 24px);
    border-width: 1px;
  }

  .myth-leaf {
    padding: 24px 19px 19px;
  }

  .myth-leaf--light,
  .myth-leaf--dark {
    padding-inline: 19px;
  }

  .myth-leaf__head {
    margin-bottom: 20px;
    font-size: 8.5px;
  }

  .myth-lead h2 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .myth-lead .myth-incipit {
    padding-left: 10px;
    font-size: 18px;
  }

  .myth-lead p,
  .myth-ancestor__copy p,
  .myth-coda p {
    font-size: 12.5px;
    line-height: 1.82;
  }

  .myth-plate {
    margin: 5px 0 23px;
    padding: 5px 5px 0;
    transform: rotate(-0.6deg);
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.28);
  }

  .myth-plate__tape {
    left: 30%;
    width: 72px;
    height: 19px;
  }

  .myth-plate figcaption {
    min-height: 28px;
    padding: 5px 2px 4px;
    font-size: 8px;
  }

  .myth-plate figcaption button {
    font-size: 8px;
  }

  .myth-leaf--dark .myth-ancestor {
    margin: 9px 0;
    padding: 12px 12px;
    transform: none;
  }

  .myth-leaf--dark .myth-ancestor:nth-child(2n),
  .myth-leaf--dark .myth-ancestor:nth-child(3n) {
    transform: none;
  }

  .myth-coda h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .myth-coda p {
    font-size: 13px;
  }

  .myth-colophon {
    padding: 4px 0 35px;
  }

  .myth-colophon__quote > span {
    font-size: 30px;
  }

  .myth-colophon__quote p {
    font-size: 18px;
  }

  .myth-colophon__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .myth-cast {
    padding-bottom: 58px;
  }

  .myth-cast .cast-section {
    padding-top: 26px;
  }

  .myth-page :focus-visible {
    outline-color: var(--acid);
  }
}

@media (max-width: 430px) {
  .cast-feature__visual {
    min-height: 198px;
  }

  .cast-feature__rank {
    font-size: 8px;
  }

  .character-heading-grid {
    gap: 17px;
  }

  .character-avatar-stage {
    width: 126px;
  }

  .character-heading h1 {
    font-size: clamp(3.2rem, 17vw, 4.8rem);
  }

  .character-role {
    font-size: 10px;
  }

  .myth-masthead__seal {
    flex-basis: 54px;
    width: 54px;
  }

  .myth-masthead__seal strong {
    font-size: 17px;
  }

  .myth-masthead h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .myth-leaf {
    padding-inline: 15px;
  }

  .myth-leaf--light,
  .myth-leaf--dark {
    padding-inline: 15px;
  }

  .myth-ancestor {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .myth-leaf--dark .myth-ancestor {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .myth-ancestor__mark > span {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .myth-plate figcaption span:nth-child(2) {
    display: none;
  }
}

@media print {
  .cast-section,
  .character-actions,
  .character-siblings,
  .myth-cast,
  .myth-toolbar,
  .myth-quick,
  .myth-status,
  .myth-colophon__actions {
    display: none !important;
  }

  .myth-page,
  .character-page {
    padding-top: 0;
    background: #fff;
  }

  .myth-spread {
    box-shadow: none;
  }
}

/* ------------------------------------------------------------
   Layout fixes: cast hierarchy + character heading rhythm
   ------------------------------------------------------------ */

.cast-grid,
.cast-grid--solo {
  grid-template-columns: 1fr;
}

.cast-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cast-add-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 66px;
  padding: 10px 13px;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 68%, transparent);
  background: rgba(255, 249, 233, 0.35);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.cast-add-slot:hover {
  border-style: solid;
  background: var(--accent);
}

.cast-add-slot > span {
  font-family: var(--display);
  font-size: 21px;
  line-height: 0.8;
}

.cast-add-slot strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.cast-add-slot em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.5;
}

.cast-role {
  margin-bottom: 10px;
}

.cast-feature h3 {
  margin-top: 1px;
  line-height: 0.9;
}

.cast-feature__foot {
  padding-top: 13px;
}

.character-role {
  margin-bottom: 11px;
}

.character-heading h1 {
  padding-top: 2px;
  line-height: 0.82;
}

.character-en {
  margin-top: 17px;
}

@media (max-width: 760px) {
  .cast-roster {
    grid-template-columns: 1fr;
  }

  .cast-add-slot {
    min-height: 58px;
  }

  .character-heading h1 {
    line-height: 0.84;
  }
}

/* Final rhythm tweaks for portrait thumbnails and titles */
.cast-feature__avatar {
  width: 74%;
  height: auto;
  aspect-ratio: 1;
}

.cast-role {
  margin-bottom: 17px;
}

.cast-feature h3 {
  padding-top: 3px;
  line-height: 0.94;
}

.character-role {
  margin-bottom: 18px;
}

.character-heading h1 {
  padding-top: 7px;
  line-height: 0.88;
}

@media (max-width: 760px) {
  .character-heading h1 {
    line-height: 0.9;
  }
}

.cast-section {
  scroll-margin-top: 96px;
}

/* New component accessibility + reduced motion */
.character-hero :focus-visible,
.myth-leaf--dark :focus-visible {
  outline-color: var(--acid);
}

@media (prefers-reduced-motion: reduce) {
  .cast-feature,
  .cast-card,
  .cast-add-button,
  .cast-add-slot,
  .character-sibling {
    transition: none !important;
  }
}

.character-heading h1.is-long-title {
  font-size: clamp(2.8rem, 5.4vw, 6.2rem);
  line-height: 0.9;
}

.character-heading h1.is-very-long-title {
  font-size: clamp(2.3rem, 4.3vw, 4.6rem);
  line-height: 0.95;
}

@media (max-width: 760px) {
  .character-heading h1.is-long-title {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
    line-height: 0.94;
  }

  .character-heading h1.is-very-long-title {
    font-size: clamp(1.9rem, 7.4vw, 3rem);
    line-height: 0.98;
  }
}

/* Footer credit */
.footer-about .footer-signature {
  margin: 0 0 7px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.footer-about .footer-signature strong {
  color: var(--acid);
  font-weight: 900;
}

.footer-about .footer-welcome {
  margin: 0 0 15px;
  color: var(--pink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.footer-about .footer-welcome::before {
  content: "✦ ";
  color: var(--acid);
}

@media (max-width: 760px) {
  .footer-about .footer-signature {
    font-size: 2rem;
  }

  .footer-about .footer-welcome {
    font-size: 11px;
  }
}

/* Fifth chapter: factions / ancient realms */
.portal-grid > .portal:nth-child(5) {
  grid-column: 1 / -1;
  --tilt: 0deg;
  --dy: 0px;
}

.portal--factions {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  column-gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.portal--factions .portal-head,
.portal--factions .portal-blurb,
.portal--factions .portal-blurb-en {
  grid-column: 1;
}

.portal--factions .portal-title h3 {
  font-size: clamp(3rem, 5.2vw, 5.7rem);
  white-space: nowrap;
}

.portal--factions .portal-entries {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  margin-top: 1px;
}

.portal--factions .portal-foot {
  grid-column: 1 / -1;
  margin-top: clamp(20px, 3vw, 42px);
}

.portal--factions .portal-blurb {
  max-width: 660px;
}

.portal--factions .portal-watermark {
  right: 0.02em;
  bottom: -0.2em;
  opacity: 0.08;
}

@media (max-width: 980px) {
  .portal--factions {
    display: block;
  }

  .portal--factions .portal-title h3 {
    white-space: normal;
  }

  .portal--factions .portal-entries {
    margin-top: 22px;
  }
}

@media (max-width: 760px) {
  .portal--factions {
    padding: 25px;
  }

  .portal--factions .portal-title h3 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }
}

.portal--factions .portal-copy {
  grid-column: 1;
}

.portal--factions .portal-entries {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.portal--factions .portal-head,
.portal--factions .portal-blurb,
.portal--factions .portal-blurb-en {
  grid-column: auto;
}

/* Kingdom subset: factions / ancient realms */
.portal-subset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  align-items: center;
  margin-top: 20px;
  padding: 13px 15px 12px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(19, 19, 19, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-subset:hover {
  transform: translate(-2px, -3px);
  box-shadow: 9px 9px 0 rgba(19, 19, 19, 0.2);
}

.portal-subset__meta {
  grid-column: 1 / -1;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.portal-subset__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.portal-subset__main strong {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-subset__main sup {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
}

.portal-subset em {
  grid-column: 1;
  overflow: hidden;
  color: rgba(255, 249, 233, 0.52);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-subset__arrow {
  grid-column: 2;
  grid-row: 2 / span 2;
  color: var(--pink);
  font-size: 22px;
  transition: transform 180ms ease;
}

.portal-subset:hover .portal-subset__arrow {
  transform: translate(2px, -2px);
}

.archive-subchips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 2px;
}

.archive-subchips::before {
  content: "SUBSET / 子集";
  margin-right: 4px;
  color: #66665b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.subset-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.subset-chip sup {
  font-size: 9px;
  opacity: 0.55;
}

.subset-chip:hover {
  background: var(--paper);
}

.subset-chip.is-active {
  background: var(--blue);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.subset-chip.is-active sup {
  opacity: 0.8;
}

.archive-subset {
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.breadcrumb-subset {
  color: var(--blue);
}

@media (max-width: 760px) {
  .portal-subset {
    margin-top: 16px;
    padding: 12px;
  }

  .portal-subset__main strong {
    font-size: 1.15rem;
  }

  .archive-subchips {
    gap: 6px;
  }

  .archive-subchips::before {
    width: 100%;
  }
}
.breadcrumb-subset { color: inherit; }

.archive-subchips {
  grid-column: auto;
  margin-top: 12px;
}

.archive-subchips[hidden] {
  display: none;
}

/* Country-only damask textures (three country entries only) */
.entry-page.is-country .entry-hero__pattern {
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent) 0%, transparent 62%),
    var(--country-pattern-hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.34;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 28%, #000 100%);
}

.entry-page.is-country .entry-hero.has-logo-flow .entry-hero__pattern {
  z-index: 1;
  opacity: 0.3;
}

.entry-page.is-country .entry-article {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 249, 233, 0.94), rgba(255, 249, 233, 0.88) 55%, rgba(255, 249, 233, 0.95)),
    var(--country-pattern-paper);
  background-size: auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}

.entry-page.is-country .infobox {
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(8, 6, 24, 0.9), rgba(8, 6, 24, 0.95)),
    var(--country-pattern-side);
  background-size: auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 760px) {
  .entry-page.is-country .entry-hero__pattern {
    opacity: 0.28;
  }

  .entry-page.is-country .entry-article {
    background-image:
      linear-gradient(180deg, rgba(255, 249, 233, 0.96), rgba(255, 249, 233, 0.92)),
      var(--country-pattern-paper);
  }
}

/* subtly mute the country infobox texture so facts stay legible */
.entry-page.is-country .infobox {
  background-image:
    linear-gradient(rgba(8, 6, 24, 0.95), rgba(8, 6, 24, 0.975)),
    var(--country-pattern-side);
}

/* Country hero: enlarged watermark logo + full logo preview */
.entry-hero-emblem {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-220px, -12vw, -80px);
  width: clamp(390px, 46vw, 760px);
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  opacity: 0.18;
  mix-blend-mode: soft-light;
  cursor: zoom-in;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  transition: opacity 180ms ease;
}

.entry-hero-emblem img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.entry-hero-emblem:hover,
.entry-hero-emblem:focus-visible {
  opacity: 0.3;
}

.entry-hero-emblem:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 8px;
}

body.logo-preview-open {
  overflow: hidden;
}

.country-logo-preview[hidden] {
  display: none;
}

.country-logo-preview {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 3, 14, 0.8);
  opacity: 0;
  cursor: zoom-out;
  transition: opacity 180ms ease;
}

.country-logo-preview.is-open {
  opacity: 1;
}

.country-logo-preview__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  max-width: min(84vw, 780px);
  cursor: default;
  outline: none;
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.country-logo-preview.is-open .country-logo-preview__inner {
  transform: translateY(0) scale(1);
}

.country-logo-preview__inner img {
  display: block;
  width: auto;
  max-width: min(72vw, 680px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.country-logo-preview__inner p {
  max-width: 100%;
  margin: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .entry-hero-emblem {
    right: -18%;
    width: 58vw;
    opacity: 0.15;
  }
}

@media (max-width: 760px) {
  .entry-hero-emblem {
    display: none;
  }

  .country-logo-preview__inner img {
    max-width: 84vw;
    max-height: 64vh;
  }

  .country-logo-preview__inner p {
    font-size: 10px;
    letter-spacing: 0.13em;
  }
}

/* Header join CTA */
.main-nav {
  gap: clamp(10px, 1.55vw, 24px);
}

.nav-link--join {
  align-self: center;
  flex-direction: row;
  gap: 4px;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

.nav-link--join .nav-cn {
  font-size: 12px;
  line-height: 1;
}

.nav-join-arrow {
  font-size: 12px;
  line-height: 1;
}

.nav-link--join::after {
  display: none;
}

.nav-link--join:hover,
.nav-link--join:focus-visible {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-link--join.is-active {
  background: var(--blue);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}

.mobile-menu .mobile-join {
  margin-top: 4px;
  border: 2px solid var(--ink);
  background: var(--pink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.mobile-menu .mobile-join span,
.mobile-menu .mobile-join em {
  color: var(--paper);
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .main-nav {
    gap: 12px;
  }

  .main-nav .nav-en {
    display: none;
  }

  .nav-link {
    padding: 8px 0;
  }
}

/* Hero join link */
.hero-join-link {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--acid);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  white-space: nowrap;
}

.hero-join-link span {
  font-family: var(--mono);
  font-size: 0.72em;
}

.hero-join-link:hover {
  color: var(--pink);
  border-color: var(--pink);
}

/* Join page */
.join-page {
  background: var(--paper);
  color: var(--ink);
}

.join-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(142px, 16vh, 205px) 0 clamp(56px, 7vw, 90px);
  border-bottom: 3px solid var(--ink);
  background: var(--night);
  color: var(--paper);
}

.join-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 26%, rgba(223, 249, 84, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 64%, rgba(0, 198, 235, 0.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 82%, rgba(255, 0, 120, 0.55) 50%, transparent 51%);
  background-size: 260px 230px, 310px 280px, 210px 260px;
  opacity: 0.55;
}

.join-hero__inner {
  position: relative;
  z-index: 2;
}

.join-hero .eyebrow {
  color: var(--acid);
}

.join-hero .eyebrow span {
  color: var(--pink);
}

.join-hero h1 {
  max-width: 1100px;
  margin: clamp(20px, 3vw, 35px) 0 clamp(20px, 3vw, 31px);
  font-family: var(--display);
  font-size: clamp(4.2rem, 10vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.join-hero h1 em {
  color: var(--acid);
  font-style: normal;
}

.join-lede {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 249, 233, 0.72);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.8;
}

.join-hero__meta {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 760px;
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: 17px;
  border-top: 1px solid rgba(255, 249, 233, 0.18);
}

.join-hero__meta > span {
  color: var(--pink);
  font-size: 18px;
  line-height: 1.2;
}

.join-hero__meta p {
  margin: 0;
  color: rgba(255, 249, 233, 0.5);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
}

.join-hero__watermark {
  position: absolute;
  right: -0.03em;
  bottom: -0.24em;
  z-index: 0;
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(12rem, 33vw, 31rem);
  font-weight: 900;
  line-height: 0.72;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}

.join-hero__star {
  position: absolute;
  z-index: 1;
  color: var(--pink);
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1;
}

.join-hero__star--one {
  top: 21%;
  right: 12%;
}

.join-hero__star--two {
  right: 28%;
  bottom: 16%;
  color: var(--cyan);
  font-size: clamp(18px, 2vw, 30px);
}

.join-body {
  padding: clamp(45px, 6vw, 82px) 0 clamp(65px, 8vw, 110px);
  background: var(--paper);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(25px, 3.5vw, 48px);
  align-items: start;
}

.join-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--cyan);
}

.join-card--afdian {
  background: var(--violet);
  color: var(--paper);
  box-shadow: 12px 12px 0 var(--pink);
}

.join-card__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.join-card__strip span:last-child {
  opacity: 0.55;
}

.join-card__inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
}

.join-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.join-qr img {
  display: block;
  width: 100%;
  max-width: 222px;
  aspect-ratio: 1;
  object-fit: contain;
}

.join-qr span {
  color: #666;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-align: center;
}

.join-copy {
  min-width: 0;
}

.join-kicker {
  margin: 0 0 7px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.join-card--afdian .join-kicker {
  color: var(--acid);
}

.join-kicker span {
  color: var(--pink);
}

.join-copy h2 {
  margin: 0 0 9px;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.join-number {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 15px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: 0.015em;
  line-height: 1;
}

.join-number span {
  color: #777;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.join-copy p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
}

.join-card--afdian .join-copy p {
  color: rgba(255, 249, 233, 0.78);
}

.join-copy .join-support {
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.join-account {
  color: var(--acid) !important;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.04em;
}

.join-hint {
  color: rgba(255, 249, 233, 0.48) !important;
  font-family: var(--mono);
  font-size: 9px !important;
}

.join-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 10px 13px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.join-copy-button:hover {
  background: var(--pink);
  color: var(--paper);
}

.join-copy-button span {
  font-size: 12px;
}

.join-footnote {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 66px);
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: #66665b;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.join-footnote__mark {
  color: var(--pink);
  font-size: 17px;
}

.join-footnote p {
  margin: 0;
}

.join-footnote a {
  margin-left: auto;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .join-grid {
    grid-template-columns: 1fr;
  }

  .join-hero__watermark {
    font-size: 42vw;
  }
}

@media (max-width: 640px) {
  .join-hero {
    padding-top: 119px;
  }

  .join-hero h1 {
    font-size: clamp(3.2rem, 14.5vw, 5.4rem);
    line-height: 0.86;
  }

  .join-hero__meta {
    margin-top: 28px;
  }

  .join-card__inner {
    grid-template-columns: 1fr;
  }

  .join-qr {
    width: min(100%, 255px);
    margin: 0 auto;
  }

  .join-copy h2 {
    font-size: 2.1rem;
  }

  .join-footnote {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .join-footnote a {
    width: 100%;
    margin-left: 0;
    padding-top: 5px;
  }
}

@media (max-width: 640px) {
  .join-hero h1 {
    font-size: clamp(2.7rem, 10.7vw, 4.3rem);
    letter-spacing: -0.07em;
  }
}

.join-qr-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.join-qr-link:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.join-copy-button {
  text-decoration: none;
}

.join-grid {
  align-items: stretch;
}

.join-card {
  height: 100%;
}

/* Open-call join CTA */
.open-call__join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  background: var(--pink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--display);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.open-call__join:hover,
.open-call__join:focus-visible {
  background: var(--blue);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.open-call__join-mark {
  color: var(--acid);
  font-size: 1.05em;
}

.open-call__join-arrow {
  margin-left: 3px;
  font-family: var(--mono);
  font-size: 0.8em;
}

@media (max-width: 640px) {
  .open-call__join {
    width: 100%;
    justify-content: space-between;
    margin-top: 18px;
    padding: 12px 13px;
    font-size: 1.05rem;
  }
}

/* Floating sigils in the World Index */
.index-sigils {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.index-sigil {
  position: absolute;
  display: block;
  width: var(--sigil-size, 90px);
  height: var(--sigil-size, 90px);
  opacity: 0.78;
  transform:
    translate3d(var(--sigil-x, 0px), var(--sigil-y, 0px), 0)
    rotate(calc(var(--sigil-rot, 0deg) + var(--sigil-turn, 0deg)))
    scale(var(--sigil-scale, 1));
  transition: transform 240ms cubic-bezier(0.18, 0.89, 0.32, 1.18);
  will-change: transform;
}

.index-sigil__float {
  display: block;
  width: 100%;
  height: 100%;
  animation: sigil-drift var(--float-dur, 7s) ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
}

.index-sigil img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.index-sigil--1 {
  left: 43%;
  top: 1.5%;
  --sigil-size: 72px;
  --sigil-rot: -9deg;
  --float-dur: 7.2s;
}

.index-sigil--2 {
  right: 1.2%;
  top: 2.5%;
  --sigil-size: 92px;
  --sigil-rot: 12deg;
  --float-dur: 8.1s;
  --float-delay: -1.8s;
}

.index-sigil--3 {
  left: 0.7%;
  top: 33%;
  --sigil-size: 90px;
  --sigil-rot: -12deg;
  --float-dur: 6.8s;
  --float-delay: -3.2s;
}

.index-sigil--4 {
  right: 1.1%;
  top: 43%;
  --sigil-size: 112px;
  --sigil-rot: 14deg;
  --float-dur: 8.6s;
  --float-delay: -2.1s;
}

.index-sigil--5 {
  left: 1.8%;
  bottom: 4%;
  --sigil-size: 94px;
  --sigil-rot: 8deg;
  --float-dur: 7.6s;
  --float-delay: -4.4s;
}

.index-sigil--6 {
  right: 3%;
  bottom: 8%;
  --sigil-size: 78px;
  --sigil-rot: -16deg;
  --float-dur: 9s;
  --float-delay: -5.1s;
}

@keyframes sigil-drift {
  from {
    transform: translate3d(0, -4px, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(0, 10px, 0) rotate(2deg);
  }
}

@media (max-width: 980px) {
  .index-sigil--3,
  .index-sigil--4 {
    opacity: 0.48;
    --sigil-size: 72px;
  }

  .index-sigil--5,
  .index-sigil--6 {
    opacity: 0.36;
    --sigil-size: 62px;
  }
}

@media (max-width: 640px) {
  .index-sigil--1 {
    left: 55%;
    top: 1%;
    --sigil-size: 54px;
    opacity: 0.58;
  }

  .index-sigil--2 {
    right: 0;
    top: 2%;
    --sigil-size: 60px;
    opacity: 0.58;
  }

  .index-sigil--3,
  .index-sigil--4,
  .index-sigil--5,
  .index-sigil--6 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-sigil {
    transition: none;
  }

  .index-sigil__float {
    animation: none;
  }
}

/* Reposition the six sigils into the clear header band */
.index-sigil--1 {
  left: 7%;
  top: 10px;
  right: auto;
  bottom: auto;
  --sigil-size: 68px;
  --sigil-rot: -9deg;
}

.index-sigil--2 {
  left: 27%;
  right: auto;
  top: 48px;
  bottom: auto;
  --sigil-size: 48px;
  --sigil-rot: 14deg;
}

.index-sigil--3 {
  left: 47%;
  right: auto;
  top: 7px;
  bottom: auto;
  --sigil-size: 60px;
  --sigil-rot: -12deg;
}

.index-sigil--4 {
  left: 65%;
  right: auto;
  top: 50px;
  bottom: auto;
  --sigil-size: 44px;
  --sigil-rot: 8deg;
}

.index-sigil--5 {
  left: auto;
  right: 11%;
  top: 8px;
  bottom: auto;
  --sigil-size: 78px;
  --sigil-rot: 10deg;
}

.index-sigil--6 {
  left: auto;
  right: 2.4%;
  top: 53px;
  bottom: auto;
  --sigil-size: 56px;
  --sigil-rot: -17deg;
}

@media (max-width: 980px) {
  .index-sigil--1 { --sigil-size: 58px; top: 8px; }
  .index-sigil--2 { --sigil-size: 40px; top: 38px; }
  .index-sigil--3 { --sigil-size: 50px; top: 6px; }
  .index-sigil--4 { --sigil-size: 36px; top: 40px; }
  .index-sigil--5 { --sigil-size: 64px; top: 6px; }
  .index-sigil--6 { --sigil-size: 46px; top: 42px; }
}

@media (max-width: 640px) {
  .index-sigil--1 { left: 4%; top: 4px; --sigil-size: 38px; opacity: 0.58; }
  .index-sigil--2 { left: 26%; top: 26px; --sigil-size: 28px; opacity: 0.5; }
  .index-sigil--3 { left: 47%; top: 2px; --sigil-size: 34px; opacity: 0.58; }
  .index-sigil--4 { left: 64%; top: 26px; --sigil-size: 26px; opacity: 0.5; }
  .index-sigil--5 { right: 5%; top: 2px; --sigil-size: 40px; opacity: 0.58; }
  .index-sigil--6 { right: 2%; top: 28px; --sigil-size: 30px; opacity: 0.5; }
}

@media (max-width: 640px) {
  .index-sigil--3,
  .index-sigil--4,
  .index-sigil--5,
  .index-sigil--6 {
    display: block;
  }
}

/* Archive type tabs */
.archive-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 22px 0 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}

.archive-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
  border-right: 1.5px solid var(--ink);
}

.archive-tab:last-child {
  border-right: 0;
}

.archive-tab span {
  color: var(--muted);
  font-size: 8px;
}

.archive-tab:hover {
  background: var(--acid);
}

.archive-tab.is-active {
  background: var(--ink);
  color: var(--acid);
}

.archive-tab.is-active span {
  color: rgba(223, 249, 84, 0.62);
}

/* Character archive */
.character-controls {
  grid-template-columns: minmax(270px, 1.2fr) minmax(220px, 0.55fr);
}

.character-filter {
  display: flex;
  min-width: 0;
}

.character-filter select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.character-filter select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.character-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  align-items: stretch;
}

.character-index-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.character-index-card:hover,
.character-index-card:focus-visible {
  transform: translate(-2px, -3px);
  box-shadow: 10px 10px 0 var(--accent);
}

.character-index-card__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 2px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
}

.character-index-card__strip span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-index-card__strip span:last-child {
  flex: 0 0 auto;
  font-weight: 700;
}

.character-index-card__body {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 15px 13px 13px;
}

.character-index-avatar {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
  color: var(--accent-deep);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.character-index-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-index-copy {
  min-width: 0;
}

.character-index-copy h2 {
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.character-index-en {
  margin: 0 0 6px;
  overflow: hidden;
  color: #77776a;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-index-meta {
  margin: 0;
  overflow: hidden;
  color: #4f4f47;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.character-index-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 8px 12px;
  border-top: 1px dashed rgba(19, 19, 19, 0.25);
  color: #77776a;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.character-index-card__foot span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-index-card__foot span:last-child {
  flex: 0 0 auto;
  color: var(--ink);
}

.character-empty {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .character-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .archive-tabs {
    width: 100%;
  }

  .archive-tab {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 9px;
  }

  .character-controls {
    grid-template-columns: 1fr;
  }

  .character-index-grid {
    grid-template-columns: 1fr;
  }
}

.character-index-tags {
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.character-index-tags em {
  font-style: normal;
  white-space: nowrap;
}

/* Full-page representative colours for the three allied peoples */
.entry-page.is-full-theme {
  background: var(--accent);
}

.entry-page.is-full-theme .entry-content {
  background: var(--accent);
  color: var(--on-accent);
}

.entry-page.is-full-theme .entry-article {
  background: var(--paper);
  color: var(--ink);
}

.entry-page.is-full-theme .entry-page-link,
.entry-page.is-full-theme .entry-pagination__index,
.entry-page.is-full-theme .entry-management {
  color: var(--ink);
}

.entry-page.is-full-theme .entry-management {
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--accent-deep);
}

.entry-page.is-full-theme .aside-back {
  color: var(--on-accent);
}

.entry-page.is-full-theme .infobox {
  color: var(--paper);
}

/* Dragon Kingdom: red crown, bamboo-green ground */
.entry-page.is-dragon-theme {
  background: var(--accent-deep);
}

.entry-page.is-dragon-theme .entry-content {
  background: var(--accent-deep);
  color: var(--paper);
}

.entry-page.is-dragon-theme .aside-back {
  color: var(--paper);
}

.entry-page.is-dragon-theme .entry-management {
  box-shadow: 4px 4px 0 var(--accent);
}

/* Siren City: cardamom purple crown, tangerine ground */
.entry-page.is-siren-theme {
  background: var(--accent-deep);
}

.entry-page.is-siren-theme .entry-content {
  background: var(--accent-deep);
  color: var(--ink);
}

.entry-page.is-siren-theme .aside-back {
  color: var(--ink);
}

.entry-page.is-siren-theme .entry-management {
  box-shadow: 4px 4px 0 var(--accent);
}

.entry-page.is-siren-theme .entry-hero {
  background: linear-gradient(115deg, #6700A3 0%, #E02F75 58%, #FF5A57 100%);
}

.entry-page.is-siren-theme .infobox {
  background: #1B2062;
  border-color: #050C38;
}

.entry-page.is-siren-theme .infobox__head {
  background: linear-gradient(90deg, #6700A3 0%, #E02F75 100%);
  color: #FCCBF0;
}

.entry-page.is-siren-theme .entry-management {
  border-color: #6700A3;
}

/* Orange-blue sunset for the two sunken / skybound cities */
.entry-page.is-siren-theme,
.entry-page.is-aerie-theme {
  background: #0047FF;
}

.entry-page.is-siren-theme .entry-content,
.entry-page.is-aerie-theme .entry-content {
  background: #0047FF;
  color: #FFF9E9;
}

.entry-page.is-siren-theme .aside-back,
.entry-page.is-aerie-theme .aside-back {
  color: #FFF9E9;
}

.entry-page.is-siren-theme .entry-hero,
.entry-page.is-aerie-theme .entry-hero {
  background: linear-gradient(115deg, #FF7A00 0%, #FF9A2E 100%);
}

.entry-page.is-siren-theme .infobox,
.entry-page.is-aerie-theme .infobox {
  background: #001A66;
  border-color: #001A66;
}

.entry-page.is-siren-theme .infobox__head,
.entry-page.is-aerie-theme .infobox__head {
  background: #FF7A00;
  color: #131313;
}

.entry-page.is-siren-theme .entry-management,
.entry-page.is-aerie-theme .entry-management {
  border-color: #FF7A00;
  box-shadow: 4px 4px 0 #FF7A00;
}

/* Siren City stays purple-orange; Aerie keeps orange-blue */
.entry-page.is-siren-theme {
  background: #FF5A57;
}

.entry-page.is-siren-theme .entry-content {
  background: #FF5A57;
  color: var(--ink);
}

.entry-page.is-siren-theme .aside-back {
  color: var(--ink);
}

.entry-page.is-siren-theme .entry-hero {
  background: linear-gradient(115deg, #6700A3 0%, #E02F75 58%, #FF5A57 100%);
}

.entry-page.is-siren-theme .infobox {
  background: #1B2062;
  border-color: #050C38;
}

.entry-page.is-siren-theme .infobox__head {
  background: linear-gradient(90deg, #6700A3 0%, #E02F75 100%);
  color: #FCCBF0;
}

.entry-page.is-siren-theme .entry-management {
  border-color: #6700A3;
  box-shadow: 4px 4px 0 #6700A3;
}

/* Black-and-white kingdom: fully monochrome interface */
.entry-page.is-monochrome-theme {
  background: #F4F4F0;
  color: #0A0A0A;
}

.entry-page.is-monochrome-theme .entry-content {
  background: #F4F4F0;
  color: #0A0A0A;
}

.entry-page.is-monochrome-theme .entry-hero {
  background: #0A0A0A;
  color: #F7F7F2;
}

.entry-page.is-monochrome-theme .entry-article {
  border-color: #0A0A0A;
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 12px 12px 0 #0A0A0A;
}

.entry-page.is-monochrome-theme .entry-quote {
  background: #0A0A0A;
  color: #F7F7F2;
}

.entry-page.is-monochrome-theme .entry-quote__mark {
  color: #F7F7F2;
}

.entry-page.is-monochrome-theme .infobox {
  border-color: #0A0A0A;
  background: #0A0A0A;
  color: #F7F7F2;
}

.entry-page.is-monochrome-theme .infobox__head {
  border-bottom: 2px solid #0A0A0A;
  background: #F7F7F2;
  color: #0A0A0A;
}

.entry-page.is-monochrome-theme .entry-management {
  border-color: #0A0A0A;
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 4px 4px 0 #0A0A0A;
}

.entry-page.is-monochrome-theme .entry-page-link,
.entry-page.is-monochrome-theme .entry-pagination__index {
  border-color: #0A0A0A;
  background: #FFFFFF;
  color: #0A0A0A;
}

.entry-page.is-monochrome-theme .entry-pagination__index span {
  color: #0A0A0A;
}

.entry-page.is-monochrome-theme .aside-back {
  color: #0A0A0A;
}

.entry-page.is-monochrome-theme .entry-hero img,
.entry-page.is-monochrome-theme .entry-article img {
  filter: grayscale(1) contrast(1.04);
}

.entry-page.is-monochrome-theme .entry-hero,
.entry-page.is-monochrome-theme .entry-article,
.entry-page.is-monochrome-theme .entry-aside,
.entry-page.is-monochrome-theme .entry-pagination {
  filter: grayscale(1);
}

/* Production read-only: remove every self-editing surface */
[data-open-add],
[data-toggle-manage],
[data-export-local],
[data-import-local],
[data-restore-hidden],
[data-add-character],
[data-edit-character],
[data-delete-character],
[data-delete-entry],
[data-edit-entry]:not(.entry-logo__button),
.archive-add,
.archive-tools,
.archive-card-controls,
.manage-hint,
.entry-management,
.entry-image-field,
.figure-edit,
.entry-quick-actions,
.cast-add-slot,
.entry-logo:not(.has-image),
.entry-logo__caption,
.myth-plate__empty {
  display: none !important;
}

.entry-logo__button {
  cursor: default !important;
  pointer-events: none !important;
}
