/* Plate I — layered reconstruction of the Skyborn blueprint mockup.
   Edit copy in index.html. Do not flatten this into an image. */

.rooms-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.plate {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  color: #9ec4d8;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}

.note {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #8fb6cc;
}

.note a,
a.note,
a.layer-notes {
  color: inherit;
  text-decoration: none;
}

.note a:hover,
.note a:focus-visible,
a.note:hover,
a.note:focus-visible,
a.layer-notes:hover,
a.layer-notes:focus-visible {
  color: var(--brass);
  text-decoration: none;
}

.layer-nav {
  position: absolute;
  z-index: 8;
  top: 1.15rem;
  left: 1.6rem;
  right: 3.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
  font-size: clamp(0.58rem, 1.05vw, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8fb6cc;
}

.layer-nav .brand-line { justify-self: start; }

.layer-nav nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}

.layer-nav nav a {
  color: inherit;
  text-decoration: none;
}

.layer-nav nav a:hover,
.layer-nav nav a:focus-visible {
  color: var(--brass);
}

.layer-nav nav .dot {
  opacity: 0.55;
  pointer-events: none;
}

.layer-nav .plate-line {
  justify-self: end;
  text-align: right;
}

.layer-nav .rev {
  display: block;
  margin-top: 0.25rem;
  letter-spacing: 0.18em;
}

.mast {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 6%;
  bottom: 3%;
  width: min(68vw, 56rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.layer-type {
  position: static;
  z-index: auto;
  margin: 0;
  width: min(36rem, 82%);
  flex: 0 0 auto;
  text-align: center;
}

.layer-creature {
  position: static;
  z-index: auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.layer-creature img,
.layer-type img {
  display: block;
  width: 100%;
  height: auto;
}

.layer-creature img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.star {
  display: block;
  margin: 0 auto 0.2rem;
  width: 2.4rem;
  height: 2.4rem;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.2;
}

.pedantic {
  margin: 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 8.6vw, 7.8rem);
  line-height: 0.84;
  letter-spacing: 0.08em;
  color: #d7b56a;
  background: linear-gradient(180deg, #f3d790 0%, #c49a42 55%, #8d6d28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theory {
  position: relative;
  margin: 0.08em 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(3.1rem, 9.6vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: 0.12em;
}

.theory__grid,
.theory__wire {
  display: block;
}

.theory__grid {
  background-image:
    linear-gradient(rgba(94, 200, 232, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 200, 232, 0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.theory__wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2.2px #5ed4f2;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 8px rgba(70, 180, 230, 0.28));
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.85rem 0 0;
  color: var(--brass);
}

.rule::before,
.rule::after {
  content: "";
  width: 4.2rem;
  border-top: 1px solid var(--brass);
}

.scholar {
  margin: 0.7rem 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.95rem);
  letter-spacing: 0.2em;
  color: #e8e2d2;
}

.layer-notes {
  position: absolute;
  z-index: 6;
  display: block;
  font-size: clamp(0.82rem, 1.25vw, 1.02rem);
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: none;
}

.layer-notes .name {
  display: block;
  letter-spacing: 0.16em;
}

.n-id {
  top: 14%;
  left: 1.7rem;
  width: 14rem;
}

.n-id .name {
  font-size: 1.05em;
  letter-spacing: 0.16em;
}

.n-wing { top: 26%; left: 1.7rem; width: 13.5rem; }
.n-eye { top: 40%; left: 1.7rem; width: 13rem; }
.n-fur { top: 52%; left: 1.7rem; width: 13.5rem; }
.n-shoulder { top: 64%; left: 1.7rem; width: 13.5rem; }
.n-paw { top: 38%; right: 2rem; left: auto; width: 17rem; text-align: right; }
.n-notable {
  left: 1.7rem;
  bottom: 7%;
  width: 16rem;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.n-notable strong {
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.n-locus { top: 20%; right: 2rem; width: 17rem; text-align: right; }
.n-rune { top: 56%; right: 2rem; width: 17rem; text-align: right; }
.n-magister {
  top: 74%;
  right: 2rem;
  bottom: auto;
  width: 17rem;
  text-align: right;
}

.layer-marks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.compass {
  position: absolute;
  fill: none;
  stroke: #6aa8c8;
  stroke-width: 1;
}

.compass--ne { top: 8%; right: 3.2%; width: 7.2%; }
.compass--se { top: 48%; right: 3.8%; width: 6.4%; }

.leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.leaders line,
.leaders polyline {
  fill: none;
  stroke: #6aa8c8;
  stroke-width: 0.9;
  opacity: 0.75;
}

.ticks {
  position: absolute;
  left: 16.5%;
  bottom: 21%;
  width: 14%;
  height: 8px;
  background: repeating-linear-gradient(90deg, #6aa8c8 0 1px, transparent 1px 22%);
  opacity: 0.7;
}

@media (max-width: 860px) {
  body.home {
    height: auto;
    overflow: auto;
  }

  .plate {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 3.2rem 1rem 2rem;
  }

  .mast {
    position: static;
    transform: none;
    width: min(22rem, 88vw);
    margin: 0.7rem auto;
  }

  .layer-nav,
  .layer-creature,
  .layer-type,
  .layer-notes {
    position: static;
    transform: none;
    width: auto;
    text-align: center;
    margin: 0.7rem auto;
  }

  .layer-nav {
    display: block;
    right: auto;
  }

  .layer-nav .plate-line,
  .layer-nav nav { margin-top: 0.45rem; }

  .layer-creature { width: min(22rem, 88vw); }

  .n-locus, .n-rune, .n-magister, .n-paw, .n-shoulder { text-align: center; }

  .layer-marks, .ticks { display: none; }
}
