/* Agrapha Dogmata — V1
   Dark, editorial, restrained. A single accent (signal green), used sparingly.
   System fonts only — no external requests, no tracking. Zero JS. */

:root{
  --bg:#0a0a0d;
  --bg-raised:#050506;
  --ink:#ececE8;
  --muted:#94949c;
  --rule:#232329;
  --wire:#5b5b66;
  --green:#00e676;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.wrap{ max-width:680px; margin:0 auto; padding:0 24px; }

/* Ticker — slow, continuous, non-distracting */
.ticker{
  background:var(--bg-raised);
  border-bottom:1px dashed var(--rule);
  padding:11px 0;
  overflow:hidden;
  white-space:nowrap;
}
.ticker-track{
  display:inline-flex;
  animation:ticker-scroll 55s linear infinite;
}
.ticker .items{
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--green);
  padding:0 44px;
  display:inline-block;
}
@keyframes ticker-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation:none; }
}

/* Header + micro-mark (identity glyph, not the hero cube) */
header.site{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:26px 0;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  border-bottom:1px dashed var(--rule);
}

.wordmark{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  text-decoration:none;
  font-weight:500;
}
.wordmark:hover .mark .sq2{ border-color:var(--green); }

.mark{ display:block; position:relative; width:22px; height:22px; flex:0 0 auto; }
.mark .sq1{
  position:absolute; top:0; left:0;
  width:13px; height:13px;
  border:1.2px solid var(--ink);
}
.mark .sq2{
  position:absolute; bottom:0; right:0;
  width:13px; height:13px;
  border:1.2px dashed var(--green);
}

.lang-switch a{ color:var(--muted); text-decoration:none; margin-left:14px; }
.lang-switch a.current{ color:var(--green); }
.lang-switch a:hover{ color:var(--ink); }

main{ padding:60px 0 100px; }

/* Hero — asymmetric: content left, wireframe cube right */
.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  margin-bottom:64px;
  animation:fade-up .7s ease-out both;
}
.hero-content{ flex:1 1 380px; min-width:0; }

h1.title{
  font-family:var(--sans);
  font-size:2.6rem;
  font-weight:300;
  letter-spacing:-0.01em;
  margin:0 0 22px;
}

.tagline{
  font-size:1.35rem;
  color:var(--green);
  margin:0 0 14px;
  font-weight:400;
}

.doctrine{
  font-family:var(--mono);
  font-size:.95rem;
  color:var(--muted);
  margin:0;
  letter-spacing:.01em;
  font-weight:400;
}

@keyframes fade-up{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .hero{ animation:none; }
}

/* Hero cube — slow wireframe, low luminosity, two edges signal-green.
   A peripheral presence, not a demonstration. */
.hero-cube{ flex:0 0 auto; }

.cube-wrap{
  --size:150px;
  display:block;
  width:var(--size); height:var(--size);
  perspective:calc(var(--size) * 4);
}
.cube{
  display:block;
  width:100%; height:100%; position:relative;
  transform-style:preserve-3d;
  animation:cube-rotate 26s linear infinite;
}
.face{
  display:block;
  position:absolute; width:100%; height:100%;
  border:1px dashed var(--wire);
  background:transparent;
}
.face.front{ border-color:var(--green); opacity:.8; }

.front{ transform:translateZ(calc(var(--size) / 2)); }
.back{ transform:translateZ(calc(var(--size) / -2)) rotateY(180deg); }
.right{ transform:rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.left{ transform:rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.top{ transform:rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.bottom{ transform:rotateX(-90deg) translateZ(calc(var(--size) / 2)); }

@keyframes cube-rotate{
  from{ transform:rotateX(-16deg) rotateY(0deg); }
  to{ transform:rotateX(-16deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .cube{ animation:none; transform:rotateX(-16deg) rotateY(35deg); }
}
@media (max-width:720px){
  .hero-cube{ display:none; }
  .hero{ margin-bottom:48px; }
}

/* Body sections */
section{ margin-bottom:60px; }

section h2{
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 18px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:500;
}
section h2 .idx{ color:var(--green); }

section p{ margin:0 0 18px; font-size:1.08rem; font-weight:400; color:var(--ink); }
section p:last-child{ margin-bottom:0; }
section p em{ color:var(--ink); font-style:italic; }
section p .hl{ color:var(--ink); font-weight:500; border-bottom:1px dashed var(--wire); }

section p a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px dashed var(--wire);
}
section p a:hover{ color:var(--green); border-bottom-color:var(--green); }

.signature p{ margin:0 0 6px; font-weight:400; }
.signature p:last-child{ margin-bottom:0; }

.signature a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px dashed var(--wire);
}
.signature a:hover{ color:var(--green); border-bottom-color:var(--green); }

footer.site{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:var(--mono);
  font-size:11px;
  color:var(--muted);
  border-top:1px dashed var(--rule);
  padding:26px 0;
  letter-spacing:.04em;
}
footer.site a{ color:var(--muted); text-decoration:none; }
footer.site a:hover{ color:var(--green); }

@media (max-width:480px){
  h1.title{ font-size:2rem; }
  .tagline{ font-size:1.15rem; }
  .ticker .items{ letter-spacing:.1em; }
}
