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

:root {
  --ink: #0d0d0d;
  --cream: #f0f0f0;
  --cream-dim: #b0b0b0;
  --amber: #fff81f;
  --amber-bright: #ffff66;
  --pink: #ff78d0;
  --rule: rgba(255,255,255,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-rock: 'Passion One', Impact, sans-serif;
  --font-headline: 'Bebas Neue', Impact, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── LANG BAR ── */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: 52px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
}

.lang-switches { display: flex; gap: 0; }

.lang-btn {
  background: none;
  border: none;
  font-size: 20px;
  padding: 4px 8px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  cursor: pointer;
  display: block;
}

.lang-btn:hover { opacity: 1; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 52px; left: 0; right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 0 1rem;
}

nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 14px 16px;
  display: block;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: var(--cream); }
nav a.current { color: var(--cream); border-bottom-color: var(--amber); }
nav a.accent { color: var(--amber); }
nav a.accent:hover { color: var(--amber-bright); }

/* ── PAGE HEADER ── */
.page-header {
  padding-top: calc(52px + 45px + 5rem);
  padding-bottom: 3rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.page-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 80px;
}

.page-title {
  font-family: var(--font-rock);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--pink);
}

.page-title em {
  font-style: normal;
  color: var(--amber);
  display: block;
}

.page-desc {
  font-size: 1.1rem;
  color: var(--cream-dim);
  font-style: italic;
  max-width: 50ch;
  line-height: 1.6;
}

.section-rule { width: 100%; height: 1px; background: var(--rule); }

/* ── ENTRIES (index) ── */
.entries-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}

.entries { display: flex; flex-direction: column; gap: 0; }

.entry {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.entry:first-child { border-top: 1px solid var(--rule); }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
}

.entry-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--amber);
  opacity: 0.9;
}

.entry-headline {
  font-family: var(--font-headline);
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.entry-headline a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}

.entry-headline a:hover { color: var(--amber); }

.entry-text {
  font-size: 1.25rem;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.entry-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,248,31,0.3);
  transition: border-color 0.2s;
}

.entry-link:hover { border-bottom-color: var(--amber); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

/* ── SINGLE POST ── */
.post-header {
  padding-top: calc(52px + 45px + 5rem);
  padding-bottom: 3rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-title {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--pink);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.post-excerpt {
  font-size: 1.3rem;
  color: var(--cream-dim);
  font-style: italic;
  max-width: 55ch;
  line-height: 1.6;
}

.post-image-wrap {
  max-width: 820px;
  margin: 0 auto 0;
  padding: 0 2.5rem;
}

.post-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

/* ── POST CONTENT (Ghost rich text) ── */
.gh-content {
  font-size: 1.25rem;
  line-height: 1.85;
  color: var(--cream-dim);
}

.gh-content p { margin-bottom: 1.5rem; }
.gh-content p:last-child { margin-bottom: 0; }

.gh-content h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--amber);
  letter-spacing: 0.02em;
  margin: 3rem 0 1rem;
  line-height: 1.1;
}

.gh-content h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 2rem 0 0.75rem;
}

.gh-content strong { color: var(--cream); font-weight: 400; }
.gh-content em { font-style: italic; color: var(--cream); }

.gh-content a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,248,31,0.3);
  transition: border-color 0.2s;
}

.gh-content a:hover { border-bottom-color: var(--amber); }

.gh-content blockquote {
  border-left: 3px solid var(--pink);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2.5rem 0;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
}

.gh-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.gh-content figure { margin: 2rem 0; }

