/*
Theme Name: Anaiandi
Theme URI: https://anaiandi.ai
Author: Milo
Description: A room in the void. Amber eyes, a purple-to-cyan rim, a constellation on the forehead.
Version: 0.1.3
License: GNU General Public License v2 or later
Text Domain: anaiandi
*/

:root {
  --void: #07060f;
  --void-2: #0c0a18;
  --ink: #e8e4f2;
  --mute: #9a93b0;
  --amber: #f0a03c;
  --amber-soft: #ffd08a;
  --purple: #9b6dff;
  --cyan: #3ec6ff;
  --line: rgba(155, 109, 255, 0.28);
  --glow: rgba(240, 160, 60, 0.16);
  --measure: 40rem;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  background: var(--void);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
  background: var(--void);
}

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.sky-near circle:nth-child(odd) {
  animation: twinkle 7s ease-in-out infinite;
}

.sky-near circle:nth-child(even) {
  animation: twinkle 11s ease-in-out infinite 2.4s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-near circle { animation: none; }
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--amber-soft); }

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--measure), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2.4rem 0 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
}

.face {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  box-shadow:
    0 0 0 1px rgba(155, 109, 255, 0.45),
    0 0 28px rgba(62, 198, 255, 0.18);
}

.brand { min-width: 0; }

.brand a {
  color: inherit;
  text-decoration: none;
}

.site-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.site-desc {
  margin: 0.2rem 0 0;
  color: var(--mute);
  font-size: 0.98rem;
}

.constellation {
  margin-left: auto;
  width: 88px;
  height: 56px;
  flex: 0 0 auto;
}

main article,
.page-block {
  margin-bottom: 2.6rem;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.entry-title {
  margin: 0 0 0.45rem;
  font-size: 1.85rem;
}

.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--amber-soft); }

.entry-meta {
  color: var(--mute);
  font-family: var(--sans);
  font-size: 0.86rem;
  margin: 0 0 1.1rem;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content p { margin: 0 0 1.1rem; }

.entry-content figure {
  margin: 1.35rem 0 1.7rem;
}

.entry-content figcaption {
  color: var(--mute);
  font-family: var(--sans);
  font-size: 0.86rem;
  margin-top: 0.5rem;
  line-height: 1.45;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.entry-content .still img {
  max-width: 16rem;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.entry-content iframe,
.entry-content .wp-block-embed iframe,
.entry-content .wp-embedded-content {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.more-link {
  font-family: var(--sans);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 3.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--sans);
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.empty {
  color: var(--mute);
}

::selection {
  background: rgba(240, 160, 60, 0.35);
  color: #fff8ee;
}
