/* HERENKOA holding node — stone wall + pigment marks
   No external assets, no libraries.
*/

:root{
  /* Stone + soot */
  --bg-0: #0f1112;
  --bg-1: #171a1b;
  --stone: #2a2f31;
  --stone-warm: #3b3028;

  /* Pigments */
  --bone: #e6ddcf;
  --ash:  #c9bfb0;
  --clay: #8a6b55;
  --ochre:#a56a2a;
  --red:  #7a2b22;

  /* Lines */
  --scratch: rgba(229, 212, 190, 0.12);
  --scratch-strong: rgba(229, 212, 190, 0.22);

  /* Layout */
  --max: 980px;
  --r: 18px;
  --r2: 12px;
  --pad: 22px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  color: var(--bone);
  background: var(--bg-0);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0.2px;
}

/* Skip link */
.skip{
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #000;
  color: var(--bone);
  border: 1px solid rgba(255,255,255,0.18);
}
.skip:focus{ left: 10px; z-index: 10; }

/* The cave wall (CSS-only stone + soot + grain) */
.wall{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* vignette */
    radial-gradient(1200px 700px at 50% 22%, rgba(0,0,0,0.15), rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.88)),
    /* warm patches */
    radial-gradient(700px 500px at 15% 55%, rgba(59,48,40,0.55), transparent 60%),
    radial-gradient(650px 520px at 85% 62%, rgba(59,48,40,0.45), transparent 62%),
    /* stone body */
    linear-gradient(180deg, var(--bg-1), var(--stone) 42%, var(--bg-0));
}
.wall::before{
  /* soft, non-photo grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 2px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 1px, transparent 2px, transparent 7px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.wall::after{
  /* soot bloom + mottling */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.20;
  background:
    radial-gradient(800px 600px at 50% 30%, rgba(0,0,0,0.00), rgba(0,0,0,0.55) 70%),
    radial-gradient(900px 800px at 50% 90%, rgba(0,0,0,0.25), rgba(0,0,0,0.80));
  pointer-events: none;
}

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header{
  padding: 44px 0 18px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 18px;
}
.sigil{
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.32);
  display: grid;
  place-items: center;
}
.sigil svg{ width: 46px; height: 46px; }
.sigil-stroke{
  fill: none;
  stroke: rgba(208, 132, 54, 0.85); /* ochre */
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0.5px 1px 0 rgba(0,0,0,0.55));
}

.title{
  margin: 0;
  font-size: clamp(2.0rem, 4vw, 3.1rem);
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--red);
  /* pigment bite (not glow) */
  text-shadow:
    0 1px 0 rgba(0,0,0,0.65),
    0.6px 1.2px 0 rgba(0,0,0,0.55);
}
.subtitle{
  margin: 8px 0 0;
  color: var(--ash);
  letter-spacing: 0.06em;
}

/* Main slabs */
.site-main{ padding: 14px 0 56px; }

.slab{
  padding: var(--pad);
  border-radius: var(--r);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.slab::before{
  /* subtle scratches */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, var(--scratch) 18%, transparent 34%),
    linear-gradient(240deg, transparent 0%, var(--scratch) 12%, transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.04) 35%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.slab::after{
  /* chipped edge feel */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.30);
  pointer-events: none;
}

.hero{ margin-top: 6px; }

.premise{
  margin: 0;
  font-size: 1.05rem;
  color: var(--bone);
}

.divider{
  margin: 18px 0 14px;
  opacity: 0.55;
}
.divider svg{
  width: 100%;
  height: 18px;
}
.divider path{
  fill: none;
  stroke: rgba(138,107,85,0.7); /* clay */
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pillars */
.pillars{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pillar{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  padding: 14px 14px 12px;
}
.pillar-title{
  margin: 0 0 6px;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--ochre);
  font-variant: small-caps;
}
.pillar-text{
  margin: 0;
  color: var(--ash);
}

/* Directory */
.directory{ margin-top: 18px; }

.dir-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title{
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--ochre);
  font-variant: small-caps;
}
.section-note{
  margin: 0;
  color: rgba(230, 221, 207, 0.65);
  letter-spacing: 0.04em;
}

.dir-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tag{
  text-align: left;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  color: var(--bone);
  cursor: not-allowed;
  position: relative;
}
.tag::before{
  /* etched notch */
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(138,107,85,0.55);
  border-top: 2px solid rgba(138,107,85,0.55);
  border-radius: 3px;
  opacity: 0.8;
}
.tag-name{
  display: block;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.tag-status{
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(138,107,85,0.95);
  letter-spacing: 0.06em;
  font-variant: small-caps;
  position: relative;
}
.tag-status::after{
  /* faint etch line under status */
  content: "";
  display: block;
  height: 2px;
  width: 64%;
  margin-top: 6px;
  background: rgba(138,107,85,0.28);
  border-radius: 2px;
}

.dir-foot{
  margin: 14px 0 0;
  color: rgba(230, 221, 207, 0.65);
}
.etch{
  color: rgba(230, 221, 207, 0.80);
  letter-spacing: 0.06em;
}

/* Footer */
.site-footer{
  padding: 14px 0 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.10);
}
.copyright{
  margin: 0;
  color: rgba(230, 221, 207, 0.55);
  letter-spacing: 0.10em;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 920px){
  .pillars{ grid-template-columns: 1fr; }
  .dir-grid{ grid-template-columns: repeat(2, 1fr); }
  .dir-head{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px){
  .brand{ align-items: flex-start; }
  .sigil{ width: 58px; height: 58px; }
  .dir-grid{ grid-template-columns: 1fr; }
  .slab{ padding: 18px; }
}
.exit-seal{
  margin-bottom: 12px;
}

.exit-seal{
  margin-bottom: 12px;
}

.seal-button{
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;

  border-radius: 18px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.45),
    0 10px 24px rgba(0,0,0,0.55);

  text-decoration: none;
}

.seal-button svg{
  width: 34px;
  height: 34px;
  stroke: rgba(165,106,42,0.9); /* ochre/red */
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.7));
}

.seal-button:hover svg{
  stroke: rgba(230,221,207,0.95);
}

/* Tooltip (desktop only by nature of title attr) */
/* No custom tooltip UI needed — native browser tooltip is correct here */
