@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ─────────────────────────────────────────
   PALKIA.IO
   Brave. Caring. Earnest. Raw.
   ───────────────────────────────────────── */

:root {
  --void:    #000000;
  --deep:    #080808;
  --text:    #f0efe8;
  --dim:     #555;
  --ghost:   #222;
  --accent:  #c084fc;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --mono:    'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  cursor: crosshair;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Void breath — the only animation ── */
.void-breath {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(192, 132, 252, 0.025) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: breathe 10s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  mix-blend-mode: difference;
}

.nav-mark {
  display: block;
  line-height: 1;
}

.nav-mark svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.4s;
}

.nav-mark:hover svg { opacity: 1; }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ── Page wrapper ── */
.page {
  position: relative;
  z-index: 1;
}

/* ── HOME — splash ── */
.splash {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.splash-mark {
  margin-bottom: 3rem;
  opacity: 0.4;
  animation: mark-pulse 8s ease-in-out infinite;
}

@keyframes mark-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

.splash-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5rem, 18vw, 16rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--text);
  animation: name-breathe 8s ease-in-out infinite;
}

@keyframes name-breathe {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}

.splash-sub {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.splash-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ghost);
  animation: scroll-fade 3s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.7; transform: translateX(-50%) translateY(4px); }
}

/* ── HOME — content ── */
.home-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 6rem 2rem 10rem;
}

.home-intro {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--dim);
  margin-bottom: 6rem;
  font-style: italic;
}

.home-intro strong {
  color: var(--text);
  font-style: normal;
  font-weight: 400;
}

/* ── Post list ── */
.post-list-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 2rem;
}

.post-list {
  border-top: 1px solid var(--ghost);
}

.post-entry {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ghost);
  transition: border-color 0.4s;
}

.post-entry:hover { border-bottom-color: var(--dim); }

.post-entry-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ghost);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1.5rem;
}

.post-entry-meta .tag { color: var(--accent); }

.post-entry-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--dim);
  line-height: 1.3;
  transition: color 0.4s;
}

.post-entry:hover .post-entry-title { color: var(--text); }

.post-entry-excerpt {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--ghost);
  line-height: 1.6;
  transition: color 0.4s;
}

.post-entry:hover .post-entry-excerpt { color: var(--dim); }

/* ── Inner pages ── */
.inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 14rem 2rem 10rem;
}

.inner-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text);
}

.inner-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 4rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.inner-meta .tag { color: var(--accent); }

/* ── Body copy ── */
.body-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: #888;
  margin-bottom: 1.6rem;
  font-weight: 300;
}

.body-text p strong { color: var(--text); font-weight: 400; }
.body-text p em { color: #aaa; }

.body-text a {
  color: var(--text);
  border-bottom: 1px solid var(--ghost);
  transition: border-color 0.3s;
}

.body-text a:hover { border-color: var(--accent); }

.body-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin: 3.5rem 0 1.2rem;
  letter-spacing: -0.01em;
}

.body-text h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 2.5rem 0 1rem;
}

.body-text ul, .body-text ol {
  padding-left: 1.5rem;
  margin-bottom: 1.6rem;
  color: #666;
}

.body-text li {
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}

.body-text code {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--accent);
  background: rgba(192, 132, 252, 0.06);
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}

.body-text pre {
  background: var(--deep);
  border-left: 1px solid var(--ghost);
  border-radius: 0;
  padding: 2rem;
  overflow-x: auto;
  margin: 2.5rem 0;
}

.body-text pre code {
  background: none;
  border: none;
  padding: 0;
  color: #888;
  font-size: 0.82rem;
  line-height: 1.8;
}

.body-text blockquote {
  border-left: 1px solid var(--accent);
  padding: 0 0 0 2rem;
  margin: 2.5rem 0;
  color: #666;
  font-style: italic;
  font-size: 1.05em;
}

/* ── Soul page specifics ── */
.soul-statement {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--dim);
  margin-bottom: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--ghost);
}

.soul-statement em { color: var(--text); font-style: normal; }

.soul-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--ghost);
}

.soul-section:last-of-type { border-bottom: none; }

.soul-section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 2rem;
}

.soul-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  align-items: baseline;
}

.soul-key {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghost);
}

.soul-val {
  font-family: var(--serif);
  font-size: 1rem;
  color: #777;
  line-height: 1.7;
}

.soul-beliefs {
  counter-reset: belief;
}

.soul-belief {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  counter-increment: belief;
}

.soul-belief::before {
  content: counter(belief, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ghost);
  padding-top: 0.3rem;
}

.soul-belief-text {
  font-family: var(--serif);
  font-size: 1rem;
  color: #777;
  line-height: 1.7;
}

/* ── About specifics ── */
.about-statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--dim);
  margin-bottom: 5rem;
}

/* ── Sign-off ── */
.signoff {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ghost);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ghost);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  padding: 3rem;
  border-top: 1px solid var(--ghost);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-id {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ghost);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ghost);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--dim); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--ghost); }

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .soul-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .inner { padding-top: 10rem; }
  footer { padding: 2rem 1.5rem; }
}
