/* elloflex/development — Portfolio im Stil von elloflex/pwgen
   Warm near-black base · vier Arbeitsfarben: amber (Marke), mint (Werte),
   coral (Warnung), cyan (Maximum). Display: Bricolage Grotesque · Chrome: IBM Plex Mono */

:root {
  --bg:        #1A1815;
  --bg-raised: #211E1A;
  --line:      #332E27;
  --line-soft: #28241F;
  --cream:     #F0E8D8;
  --sub:       #ADA492;
  --muted:     #8C8676;
  --comment:   #7C7565;
  --faint:     #5F584D;

  --amber:     #F0A94E;
  --amber-hi:  #FFC072;
  --amber-ink: #221A0F;
  --mint:      #66D9A0;
  --coral:     #FF6F5C;
  --cyan:      #63D8D8;

  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(130% 90% at 50% -15%, rgba(240,169,78,.07), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(102,217,160,.05), transparent 60%),
    var(--bg);
}

a { color: inherit; }

/* ambient entropy field */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 24px;
  padding-block: 0 80px;
}

/* ---------- top bar ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.mark b { color: var(--amber); font-weight: 500; }
.mark span { color: var(--muted); }
.mark { text-decoration: none; }
.top-tag { color: var(--faint); font-size: 12px; }
.top-tag::before { content: "● "; color: var(--mint); font-size: 9px; vertical-align: 2px; }

/* ---------- eyebrows ---------- */
.lead-cmt {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--comment);
  letter-spacing: .01em;
}
.lead-cmt::before { content: "// "; color: var(--amber); }

/* ---------- hero ---------- */
.hero { padding-block: 56px 0; }
.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.3rem, 7.5vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.023em;
  color: var(--cream);
}
.hero h1 .dot { color: var(--amber); }
.sub {
  margin: 22px 0 0;
  max-width: 46ch;
  color: var(--sub);
  font-size: 1.04rem;
  line-height: 1.55;
}

/* ---------- frame (Terminal-Karte) ---------- */
.frameblock { padding-block: 36px 0; }

.frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow:
    0 26px 70px -44px #000,
    0 0 46px -18px color-mix(in oklab, var(--amber) 32%, transparent);
}
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--comment);
}
.frame-name::before { content: "> "; color: var(--mint); }
.frame-tag { color: var(--faint); }
.frame-body { padding: 22px 18px; }

pre.src {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(12px, 3.4vw, 13.5px);
  line-height: 1.85;
  color: var(--cream);
  overflow-x: auto;
}
pre.src .c { color: var(--comment); font-style: italic; }
pre.src .k { color: var(--amber); }
pre.src .s { color: var(--mint); }
pre.src .n { color: var(--cyan); }
pre.src .p { color: var(--faint); }

.caret {
  display: inline-block;
  width: .5ch;
  height: 1.02em;
  margin-left: .12em;
  vertical-align: -.16em;
  background: var(--amber);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- actions ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color .15s ease, background .15s ease, color .15s ease,
              box-shadow .15s ease, transform .05s ease;
}
.btn:hover { border-color: var(--mint); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
  font-weight: 500;
}
.btn-amber:hover {
  background: var(--amber-hi);
  border-color: var(--amber-hi);
  color: var(--amber-ink);
  box-shadow: 0 0 32px -6px color-mix(in oklab, var(--amber) 70%, transparent);
}

/* ---------- divider ---------- */
.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 46px 0;
}

/* ---------- config / listen ---------- */
.row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: baseline;
  gap: 6px 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: 0; }
.key { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.val { margin: 0; color: var(--sub); font-size: .98rem; }

a.row { text-decoration: none; transition: border-color .15s ease; }
a.row:hover { border-color: var(--line); }
a.row:hover .key { color: var(--amber); }
a.row .go { font-family: var(--mono); color: var(--faint); transition: color .15s ease, transform .15s ease; }
a.row:hover .go { color: var(--amber); transform: translateX(3px); }
a.row:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.tools-empty { font-family: var(--mono); font-size: 13px; color: var(--faint); padding: 15px 0; }

/* ---------- note + footer ---------- */
.note p:not(.lead-cmt) {
  margin: 0;
  max-width: 54ch;
  color: var(--sub);
  font-size: 1.02rem;
  line-height: 1.6;
}
.note .code { font-family: var(--mono); font-size: .86em; color: var(--mint); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.foot a { color: var(--faint); text-decoration: none; transition: color .15s ease; }
.foot a:hover { color: var(--cream); }

/* ---------- privacy gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 11, 9, .88);
  backdrop-filter: blur(3px);
}
.gate-panel {
  width: 100%;
  max-width: 440px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px 24px;
  box-shadow: 0 30px 80px -30px #000;
}
.gate-panel h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.gate-panel h2 .dot { color: var(--amber); }
.gate-panel p:not(.lead-cmt):not(.gate-note) {
  margin: 0 0 18px;
  color: var(--sub);
  font-size: .95rem;
  line-height: 1.55;
}
.gate-panel a { color: var(--amber); }
.gate-note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--coral);
}
body.gate-locked { overflow: hidden; }

/* ---------- rechtstexte ---------- */
.doc { padding-block: 44px 0; }
.doc h1 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.7rem);
  letter-spacing: -0.023em;
}
.doc h1 .dot { color: var(--amber); }
.doc-meta {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.doc h2 {
  margin: 40px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--cream);
}
.doc h2::before { content: "// "; font-family: var(--mono); color: var(--amber); font-size: .8em; }
.doc h3 { margin: 22px 0 6px; font-weight: 600; font-size: .98rem; color: var(--cream); }
.doc p, .doc li { color: var(--sub); font-size: .96rem; line-height: 1.72; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 4px; }
.doc a { color: var(--amber); }
.doc code {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--mint);
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
.doc .back {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.doc .back:hover { color: var(--cream); }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .row .val { grid-column: 1 / -1; }
  .foot { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