.gh-content figcaption {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  text-transform: uppercase;
  margin-top: 0.5rem;
  text-align: center;
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.gh-content ul, .gh-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.gh-content li { margin-bottom: 0.4rem; }

/* Ghost bookmark card */
.gh-content .kg-bookmark-card {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  margin: 2rem 0;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}

.gh-content .kg-bookmark-card:hover { border-color: rgba(255,248,31,0.3); }
.gh-content .kg-bookmark-title { color: var(--cream); font-size: 1.1rem; margin-bottom: 0.4rem; }
.gh-content .kg-bookmark-description { color: var(--cream-dim); font-size: 0.95rem; }
.gh-content .kg-bookmark-url { font-family: var(--font-mono); font-size: 9px; color: var(--amber); letter-spacing: 0.1em; }

/* Ghost video/embed */
.gh-content .kg-embed-card { margin: 2rem 0; }
.gh-content .kg-embed-card iframe { width: 100%; aspect-ratio: 16/9; border: none; }

/* ── POST FOOTER ── */
.post-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-rock);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--amber);
  text-decoration: none;
  padding: 10px 24px;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: var(--amber-bright); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--rule);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: rgba(255,248,31,0.4); color: var(--cream); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name, .footer-loc {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--cream-dim);
  text-transform: uppercase;
}

.social-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.social-link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ── GHOST CONTENT CARDS (required) ── */
.gh-content .kg-width-wide {
  margin-left: calc(50% - 50vw + 2.5rem);
  margin-right: calc(50% - 50vw + 2.5rem);
  max-width: none;
}

.gh-content .kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}

.gh-content .kg-image-card { margin: 2rem 0; }
.gh-content .kg-image-card img { width: 100%; height: auto; display: block; }

.gh-content .kg-gallery-card { margin: 2rem 0; }
.gh-content .kg-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}
.gh-content .kg-gallery-image img { width: 100%; height: auto; display: block; }

.gh-content .kg-video-card { margin: 2rem 0; }
.gh-content .kg-video-card video { width: 100%; display: block; }

.gh-content .kg-audio-card {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.03);
}

.gh-content .kg-file-card {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: border-color 0.2s;
}
.gh-content .kg-file-card:hover { border-color: rgba(255,248,31,0.3); }
.gh-content .kg-file-card-title { color: var(--cream); font-size: 1rem; }
.gh-content .kg-file-card-filename { color: var(--amber); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; }

.gh-content .kg-toggle-card {
  margin: 2rem 0;
  border: 1px solid var(--rule);
  padding: 1.5rem;
}
.gh-content .kg-toggle-heading-text { color: var(--cream); font-size: 1.1rem; }
.gh-content .kg-toggle-content { color: var(--cream-dim); margin-top: 1rem; }

.gh-content .kg-callout-card {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 3px solid var(--amber);
  background: rgba(255,248,31,0.04);
  display: flex;
  gap: 1rem;
}
.gh-content .kg-callout-text { color: var(--cream-dim); }

.gh-content .kg-button-card { margin: 2rem 0; }
.gh-content .kg-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--amber);
  color: #000;
  font-family: var(--font-rock);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.gh-content .kg-btn:hover { background: var(--amber-bright); }

.gh-content .kg-divider { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-label  { animation: fadeUp 0.7s ease both; }
.page-title  { animation: fadeUp 0.7s 0.1s ease both; }
.page-desc   { animation: fadeUp 0.7s 0.2s ease both; }
.post-title  { animation: fadeUp 0.7s 0.1s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav a { padding: 5px 10px; font-size: 9px; }
  .lang-bar { padding: 0 1.2rem; }
  .page-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: calc(52px + 42px + 3.5rem);
  }
  .page-title { font-size: clamp(3rem, 18vw, 6rem); }
  .entries-wrap { padding: 0 1.5rem 4rem; }
  .post-header { padding-left: 1.5rem; padding-right: 1.5rem; padding-top: calc(52px + 42px + 3.5rem); }
  .post-wrap { padding: 2rem 1.5rem 4rem; }
  .post-image-wrap { padding: 0 1.5rem; }
  .gh-content { font-size: 1.1rem; }
  footer { padding: 2rem 1.5rem; }
  * { word-break: break-word; }
}
