.territories {
  background: radial-gradient(ellipse at 50% 6%, #2b1d19 0, #111114 33%, #0b0c0f 75%);
  --frame: #59432e;
  --brass: #d7b579;
}

.territory-inner { max-width: 1360px; margin-inline: auto; }
.world .sigil { width: min(100%, 430px); }
.world .sigil i:nth-of-type(n) {
  --angle: calc((var(--seal-index) - 1) * 360deg / 7 - 90deg);
  left: calc(50% + 50% * cos(var(--angle)));
  top: calc(50% + 50% * sin(var(--angle)));
  transform: translate(-50%, -50%);
}
.sigil i:nth-of-type(1) { --seal-index: 1; }
.sigil i:nth-of-type(2) { --seal-index: 2; }
.sigil i:nth-of-type(3) { --seal-index: 3; }
.sigil i:nth-of-type(4) { --seal-index: 4; }
.sigil i:nth-of-type(5) { --seal-index: 5; }
.sigil i:nth-of-type(6) { --seal-index: 6; }
.sigil i:nth-of-type(7) { --seal-index: 7; }

.territory-heading { margin-inline: auto; text-align: center; }
.territory-heading .territory-note { font-size: .82rem; color: var(--brass); }
.territory-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 2.5rem;
  border-block: 1px solid var(--frame);
  text-align: center;
}
.territory-key div { padding: 1rem .7rem; }
.territory-key div + div { border-left: 1px solid var(--frame); }
.territory-key dt { color: var(--brass); font-size: 1.12rem; font-weight: 700; }
.territory-key dd { margin: .3rem 0 0; color: #c3b7a8; font-size: .85rem; }

.siege-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(23rem, 43vw, 36rem);
  margin: 0 0 1.15rem;
  border: 1px solid var(--brass);
  background: #1b1819;
}
.siege-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 37%;
  z-index: -2;
}
.siege-feature::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(0deg, #0c0b0e 0%, #0c0b0ebf 32%, transparent 70%);
}
.siege-copy { padding: clamp(1.3rem, 4vw, 3.5rem); }
.siege-copy h3 {
  margin: .3rem 0 .7rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  color: #f4e9d5;
  line-height: 1.05;
}
.siege-copy > p:not(.kicker) { max-width: 36rem; color: #e0d7cb; }
.siege-badge {
  display: inline-block;
  margin-top: .5rem;
  padding: .28rem .75rem;
  border: 1px solid #9d7a4d;
  background: #241916;
  color: #f3c987;
  font-size: .78rem;
}

.territory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.territory-card { min-width: 0; border: 1px solid var(--frame); background: #141315; }
.territory-card figure { position: relative; margin: 0; overflow: hidden; border-bottom: 1px solid var(--frame); }
.territory-card img { display: block; width: 100%; height: auto; }
.territory-number {
  position: absolute;
  inset: .7rem auto auto .7rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--brass);
  background: #171315e8;
  color: #ebce93;
}
.territory-card-copy { padding: 1rem 1.2rem 1.3rem; }
.territory-card h3 { margin: 0; color: #f4e9d5; font-size: clamp(1.2rem, 2vw, 1.7rem); }
.territory-card p { margin: .5rem 0 0; color: #c3b7a8; font-size: .88rem; }
.territory-card .castle-label { margin: .25rem 0 .7rem; color: var(--brass); font-size: .77rem; }
.castle-label strong { margin-left: .35rem; color: #e8d4af; }

.siege-chronicle {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.4rem, 5vw, 4rem);
  margin-top: 2rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  background: linear-gradient(120deg, #281719, #141315 70%);
  border: 1px solid var(--frame);
}
.siege-chronicle h3 { margin: .5rem 0 1rem; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.28; color: #f2e4ce; }
.siege-chronicle p { color: #c3b7a8; margin: .4rem 0 0; font-size: .9rem; }
.siege-chronicle .kicker { color: var(--brass); }
.siege-chronicle ol { list-style: none; padding: 0; margin: 0; }
.siege-chronicle li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; padding: .65rem 0; }
.siege-chronicle li + li { border-top: 1px solid #59432e; }
.siege-chronicle li > span { font-family: var(--display); color: var(--brass); }
.siege-chronicle li strong { color: #f4e9d5; }

@media (max-width: 1100px) {
  .site-header nav { gap: .8rem; }
  .territory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .siege-chronicle { grid-template-columns: 1fr; }
  .territory-key dd { font-size: .75rem; line-height: 1.5; }
}

@media (max-width: 540px) {
  .territory-grid { grid-template-columns: 1fr; }
  .siege-feature { min-height: 25rem; }
  .siege-feature img { object-position: 53% 50%; }
  .siege-feature::after { background: linear-gradient(0deg, #0c0b0e 0%, #0c0b0ece 37%, transparent 78%); }
}
