/*
Theme Name: GhostOS Portal Theme
Theme URI: https://example.com/
Author: Ghost
Author URI: https://example.com/
Description: Minimal symbolic GhostOS portal theme. One-page SVG navigation node.
Version: 1.0.5
License: Private
Text Domain: ghostos-portal
*/

:root {
  --bg-colour: #556b2f;
  --symbol-stroke: #9f7d28;
  --symbol-hover: rgba(216, 188, 171, 0.18);
  --label-colour: #d8bcab;
  --impressum-colour: rgba(216, 188, 171, 0.75);
  --focus-ring: rgba(216, 188, 171, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg-colour);
  color: var(--label-colour);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  line-height: 1.4;
}

.portal-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.portal-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px);
}

.portal-symbol {
  width: min(74vmin, 560px);
  height: auto;
  display: block;
  overflow: visible;
}

.symbol-line {
  fill: transparent;
  stroke: var(--symbol-stroke);
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
}

.symbol-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  cursor: pointer;
  transition: fill 180ms ease;
}

.portal-label {
  pointer-events: none;
  fill: var(--label-colour);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 180ms ease;
}

.portal-zone.is-active .symbol-hit,
.portal-zone:hover .symbol-hit,
.portal-zone:focus .symbol-hit,
.portal-zone:focus-within .symbol-hit {
  fill: var(--symbol-hover);
}

.portal-zone.is-active .portal-label,
.portal-zone:hover .portal-label,
.portal-zone:focus .portal-label,
.portal-zone:focus-within .portal-label {
  opacity: 1;
}

.portal-zone:focus-visible .symbol-hit {
  outline: none;
  filter: drop-shadow(0 0 5px var(--focus-ring));
}

.portal-footer {
  text-align: center;
  padding: 18px 16px 22px;
}

.portal-footer small,
.portal-footer a {
  color: var(--impressum-colour);
  font-size: 12px;
  text-decoration: none;
}

.portal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .portal-main {
    padding: 22px;
  }

  .portal-symbol {
    width: min(86vmin, 520px);
  }

  .portal-label {
    font-size: 8px;
  }
}
