
:root{
    --bg:#0f0a1a;        /* deep night purple */
    --panel:#1c1230;     /* card backdrop */
    --ink:#e9e3ff;       /* soft light text */
    --muted:#b9a9d6;     /* secondary text */
    --accent:#b389ff;    /* lavender accent */
    --glow:#5af2d6;      /* subtle emerald glow */
  }
  html,body{height:100%}
  body{
    margin:0; display:grid; place-items:center; background:var(--bg); color:var(--ink);
    font: 17px/1.7 ui-serif, Georgia, "Times New Roman", serif;
    padding:3rem 1rem;
  }
  .card{
    width:min(820px, 90vw);
    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--panel);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:18px; padding:2rem; box-shadow:0 20px 60px rgba(0,0,0,0.35);
  }
  h1{
    margin:0 0 .25rem 0; text-align:center; font-weight:800; letter-spacing:.3px;
    font-size:clamp(28px, 4vw, 40px); color:#e9d7ff;
  }
  
  h2{
    margin:0 0 .25rem 0; text-align:center; font-weight:800; letter-spacing:.3px;
  }
  
  p.lead{margin:.25rem 0 1.5rem 0; text-align:center; color:var(--muted)}
  figure{margin:0; background:#140d25; border:1px solid rgba(255,255,255,0.06);
    border-radius:16px; padding:1.25rem; display:grid; gap:1rem}
  figcaption{font-style:italic; text-align:center; color:var(--muted)}
  .stamp{
    margin-top:1.25rem; text-align:center; color:var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  }
  .back{
    display:inline-block; margin-top:1.25rem; text-decoration:none; color:var(--ink);
    border:1px solid rgba(255,255,255,0.12); padding:.55rem .9rem; border-radius:10px;
    background:#150e27; transition:.2s transform, .2s background;
  }
  .back:hover{transform:translateY(-1px); background:#1a1230}
  /* SVG sizing wrapper */
  .svg-wrap{width:100%; aspect-ratio:16/9; display:block}
  .note{margin-top:.5rem; text-align:center; color:#9ddbcf}
    p.subtitle {
      text-align: center;
      color: #b28cd9;
      margin-bottom: 2rem;
      font-style: italic;
    }

    .corridor-list {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.2rem;
      max-width: 700px;
      margin: 0 auto;
    }

    .corridor {
      background-color: #1b102e;
      padding: 1rem 1.5rem;
      border-radius: 12px;
      text-align: center;
      transition: all 0.3s ease;
      box-shadow: 0 0 12px #7030ff30;
    }

    .corridor:hover {
      background-color: #291644;
      box-shadow: 0 0 18px #a368ff80;
    }

    .corridor a {
      text-decoration: none;
      color: #cfa9ff;
      font-size: 1.2rem;
    }

    footer {
      margin-top: 4rem;
      font-size: 0.9rem;
      text-align: center;
      color: #937db7;
    }
  
  /* --- Citadel Nav Grid Layout --- */
/* --- Citadel nav grid --- */
.citadel-nav-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(220px,1fr)); /* 4 across on desktop */
  gap: 1.2rem;
  max-width: 1200px;
  margin: 2rem auto;
  justify-items: stretch;
}

@media (max-width: 1100px){
  .citadel-nav-grid{ grid-template-columns: repeat(3, minmax(220px,1fr)); }
}
@media (max-width: 820px){
  .citadel-nav-grid{ grid-template-columns: repeat(2, minmax(220px,1fr)); }
}
@media (max-width: 520px){
  .citadel-nav-grid{ grid-template-columns: 1fr; }
}

/* ensure each bubble behaves nicely in the grid */
.citadel-bubble{
  display:block;
  text-align:left;          /* keep your icon+label vibe */
  min-height: 84px;         /* keeps rows tidy */
  padding: 0.9rem 1.2rem;
}

.citadel-btn .icon svg {
  width: 80px;
  height: 80px;
}

