:root {
  --site-map-bg: #0d1510;
  --site-map-panel: rgba(255, 255, 255, 0.045);
  --site-map-ink: #eef1e8;
  --site-map-muted: #aab7ad;
  --site-map-accent: #d2a36d;
  --site-map-green: #85d6a3;
  --site-map-line: rgba(230, 238, 226, 0.15);
}

html[data-theme="light"] {
  --site-map-bg: #eef1e8;
  --site-map-panel: rgba(255, 255, 255, 0.55);
  --site-map-ink: #203128;
  --site-map-muted: #5f6f64;
  --site-map-accent: #966334;
  --site-map-green: #356f50;
  --site-map-line: rgba(36, 54, 43, 0.16);
}

.site-map {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 100px);
  padding: 82px max(7vw, 24px) 88px;
  border-top: 1px solid var(--site-map-line);
  background:
    radial-gradient(circle at 12% 12%, rgba(133, 214, 163, 0.08), transparent 28%),
    var(--site-map-bg);
  color: var(--site-map-ink);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  transition: background-color 0.45s ease, color 0.45s ease;
}

.site-map * {
  box-sizing: border-box;
}

.site-map-intro {
  max-width: 430px;
}

.site-map-eyebrow {
  margin: 0 0 18px;
  color: var(--site-map-accent);
  font: 9px var(--mono, "DM Mono", monospace);
  letter-spacing: 0.16em;
}

.site-map h2 {
  margin: 0 0 22px;
  font: 400 clamp(38px, 5vw, 65px) / 0.98 var(--serif, Georgia, serif);
  letter-spacing: -0.045em;
}

.site-map-intro > p:not(.site-map-eyebrow) {
  margin: 0;
  color: var(--site-map-muted);
  font-size: 14px;
  line-height: 1.85;
}

.site-map-index {
  display: inline-flex;
  margin-top: 24px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--site-map-accent);
  color: var(--site-map-accent);
  font: 9px var(--mono, "DM Mono", monospace);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-map-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-map-groups section {
  padding: 24px;
  border: 1px solid var(--site-map-line);
  border-radius: 12px;
  background: var(--site-map-panel);
}

.site-map-groups h3 {
  margin: 0 0 17px;
  color: var(--site-map-green);
  font: 9px var(--mono, "DM Mono", monospace);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-map-groups a {
  display: block;
  padding: 7px 0;
  color: var(--site-map-ink);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-map-groups a:is(:hover, :focus-visible) {
  color: var(--site-map-accent);
  transform: translateX(3px);
}

.site-map-groups a:focus-visible,
.site-map-index:focus-visible {
  outline: 2px solid var(--site-map-accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-map {
    grid-template-columns: 1fr;
    padding-top: 68px;
    padding-bottom: 70px;
  }
}

@media (max-width: 650px) {
  .site-map {
    padding-inline: 20px;
  }

  .site-map-groups {
    grid-template-columns: 1fr;
  }

  .site-map-groups section {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-map,
  .site-map-groups a {
    transition: none;
  }
}

.nyarindo-thread-footer {
  position: relative;
  inset: auto;
  width: 100%;
  margin: 0;
  clear: both;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 24px 7vw;
  border-top: 1px solid rgba(212, 179, 126, 0.24);
  background: #09110c;
  color: #eef1e8;
  font: 9px/1.5 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.nyarindo-thread-footer > a,
.nyarindo-thread-footer nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nyarindo-thread-footer > a:is(:hover, :focus-visible),
.nyarindo-thread-footer nav a:is(:hover, :focus-visible) {
  color: #d8b477;
  border-bottom-color: currentColor;
}

.nyarindo-thread-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 14px;
}

.nyarindo-thread-footer nav span {
  color: #7f9a87;
}

html[data-theme="light"] .nyarindo-thread-footer {
  border-top-color: rgba(77, 103, 84, 0.2);
  background: #e8ecdf;
  color: #23352a;
}

html[data-theme="light"] .nyarindo-thread-footer > a:is(:hover, :focus-visible),
html[data-theme="light"] .nyarindo-thread-footer nav a:is(:hover, :focus-visible) {
  color: #8e5c2f;
}

html[data-theme="light"] .nyarindo-thread-footer nav span {
  color: #708176;
}

@media (max-width: 650px) {
  .nyarindo-thread-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px;
  }

  .nyarindo-thread-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  [data-page="peace"] .movement-grid,
  [data-page="peace"] .movement-grid article {
    min-width: 0;
  }

  [data-page="peace"] .movement-grid article {
    width: 100%;
    padding: 22px;
  }

  [data-page="both-hats"] .hat-field {
    overflow: hidden;
  }

  [data-page="both-hats"] .orbit {
    width: 220px;
    height: 220px;
  }

  [data-page="both-hats"] .orbit-one {
    translate: -34px 0;
  }

  [data-page="both-hats"] .orbit-two {
    translate: 34px 0;
  }

  [data-page="both-hats"] .hat-label {
    width: 118px;
    height: 118px;
    font-size: 23px;
  }
}