.citadel-btn[href*="presence"]
{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  /* keep alignment with other tiles */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.citadel-btn[href*="soul"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  /* keep alignment with other tiles */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.citadel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;   /* centers label text */
}

.citadel-btn .label {
  margin-top: 0.5rem;   /* space between glyph and text */
  font-weight: 600;
}

.citadel-btn[href*="the_motley_crew"]:hover {
  background: rgba(113,214,199,0.12);   /* faint teal wash */
  border-color: rgba(113,214,199,0.45); /* brighten border */
  transform: translateY(-2px);          /* same float as others */
}

.citadel-btn[href*="the_motley_crew"] svg {
  transition: filter 0.3s ease;
}
.citadel-btn[href*="the_motley_crew"]:hover svg {
  filter: drop-shadow(0 0 6px #71d6c7aa);
}

/* Citadel pill — matches purple glow aesthetic */
.feature-cta-citadel {
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  padding: .65rem .95rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 55%),
              rgba(140, 100, 220, .14);
  box-shadow: 0 0 0 1px rgba(220, 200, 255, .18), 0 0 18px rgba(180,150,255,.25);
  text-decoration: none;
  color: #efeaff;
  transition: box-shadow .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.feature-cta-citadel:hover {
  box-shadow: 0 0 0 1px rgba(220,200,255,.35), 0 0 26px rgba(180,150,255,.35);
  transform: translateY(-1px);
}

.feature-cta-citadel .cta-glow { display:none; } /* keeps structure parity */
.feature-cta-citadel .cta-icon { filter: drop-shadow(0 0 6px rgba(180,150,255,.35)); }
.feature-cta-citadel .cta-text { display:flex; flex-direction: column; line-height: 1.1; }
.feature-cta-citadel .cta-text strong { font-weight: 700; }
.feature-cta-citadel .cta-text em {
  font-style: italic;
  opacity: .9;
  font-size: .92em;
  color: #d9cffc;
}

@media (max-width: 520px){
  .feature-cta-citadel { padding: .6rem .85rem; }
  .feature-cta-citadel .cta-text em { font-size: .9em; }
}

.feature-cta-garden .cta-icon svg{ width:24px; height:24px; color:#efeaff; }

.feature-card-garden .feature-icon { color:#d9cffc; }
.feature-card-garden .icon-garden { width:34px; height:34px; display:block; margin:10px auto 8px; }
.feature-card-garden .trace { stroke-dasharray:4 3; }

@media (prefers-reduced-motion: no-preference){
  .feature-card-garden:hover .trace,
  .feature-card-garden:focus-within .trace { animation: trace-dash 2.4s linear infinite; }
  .feature-card-garden:hover .leaves,
  .feature-card-garden:focus-within .leaves { animation: leaf-shimmer 1.2s ease-in-out alternate infinite; }
}
@keyframes trace-dash { to { stroke-dashoffset:-14; } }
@keyframes leaf-shimmer { from { opacity:.9; transform:translateY(0); } to { opacity:1; transform:translateY(-1px); } }

/* keep strokes crisp if you ever scale the SVG */
.icon-garden * { vector-effect: non-scaling-stroke; }

/* default icon rules you have */
.feature-card-garden .icon-garden{
  width: var(--garden-icon-size, 34px);
  height: var(--garden-icon-size, 34px);
  display:block; margin:10px auto 8px;
}

/* make just this tile larger */
.feature-card-garden{ --garden-icon-size: 44px; }     /* try 44–48px */
.feature-card-garden .icon-garden g{ stroke-width: 2.4 } /* keeps lines proportional */
.feature-card-garden .trace{ stroke-dasharray: 5 3.5 }   /* scale dash to match size */

/* same size & stroke feel across the grid */
.feature-card .feature-icon svg{ width:34px; height:34px; display:block; margin:10px auto 8px; }
.feature-card .feature-icon svg *{ vector-effect: non-scaling-stroke; } /* crisp lines when scaled */



/* optional tiny optical nudge */
.icon-tight { transform: scale(0.96); transform-origin:50% 50%; }
.icon-airy  { transform: scale(1.04); transform-origin:50% 50%; }
