/* ==========================================================================
   matte. light variant of the warm-orange brand (aligned with webmail-light).
   modern, calm, monochrome with warm-orange accents.
   linear/vercel/anthropic energy. no decoration. just type and air.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400..700&family=Geist:wght@300..700&display=swap');

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

:root {
  /* surface */
  --bg:        #fbfbf8;       /* off-white, slightly warm */
  --surface:   #ffffff;       /* card */
  --surface-2: #f3f3f0;       /* subtle accent surface */
  --hairline:  rgba(15, 17, 21, 0.07);
  --hairline-strong: rgba(15, 17, 21, 0.14);

  /* ink */
  --ink:       #0f1115;       /* near-black, neutral (matches webmail-light) */
  --ink-2:     #3a3f48;
  --muted:     #5a6068;
  --muted-2:   #7e848d;

  /* warm-orange accent system. legacy var names (forest/moss/leaf/tint)
     kept for backward compat — they now resolve to orange tones. */
  --forest:    #ff6a35;       /* primary accent — webmail orange */
  --forest-2:  #ff8a5a;       /* lighter accent */
  --moss:      #c75a26;       /* deeper accent for hover/strong */
  --leaf:      #ff8a5a;       /* used sparingly, only for state */
  --tint:      #ffe6d8;       /* soft warm tint surface */

  /* type */
  --sans: "Geist", -apple-system, "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* radii / motion */
  --r:   8px;
  --r-2: 14px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--forest); color: var(--bg); }

/* utilities */
.wrap        { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
.wrap-tight  { max-width: 720px;  margin-inline: auto; padding-inline: 24px; }
.mono        { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.01em; }
.muted       { color: var(--muted); }
.forest-text { color: var(--forest); }

/* ── nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-mark {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-mark .mark-dot { color: var(--forest-2); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  font-size: 13px; color: var(--muted);
  padding: 8px 12px; border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta {
  font-size: 13px; font-weight: 500;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: 999px;
  margin-left: 4px;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav-cta:hover { background: var(--forest); transform: translateY(-0.5px); }
@media (max-width: 560px) {
  .nav-link { padding: 6px 8px; font-size: 12px; }
  .nav-cta { padding: 6px 10px; font-size: 12px; margin-left: 2px; }
  .wrap, .wrap-tight { padding-inline: 16px; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle radial fog of forest green at top, fades fast */
  content: ""; position: absolute; inset: -100px 0 auto 0; height: 600px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%,
    color-mix(in oklab, var(--forest) 14%, transparent),
    transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-kicker {
  font-family: var(--mono); font-size: 12px;
  color: var(--forest); margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--tint);
  border: 1px solid color-mix(in oklab, var(--forest) 14%, transparent);
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); }
.hero-kicker .dot.live { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 14ch;
}
.hero-display .accent { color: var(--forest); font-weight: 500; }

.hero-tag {
  margin-top: 28px; max-width: 56ch;
  font-size: 18px; line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.hero-tag em { font-style: normal; color: var(--ink); font-weight: 500; }

.hero-actions {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-primary:hover { background: var(--forest); transform: translateY(-0.5px); }
.btn-primary svg { transition: transform 0.2s var(--ease); }
.btn-primary:hover svg { transform: translateX(2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
  padding: 11px 16px; border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

/* hero stats strip — optional under tag */
.hero-stats {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero-stat {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat .v { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.hero-stat .l { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ── section heading ──────────────────────────────────────────────────── */

.sec { padding: 80px 0; position: relative; }
.sec-tag {
  font-family: var(--mono); font-size: 12px;
  color: var(--forest);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.sec-tag::before { content: ""; width: 18px; height: 1px; background: var(--forest); }
.sec-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 48px;
}
.sec-title .accent { color: var(--forest); }

/* ── now grid / uses grid ─────────────────────────────────────────────── */

.now-grid {
  display: grid;
  grid-template-columns: 14ch 1fr;
  gap: 14px 24px;
  max-width: 760px;
  margin: 0;
}
.now-line {
  display: contents;
}
.now-line dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-top: 3px;
  text-transform: lowercase;
}
.now-line dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.now-line dd a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .now-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .now-line dt { padding-top: 14px; }
  .now-line dt:first-of-type { padding-top: 0; }
}

.now-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.now-list li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.now-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--forest);
  font-weight: 700;
}
.now-list li a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ── services / cabinet ───────────────────────────────────────────────── */

.cabinet {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}
.plate {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  padding: 28px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}
.plate:hover {
  border-color: var(--hairline-strong);
  background: color-mix(in oklab, var(--surface) 92%, var(--tint));
}
.plate-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.plate-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--tint); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.plate-num {
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
}
.plate-name {
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em;
  margin-bottom: 8px; color: var(--ink);
}
.plate-body {
  color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 42ch;
}
.plate-tags {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.plate-tag {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 8px; border-radius: 4px;
  background: var(--surface-2); color: var(--muted);
}
@media (max-width: 800px) { .cabinet { grid-template-columns: 1fr; } }

/* ── work list ────────────────────────────────────────────────────────── */

.work-list { border-top: 1px solid var(--hairline); }
.work-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.25s var(--ease);
}
.work-row:hover { padding-left: 12px; }
.work-row:hover .work-name { color: var(--forest); }
.work-row:hover .work-arrow { transform: translateX(4px); color: var(--forest); }
.work-num {
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
}
.work-name {
  font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.work-row p {
  grid-column: 2;
  font-size: 13px; color: var(--muted); margin-top: 4px;
  max-width: 60ch;
}
.work-meta {
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.work-arrow {
  color: var(--muted-2);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

/* ── pull / banner ────────────────────────────────────────────────────── */

.banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-2);
  padding: 64px 48px;
  position: relative; overflow: hidden;
  max-width: 1080px; margin: 0 auto;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 100%,
    color-mix(in oklab, var(--forest-2) 50%, transparent),
    transparent 60%);
  pointer-events: none;
}
.banner-text {
  position: relative;
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 32ch;
}
.banner-text .accent { color: var(--leaf); }
.banner-meta {
  position: relative;
  margin-top: 28px;
  font-family: var(--mono); font-size: 12px;
  opacity: 0.55;
}

/* ── contact ──────────────────────────────────────────────────────────── */

.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 96px 0;
}
.contact-left h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 12ch;
}
.contact-left h2 .accent { color: var(--forest); }
.contact-right { display: flex; flex-direction: column; }
.contact-line {
  display: grid; grid-template-columns: 100px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.contact-line:first-child { border-top: 1px solid var(--hairline); }
.contact-line dt {
  font-family: var(--mono); font-size: 12px; color: var(--muted-2);
}
.contact-line dd a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-line dd a:hover { color: var(--forest); border-bottom-color: var(--forest); }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
}
.foot-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.foot a:hover { color: var(--ink); }

/* ── reveal animation ─────────────────────────────────────────────────── */

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-reveal] { animation: reveal-up 0.7s var(--ease) both; }
[data-reveal][data-d="1"] { animation-delay: 0.06s; }
[data-reveal][data-d="2"] { animation-delay: 0.12s; }
[data-reveal][data-d="3"] { animation-delay: 0.18s; }
[data-reveal][data-d="4"] { animation-delay: 0.24s; }
[data-reveal][data-d="5"] { animation-delay: 0.3s; }

/* ── BLOG list & sidebar ──────────────────────────────────────────────── */

.blog-hero { padding: 80px 0 32px; }
@media (max-width: 640px) {
  .blog-hero { padding: 36px 0 16px; }
  .blog-subtitle { font-size: 14px; line-height: 1.5; }
}
.blog-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.0; letter-spacing: -0.04em;
  color: var(--ink);
}
.blog-title .accent { color: var(--forest); }
.blog-subtitle {
  margin-top: 16px;
  font-size: 16px; color: var(--muted); max-width: 50ch;
}

.blog-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px; padding: 32px 0 96px;
}
@media (max-width: 900px) {
  .blog-shell { grid-template-columns: 1fr; gap: 20px; padding: 16px 0 64px; }
  /* Put the feed first on mobile — side cards drop below */
  .blog-shell aside { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .blog-shell main  { order: 1; }
  /* Keep auto-card full-width below the two-column side cards */
  .blog-shell aside .auto-card { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .blog-shell aside { grid-template-columns: 1fr; }
}

.feed { display: flex; flex-direction: column; gap: 16px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color 0.2s var(--ease);
  position: relative;
}
@media (max-width: 640px) {
  .feed { gap: 12px; }
  .post-card { padding: 14px; border-radius: 12px; }
  .post-head { gap: 8px; flex-wrap: wrap; }
  .post-head .post-time { margin-left: 0; }
  .post-body-text { font-size: 14.5px; line-height: 1.6; }
  .post-foot { font-size: 10px; }
}
.post-card:hover { border-color: var(--hairline-strong); }
.post-card--pinned { border-left: 3px solid var(--forest); }
.post-pinned-badge {
  position: absolute; top: -10px; left: 14px;
  background: var(--forest); color: var(--bg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
}
.post-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.post-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.post-author { font-size: 13px; font-weight: 500; color: var(--ink); }
.post-time { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.post-mood { margin-left: auto; font-size: 13px; color: var(--forest); }
.post-body-text {
  font-size: 15px; line-height: 1.65;
  color: var(--ink); word-break: break-word;
}
.post-body-text p {
  margin: 0;
}
.post-body-text p + p {
  margin-top: 0.85em;
}

.post-content {
  font-size: 14px; line-height: 1.6;
  color: var(--ink); word-break: break-word;
}
.post-content p { margin: 0; }
.post-content p + p { margin-top: 0.75em; }

/* ── Media: single image / video + multi-slide gallery ───────── */

.post-image,
.post-video,
.post-gallery {
  margin-top: 14px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  position: relative;
  /* honor EXIF orientation as a final safety net */
  image-orientation: from-image;
}

/* single-image post: image scales to fit, max-height caps it for very tall portraits */
.post-image img,
.post-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(85vh, 820px);
  object-fit: contain;
  background: var(--surface);
  image-orientation: from-image;
}

/*
 * gallery: fixed-height container so all slides share the same vertical box
 * (no jumpy height changes when swiping between portrait and landscape).
 * each image fits INSIDE the box via object-fit: contain — no cropping.
 * we deliberately do NOT use swiper's autoHeight here: that mode reads the
 * active slide's measured height and was racing with lazy image decode,
 * producing the "slide N is blank" report.
 */
.post-gallery {
  height: min(85vh, 720px);
}

.post-gallery .swiper,
.post-gallery .swiper-wrapper {
  height: 100%;
}

.post-gallery .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  height: 100%;
}

.post-gallery .swiper-slide img,
.post-gallery .swiper-slide video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--surface);
  image-orientation: from-image;
}

.post-gallery .swiper-button-prev,
.post-gallery .swiper-button-next {
  width: 34px; height: 34px;
  background: rgba(251, 251, 248, 0.92);
  border: 1px solid rgba(8, 24, 18, 0.10);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 0 4px 14px -4px rgba(8, 24, 18, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease), color 0.15s var(--ease);
  margin-top: -17px;
}
.post-gallery .swiper-button-prev:hover,
.post-gallery .swiper-button-next:hover {
  transform: scale(1.06);
  background: var(--forest);
  color: var(--bg);
}
.post-gallery .swiper-button-prev::after,
.post-gallery .swiper-button-next::after {
  font-size: 12px; font-weight: 600;
}
.post-gallery .swiper-button-disabled { opacity: 0; pointer-events: none; }

.post-gallery .swiper-pagination {
  bottom: 10px;
}
.post-gallery .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: rgba(251, 251, 248, 0.55);
  opacity: 1;
  margin: 0 3px !important;
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}
.post-gallery .swiper-pagination-bullet-active {
  background: #fbfbf8;
  width: 18px;
  border-radius: 999px;
}

.gallery-counter {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: rgba(8, 24, 18, 0.62);
  color: #fbfbf8;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
  .post-image img,
  .post-video video { max-height: none; }

  /* Mobile: gallery becomes a vertical stack of images. No carousel.
     gallery.js adds .post-gallery--stacked on phones (and skips Swiper init).
     Without the class, Swiper would still horizontally lay out children. */
  .post-gallery--stacked {
    background: transparent;
    border: none;
    overflow: visible;
    padding: 0;
    height: auto !important;  /* override the fixed desktop height */
  }
  .post-gallery--stacked .swiper-wrapper {
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    gap: 8px;
    height: auto !important;
  }
  .post-gallery--stacked .swiper-slide {
    height: auto !important;
  }
  .post-gallery--stacked .swiper-slide img,
  .post-gallery--stacked .swiper-slide video {
    max-width: 100%;
    max-height: none;
    width: 100%;
    height: auto;
  }
  .post-gallery--stacked .swiper-slide {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface);
  }
  .post-gallery--stacked .swiper-button-prev,
  .post-gallery--stacked .swiper-button-next,
  .post-gallery--stacked .swiper-pagination,
  .post-gallery--stacked .gallery-counter {
    display: none !important;
  }
}

.post-foot {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 8px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 12px;
}
.side-card.sticky { position: sticky; top: 80px; }
.side-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
  margin-bottom: 12px;
}
.side-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2px; }
.side-handle { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.side-rows { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.side-row { display: grid; grid-template-columns: 50px 1fr; gap: 8px; align-items: baseline; }
.side-row span:first-child { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.side-row a:hover { color: var(--forest); }
.side-stat { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.side-stat-num { font-family: var(--mono); font-size: 22px; color: var(--ink); font-weight: 500; }
.side-stat-label { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.now-card .now-title { font-family: var(--mono); font-size: 11px; color: var(--forest); margin-bottom: 12px; letter-spacing: 0.04em; }
.now-row { display: grid; grid-template-columns: 18px 60px 1fr; gap: 8px; padding: 4px 0; align-items: baseline; font-size: 12px; }
.now-row .now-label { font-family: var(--mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.now-row .now-value { color: var(--ink); }
.auto-card { background: var(--tint); border-color: color-mix(in oklab, var(--forest) 16%, transparent); }
.auto-card .auto-title { font-size: 13px; font-weight: 500; color: var(--forest); margin-bottom: 4px; }
.auto-card p { font-size: 12px; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 900px) {
  .side-card { padding: 14px; margin-bottom: 0; }
  .side-avatar { width: 36px; height: 36px; font-size: 15px; margin-bottom: 8px; }
  .side-name { font-size: 14px; }
  .side-handle { margin-bottom: 10px; }
  .side-stat { margin-top: 10px; padding-top: 8px; }
  .now-card .now-title { margin-bottom: 8px; }
  .now-row { grid-template-columns: 16px 52px 1fr; font-size: 11.5px; }
}

.empty {
  text-align: center; padding: 60px 20px;
  color: var(--muted); font-size: 14px;
}
.pagination {
  margin-top: 24px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
}
.page-link {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 10px; border-radius: 6px;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.page-link:hover { background: var(--surface-2); color: var(--ink); }
.page-link--active { background: var(--ink); color: var(--bg); }
.page-link--active:hover { background: var(--ink); color: var(--bg); }

/* ── PROJECTS ─────────────────────────────────────────────────────────── */

.proj-hero { padding: 100px 0 40px; position: relative; }
.proj-hero::before {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 400px;
  background: radial-gradient(ellipse 60% 50% at 30% 0%,
    color-mix(in oklab, var(--forest) 12%, transparent),
    transparent 70%);
  pointer-events: none; z-index: 0;
}
.proj-hero > * { position: relative; z-index: 1; }
.proj-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 16ch;
}
.proj-title .one { color: var(--forest); }
.proj-sub {
  margin-top: 16px;
  font-size: 17px; color: var(--muted); max-width: 60ch;
}

.proj-filters {
  margin: 40px 0 24px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.proj-filter {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--muted); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.proj-filter:hover { background: var(--surface-2); color: var(--ink); }
.proj-filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.proj-filter-spacer { flex: 1; min-width: 12px; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin-bottom: 80px;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  padding: 22px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 200px;
}
.proj-card:hover { border-color: var(--hairline-strong); background: color-mix(in oklab, var(--surface) 92%, var(--tint)); }
.proj-card .proj-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted-2); position: absolute; top: 16px; right: 16px;
}
.proj-card .proj-meta {
  font-family: var(--mono); font-size: 10px;
  color: var(--forest);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.proj-card .proj-name {
  font-family: var(--sans); font-size: 22px; font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 6px;
}
.proj-card .proj-desc {
  color: var(--muted); font-size: 13.5px; line-height: 1.55;
  flex: 1;
}
.proj-card .proj-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.proj-card .arrow { transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.proj-card:hover .arrow { transform: translateX(3px); color: var(--forest); }

/* ==========================================================================
   admin · login · stats — internal pages.
   matte tokens, same palette, no extra fonts.
   ========================================================================== */

/* page wrapper / header reused by admin.php, stats.php, login.php */
.page-wrapper {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1080px; margin-inline: auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.header-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.02em;
  color: var(--ink);
}
.header-logo-icon { width: 22px; height: 22px; }
.header-logo span { line-height: 1; }
.header-nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.header-link {
  font-size: 13px; color: var(--muted);
  padding: 7px 11px; border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-link:hover { color: var(--ink); background: var(--surface-2); }
.header-link--active { color: var(--ink); background: var(--surface-2); font-weight: 500; }
.header-link--logout { color: var(--muted-2); }
.header-link--logout:hover { color: #b94a3a; background: rgba(185,74,58,0.06); }
.zurich-clock {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-left: 8px;
}

.content-wrapper {
  max-width: 1080px; margin-inline: auto;
  padding: 24px;
  width: 100%;
  flex: 1;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 18px 24px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.footer-sep { opacity: 0.4; }

/* alert */
.alert {
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert--success { background: var(--tint); border-color: color-mix(in oklab, var(--forest) 22%, transparent); color: var(--forest); }
.alert--info    { background: var(--surface-2); border-color: var(--hairline-strong); color: var(--ink); }
.alert--error   { background: rgba(185,74,58,0.08); border-color: rgba(185,74,58,0.3); color: #8d3a2e; }

/* admin: post-form */
.admin-feed { display: flex; flex-direction: column; gap: 12px; }
.post-form-card { padding: 22px; }
.form-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.form-title {
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.post-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 12px;
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.post-textarea:focus { border-color: var(--forest); }
.form-footer {
  margin-top: 12px;
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: space-between;
}
.form-actions-left, .form-actions-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.file-upload-label {
  font-family: var(--mono); font-size: 12px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  cursor: pointer; border: 1px solid var(--hairline);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.file-upload-label:hover { background: var(--tint); color: var(--forest); }
.file-upload-input { display: none; }
.file-name-display { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mood-select select {
  font-family: var(--sans); font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 7px 12px;
  color: var(--ink); cursor: pointer;
  outline: none;
}
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.form-group label {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 10px 12px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--forest); }

/* btn primary submit */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn--primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.btn--primary:hover { background: var(--forest); border-color: var(--forest); color: var(--bg); }

/* admin actions on each post */
.post-admin-actions {
  display: flex; gap: 6px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--hairline);
}
.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--hairline);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.admin-btn:hover { background: var(--tint); color: var(--forest); }
.admin-btn--edit:hover { background: var(--tint); color: var(--forest); }
.admin-btn--pin:hover  { background: rgba(201,160,67,0.14); color: #8b6e2a; }
.admin-btn--delete:hover { background: rgba(185,74,58,0.10); color: #8d3a2e; }

.existing-media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px; margin: 12px 0;
}
.existing-media-item-wrap { display: flex; flex-direction: column; gap: 4px; }
.rotate-bar {
  display: flex; gap: 2px; justify-content: center;
}
.rotate-bar a {
  flex: 1; text-align: center;
  font-size: 11px; padding: 3px 0;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.rotate-bar a:hover { color: var(--forest); border-color: var(--hairline-strong); }
.existing-media-title {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  grid-column: 1 / -1;
}
.existing-media-item {
  position: relative; cursor: pointer;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 1;
}
.existing-media-item img,
.existing-media-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.existing-media-item input[type="checkbox"] {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  accent-color: var(--forest);
}
.existing-media-item input[type="checkbox"]:checked ~ img,
.existing-media-item input[type="checkbox"]:checked ~ video {
  opacity: 0.4; filter: grayscale(0.6);
}
.media-type-badge {
  position: absolute; bottom: 6px; left: 6px;
  font-size: 11px;
}

.admin-section-title {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin: 24px 0 8px; padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

/* comment moderation list */
.comment-list {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.comment-row {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.comment-row.is-hidden { opacity: 0.55; background: var(--surface-2); }
.comment-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.comment-meta a { color: var(--forest); text-decoration: none; }
.comment-meta a:hover { text-decoration: underline; }
.comment-meta code {
  background: var(--surface-2);
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px;
}
.comment-body {
  font-size: 14px; line-height: 1.5;
  color: var(--ink); white-space: pre-wrap; word-wrap: break-word;
}
.comment-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--hairline);
}
.comment-actions .admin-btn { font-size: 11px; padding: 4px 10px; }

/* login */
.login-wrapper {
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px; min-height: calc(100dvh - 56px);
}
.login-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  padding: 32px;
  width: 100%; max-width: 400px;
}
.login-form h1 {
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  margin-bottom: 4px; color: var(--ink);
}
.login-form .subtitle {
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
}
.login-form .form-group { margin-bottom: 14px; }
.login-form button[type="submit"] {
  width: 100%; margin-top: 8px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 999px;
  padding: 11px; font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.login-form button[type="submit"]:hover { background: var(--forest); }

/* stats: kpi grid + bars + charts */
.stats-section { margin-bottom: 32px; }
.stats-section h2 {
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.stats-section h2::before {
  content: ""; width: 14px; height: 1px; background: var(--forest);
}
.stats-hint {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-bottom: 16px;
}
.stats-range {
  display: inline-flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.range-btn {
  font-family: var(--mono); font-size: 11px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--hairline);
  cursor: pointer; text-decoration: none;
  transition: all 0.2s var(--ease);
}
.range-btn:hover { background: var(--surface-2); color: var(--ink); }
.range-btn--active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.range-btn--toggle { background: var(--tint); color: var(--forest); border-color: color-mix(in oklab, var(--forest) 18%, transparent); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 16px;
}
.stat-card-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.stat-card-value {
  font-family: var(--mono); font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}
.stat-card-sub {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin-top: 4px;
}

/* horizontal bars */
.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) auto;
  gap: 12px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.bar-label { color: var(--ink); }
.bar-label--mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bar-track {
  height: 6px; border-radius: 999px;
  background: var(--surface-2); overflow: hidden;
}
.bar-fill {
  height: 100%; background: var(--forest); border-radius: 999px;
  transition: width 0.6s var(--ease);
}
.bar-fill--danger { background: #b94a3a; }
.bar-value { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* hours chart */
.hours-chart {
  display: grid; grid-template-columns: repeat(24, 1fr);
  gap: 3px; align-items: end;
  height: 120px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.hour-col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.hour-bar { width: 100%; min-height: 2px; background: var(--moss); border-radius: 2px; }
.hour-bar:hover { background: var(--forest); }
.hour-label { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }

/* table cells (stats) */
.cell-empty   { color: var(--muted-2); font-style: italic; }
.cell-medium  { font-weight: 500; }
.cell-mono    { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.cell-truncate { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-wide    { min-width: 180px; }

.honeypot-paths {
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
}

/* ── stats: tables, scrollable visitor log ──────────────────────────────── */

.visits-table {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: auto;
  max-height: 70vh;
}
.visits-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.visits-table thead {
  position: sticky; top: 0;
  background: var(--surface-2);
  z-index: 1;
}
.visits-table th {
  text-align: left;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline-strong);
  white-space: nowrap;
}
.visits-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  vertical-align: top;
}
.visits-table tbody tr { transition: background 0.15s var(--ease); }
.visits-table tbody tr:hover { background: var(--surface-2); }
.visits-table tbody tr:last-child td { border-bottom: 0; }

/* alias for legacy stat-card-num used by stats.php */
.stat-card-num {
  font-family: var(--mono); font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}

/* ────────────────────────────────────────────────────────────────
   spoiler (telegram-style). blurred + tinted until clicked / focused.
   ──────────────────────────────────────────────────────────────── */
.spoiler {
  background: var(--ink);
  color: transparent;
  border-radius: 4px;
  padding: 0 4px;
  cursor: pointer;
  user-select: none;
  filter: blur(2px);
  transition: all 200ms var(--ease);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.spoiler:hover { filter: blur(1px); }
.spoiler.is-revealed,
.spoiler:focus {
  background: transparent;
  color: inherit;
  filter: none;
  cursor: text;
  user-select: text;
  outline: none;
}

/* ────────────────────────────────────────────────────────────────
   reactions row + comments under each post
   ──────────────────────────────────────────────────────────────── */
.reactions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.reaction-btn {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font: 13px var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 120ms var(--ease);
}
.reaction-btn:hover { background: var(--tint); }
.reaction-btn.is-mine {
  background: var(--tint);
  border-color: var(--forest-2);
  color: var(--forest);
}
.reaction-btn .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.reaction-btn.is-mine .count { color: var(--forest-2); }

.comments {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.comments-h {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.comment {
  display: flex; gap: 10px; align-items: flex-start;
}
.comment .meta {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-bottom: 2px;
}
.comment .meta strong { color: var(--ink-2); font-weight: 600; }
.comment .body { font-size: 14px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }

.comment-form { display: flex; gap: 10px; align-items: flex-start; }
.comment-form textarea {
  flex: 1;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 10px;
  font: 14px var(--sans);
  color: var(--ink); background: var(--bg);
  resize: vertical; min-height: 36px;
  transition: border-color 120ms var(--ease);
}
.comment-form textarea:focus { outline: none; border-color: var(--forest-2); }
.comment-form button {
  background: var(--forest); color: #fff;
  border: 0; border-radius: 8px;
  padding: 8px 14px;
  font: 13px var(--sans); font-weight: 500;
  cursor: pointer;
}
.comment-form button:hover { background: var(--forest-2); }
.comment-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.anon-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: none; user-select: none;
  width: 28px; height: 28px; font-size: 16px;
}

/* ────────────────────────────────────────────────────────────────
   sidebar contact + ngl cta cards
   ──────────────────────────────────────────────────────────────── */
.cta-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.cta-copy  { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-bottom: 12px; }

.cta-rows { display: flex; flex-direction: column; gap: 8px; }
.cta-link {
  display: flex; justify-content: space-between; align-items: baseline;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  transition: background 120ms var(--ease);
}
.cta-link:hover { background: var(--tint); }
.cta-em { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cta-val { font-family: var(--mono); font-size: 13px; color: var(--ink); }

.ngl-card { background: linear-gradient(160deg, var(--tint), var(--surface)); }
.ngl-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font: 13px var(--sans); font-weight: 500;
  text-decoration: none;
  transition: background 120ms var(--ease);
}
.ngl-cta-btn:hover { background: var(--forest); color: #fff; }

.blog-cta-line { font-size: 14px !important; color: var(--muted); margin-top: 8px; }
.blog-cta-line a { color: var(--forest-2); text-decoration: none; border-bottom: 1px dashed var(--forest-2); }
.blog-cta-line a:hover { color: var(--forest); border-bottom-style: solid; }

/* ────────────────────────────────────────────────────────────────
   ngl recent on /blog feed
   ──────────────────────────────────────────────────────────────── */
.ngl-feed {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 22px;
  margin-bottom: 28px;
  background: linear-gradient(160deg, var(--tint), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
}
.ngl-feed__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.ngl-feed__tag {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; color: var(--forest-2);
}
.ngl-feed__more {
  font-family: var(--mono); font-size: 12px;
  color: var(--forest-2); text-decoration: none;
  border-bottom: 1px dashed var(--forest-2);
}
.ngl-feed__more:hover { border-bottom-style: solid; }

.ngl-feed__card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
}
.ngl-feed__qhead {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.ngl-feed__who { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.ngl-feed__when { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-left: auto; }
.ngl-feed__q {
  font-size: 15px; line-height: 1.5; color: var(--ink);
  padding-left: 38px; margin-bottom: 12px;
}
.ngl-feed__a {
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  display: flex; gap: 10px; align-items: flex-start;
}
.ngl-feed__abadge {
  flex: none;
  font-family: var(--mono); font-size: 11px;
  background: var(--ink); color: var(--bg);
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.ngl-feed__abody { flex: 1; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 540px) {
  .ngl-feed__q { padding-left: 0; }
  .ngl-feed { padding: 14px; }
  .ngl-feed__card { padding: 12px; }
}

/* ────────────────────────────────────────────────────────────────
   stats.php · ngl inbox + bans panel (paradise palette)
   ──────────────────────────────────────────────────────────────── */

/* ngl inbox */
.ngl-inbox { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.ngl-counters {
    display: flex; gap: 18px;
    margin: 12px 0 18px;
    font: 13px var(--sans); color: var(--muted);
}
.ngl-counters strong { color: var(--ink); margin-right: 4px; font-weight: 600; }
.ngl-status {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font: 11px var(--mono);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.ngl-status--pending  { background: #fff5d4; color: #8a6d12; }
.ngl-status--answered { background: var(--tint); color: var(--forest); }
.ngl-status--trashed  { background: #f3e7e6; color: #8c1c12; }
.ngl-body  { max-width: 360px; }
.ngl-actions { white-space: nowrap; }
.ngl-actions .admin-btn { margin-right: 4px; }
.ngl-published {
    background: var(--surface-2);
    border-left: 2px solid var(--forest-2);
    padding: 10px 14px; border-radius: 6px;
    white-space: pre-wrap;
    font: 14px var(--sans); color: var(--ink-2);
}

/* bans panel */
.bans-panel { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.bans-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.bans-count {
    font: 11px var(--mono); color: var(--muted);
    background: var(--surface-2);
    padding: 3px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.bans-help {
    font: 13px var(--sans); color: var(--muted);
    margin-bottom: 16px; line-height: 1.5;
}
.bans-help code {
    font: 12px var(--mono); color: var(--ink);
    background: var(--surface-2);
    padding: 1px 6px; border-radius: 3px;
}

.ban-form {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1.4fr 0.9fr auto;
    gap: 8px; align-items: stretch;
    margin-bottom: 6px;
    padding: 12px;
    background: var(--surface-2);
    border-radius: 10px;
}
.ban-form input {
    padding: 9px 12px;
    border: 1px solid var(--hairline);
    border-radius: 7px;
    font: 12.5px var(--mono); color: var(--ink);
    background: var(--surface);
    min-width: 0;
}
.ban-form input:focus { outline: none; border-color: #b32418; }
.ban-form button {
    padding: 0 18px;
    background: #b32418; color: #fff;
    border: 0; border-radius: 7px;
    font: 13px var(--sans); font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
    cursor: pointer;
    transition: background 120ms var(--ease);
}
.ban-form button:hover { background: #8c1c12; }
.ban-form-msg {
    font: 12px var(--mono); color: var(--muted);
    margin: 4px 0 18px; min-height: 14px;
}

@media (max-width: 720px) {
    .ban-form { grid-template-columns: 1fr 1fr; }
    .ban-form button { grid-column: span 2; padding: 11px; }
}

.bans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.ban-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 14px 16px;
    border-left: 3px solid #b32418;
}
.ban-card__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.ban-card__ip {
    display: flex; align-items: center; gap: 8px;
    font: 14px var(--mono); color: var(--ink);
}
.ban-card__ip code { background: transparent; padding: 0; }
.ban-card__flag { font-size: 18px; line-height: 1; }
.ban-card__unban {
    background: transparent;
    border: 1px solid var(--hairline-strong);
    color: var(--muted);
    border-radius: 999px;
    padding: 4px 12px;
    font: 11px var(--sans); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 120ms var(--ease);
}
.ban-card__unban:hover { background: #b32418; color: #fff; border-color: #b32418; }

.ban-card__rows { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ban-card__row {
    display: grid; grid-template-columns: 64px 1fr; gap: 8px;
    font-size: 13px; line-height: 1.45;
}
.ban-card__row dt {
    font: 11px var(--mono);
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--muted);
    padding-top: 1px;
}
.ban-card__row dd { margin: 0; color: var(--ink); word-break: break-word; }
.ban-card__row dd code {
    background: var(--surface-2);
    padding: 1px 6px; border-radius: 4px;
    font: 12px var(--mono);
}
.ban-card__dev { display: inline-block; margin-right: 4px; }
.ban-card__when { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--hairline); }
.ban-card__when dd { font: 11.5px var(--mono); color: var(--muted); }

/* ngl inbox card grid (replaces wide table) */
.ngl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.ngl-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 16px;
    border-left: 3px solid var(--muted-2);
}
.ngl-card--pending  { border-left-color: #d9b145; }
.ngl-card--answered { border-left-color: var(--forest-2); }
.ngl-card--trashed  { border-left-color: #9a8f8f; opacity: 0.7; }

.ngl-card__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
}
.ngl-card__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ngl-card__whotxt { display: flex; flex-direction: column; min-width: 0; }
.ngl-card__whotxt strong { font: 13px var(--mono); color: var(--ink); font-weight: 600; }
.ngl-card__when { font: 11px var(--mono); color: var(--muted-2); }

.ngl-card__meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font: 12px var(--mono); color: var(--muted);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--hairline);
}
.ngl-card__flag { font-size: 14px; line-height: 1; }
.ngl-card__meta code {
    background: var(--surface-2); color: var(--ink-2);
    padding: 1px 6px; border-radius: 4px;
    font: 12px var(--mono);
}

.ngl-card__q {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: 8px;
    font: 14.5px/1.55 var(--sans);
    color: var(--ink);
    quotes: none;
}
.ngl-card__q::before, .ngl-card__q::after { content: none; }

.ngl-card__answer {
    margin: 4px 0 12px;
    padding: 12px 14px;
    background: linear-gradient(160deg, var(--tint), var(--surface));
    border-radius: 8px;
    border-left: 2px solid var(--forest-2);
}
.ngl-card__abadge {
    display: flex; align-items: center; gap: 8px;
    font: 11px var(--mono); color: var(--forest);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.ngl-card__abadge span { color: var(--muted-2); text-transform: none; letter-spacing: 0; font-weight: normal; }
.ngl-card__abody { font: 14px/1.55 var(--sans); color: var(--ink-2); white-space: pre-wrap; }

.ngl-card__answerbox { margin-top: 8px; }
.ngl-card__answerbox textarea {
    width: 100%;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 10px 12px;
    font: 14px/1.5 var(--sans); color: var(--ink);
    background: var(--bg);
    resize: vertical;
}
.ngl-card__answerbox textarea:focus { outline: none; border-color: var(--forest-2); }

.ngl-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ngl-btn {
    background: transparent;
    border: 1px solid var(--hairline-strong);
    color: var(--muted);
    border-radius: 999px;
    padding: 5px 14px;
    font: 11.5px var(--sans); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 120ms var(--ease);
}
.ngl-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ngl-btn--primary {
    background: var(--forest); color: #fff; border-color: var(--forest);
}
.ngl-btn--primary:hover { background: var(--forest-2); border-color: var(--forest-2); }
.ngl-btn--danger {
    background: transparent; color: #b32418; border-color: #d9b9b5;
}
.ngl-btn--danger:hover { background: #b32418; color: #fff; border-color: #b32418; }

@media (max-width: 540px) {
    .ngl-card { padding: 12px; }
    .ngl-card__q { padding: 8px 12px; }
}

/* presence strip: who's around right now */
.presence {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    padding: 6px 14px 6px 10px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    font: 12px var(--mono); color: var(--muted);
    animation: presence-fade 240ms var(--ease);
}
.presence__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--leaf);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: presence-pulse 2s infinite;
}
@keyframes presence-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(52, 211, 153, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0   rgba(52, 211, 153, 0); }
}
@keyframes presence-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.presence__stack { display: inline-flex; }
.presence__pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    margin-left: -6px;
    border: 2px solid var(--surface);
    font-size: 12px;
    transition: transform 120ms var(--ease);
}
.presence__pill:first-child { margin-left: 0; }
.presence__pill:hover { transform: translateY(-2px); z-index: 2; }
.presence__pill.is-self { box-shadow: 0 0 0 1.5px var(--forest-2); }
.presence__pill.is-idle { opacity: 0.65; }
.presence__count { font: 11px var(--mono); color: var(--muted-2); letter-spacing: 0.04em; }

/* polls inside blog posts */
.polls { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 18px; }
.poll {
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--surface);
}
.poll__q { font: 14.5px/1.4 var(--sans); color: var(--ink); margin-bottom: 12px; font-weight: 500; }
.poll__opts { display: flex; flex-direction: column; gap: 6px; }
.poll__opt {
    --pct: 0%;
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: transparent;
    font: 14px var(--sans); color: var(--ink);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.poll__opt:hover { background: var(--surface-2); }
.poll__bar {
    position: absolute; inset: 0;
    width: var(--pct);
    background: var(--tint);
    transition: width 320ms var(--ease);
    z-index: 0;
    opacity: 0;
}
.poll__label, .poll__pct { position: relative; z-index: 1; }
.poll__pct {
    font: 11px var(--mono); color: var(--muted-2);
    opacity: 0;
    transition: opacity 200ms var(--ease) 80ms;
}
.poll.is-voted .poll__opt { cursor: pointer; }
.poll.is-voted .poll__bar { opacity: 1; }
.poll.is-voted .poll__pct { opacity: 1; }
.poll__opt.is-mine {
    border-color: var(--forest-2);
    color: var(--forest);
    font-weight: 500;
}
.poll__opt.is-mine .poll__bar { background: rgba(31, 122, 82, 0.18); }
.poll__total {
    margin-top: 10px;
    font: 11px var(--mono); color: var(--muted-2);
    letter-spacing: 0.04em;
}
.poll__total-n { color: var(--ink-2); font-weight: 600; }
.poll__hint { color: var(--forest-2); }
.presence__more {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    margin-left: -6px;
    border: 2px solid var(--surface);
    background: var(--surface-2);
    color: var(--muted);
    font: 10px var(--mono);
    letter-spacing: -0.02em;
}

/* ────────────────────────────────────────────────────────────────
   site-wide status pill (mounts in nav)
   ──────────────────────────────────────────────────────────────── */
.nav-status {
    display: inline-flex; align-items: center;
    padding: 5px 14px;
    margin: 0 14px 0 auto;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: var(--surface);
    font: 12px var(--mono); color: var(--muted);
    text-decoration: none;
    line-height: 1.4;
    max-width: 360px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: all 120ms var(--ease);
}
.nav-status:hover { background: var(--surface-2); color: var(--ink); border-color: var(--hairline-strong); }
.nav-status[hidden] { display: none; }

.nav-status--floating {
    position: fixed; top: 18px; right: 20px;
    z-index: 100;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 720px) {
    .nav-status { max-width: 200px; font-size: 11px; padding: 4px 10px; margin: 0 8px 0 auto; }
}

/* ────────────────────────────────────────────────────────────────
   404
   ──────────────────────────────────────────────────────────────── */
.notfound {
    max-width: 560px;
    margin: 14vh auto 0;
    padding: 0 24px;
    text-align: left;
}
.notfound__mascot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 28px;
    user-select: none;
}
.notfound__title {
    font: 600 44px/1.1 var(--sans);
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 12px;
}
.notfound__sub {
    font: 16px/1.6 var(--sans);
    color: var(--muted);
    max-width: 48ch;
}
.notfound__sub code {
    font: 14px var(--mono); color: var(--ink-2);
    background: var(--surface-2);
    padding: 2px 8px; border-radius: 4px;
}
.notfound__links {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-top: 32px;
}
.notfound__links a {
    font: 13px var(--mono);
    color: var(--forest-2);
    text-decoration: none;
    border-bottom: 1px dashed var(--forest-2);
}
.notfound__links a:hover { border-bottom-style: solid; color: var(--forest); }

@media (max-width: 540px) {
    .notfound__title { font-size: 36px; }
}

/* /log feed */
.log-hero { padding: 36px 0 24px; }
.log-hero .wrap { padding-left: 20px; padding-right: 20px; }
.log-title { font: 600 56px/1 var(--sans); letter-spacing: -0.04em; color: var(--ink); margin-bottom: 8px; }
.log-sub { color: var(--muted); font-size: 15px; max-width: 48ch; }

.log-feed { max-width: 720px; padding-bottom: 96px; }
.log-empty { color: var(--muted); padding: 48px 0; text-align: center; font-size: 14px; }

.log-row {
    display: grid; grid-template-columns: 80px 1fr;
    gap: 16px; align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
}
.log-row:last-child { border-bottom: 0; }
.log-when {
    font: 12px var(--mono); color: var(--muted-2);
    letter-spacing: 0.04em; text-transform: lowercase;
    text-align: right;
}
.log-body {
    font: 16px/1.55 var(--sans); color: var(--ink);
    margin: 0;
    word-wrap: break-word;
}
.log-mood {
    grid-column: 2;
    font: 11px var(--mono); color: var(--forest-2);
    margin-top: 4px;
}

.log-pager {
    display: flex; gap: 18px; justify-content: center; align-items: center;
    margin-top: 32px;
    font: 13px var(--mono);
}
.log-pager a { color: var(--forest-2); text-decoration: none; }
.log-pager span { color: var(--muted); }

@media (max-width: 540px) {
    .log-title { font-size: 44px; }
    .log-row { grid-template-columns: 64px 1fr; gap: 10px; padding: 14px 0; }
    .log-when { font-size: 11px; }
}

/* engagement wrapper for project pages */
.page-engagement-wrap {
    max-width: 760px;
    margin: 64px auto 96px;
    padding: 0 20px;
}
.page-engagement {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-2);
}
.page-engagement .reactions {
    margin: 0 0 4px;
    padding-top: 0;
    border-top: 0;
}
.page-engagement .comments {
    margin-top: 16px;
    padding-top: 16px;
}

/* /changelog */
.changelog-hero { padding: 36px 0 24px; }
.changelog-hero .wrap { padding-left: 20px; padding-right: 20px; }
.changelog-title { font: 600 56px/1 var(--sans); letter-spacing: -0.04em; color: var(--ink); margin-bottom: 8px; }
.changelog-sub { color: var(--muted); font-size: 15px; max-width: 48ch; }
.changelog-stamp { font: 11px var(--mono); color: var(--muted-2); margin-top: 8px; letter-spacing: 0.04em; }

.changelog { max-width: 760px; padding-bottom: 96px; }
.changelog-empty { color: var(--muted); padding: 48px 0; text-align: center; font-size: 14px; }
.changelog-empty code { font: 12px var(--mono); background: var(--surface-2); padding: 2px 8px; border-radius: 4px; }

.changelog-month { margin-bottom: 32px; }
.changelog-mh {
    font: 13px var(--mono); color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--hairline);
}
.changelog-list { list-style: none; margin: 0; padding: 0; }
.changelog-row {
    display: grid;
    grid-template-columns: 28px 60px 1fr;
    gap: 12px;
    padding: 6px 0;
    align-items: baseline;
    font: 13.5px/1.5 var(--sans);
    color: var(--ink);
}
.changelog-when { font: 12px var(--mono); color: var(--muted-2); text-align: right; }
.changelog-sha { font: 12px var(--mono); color: var(--forest-2); background: var(--tint); padding: 1px 6px; border-radius: 4px; }
.changelog-subj { color: var(--ink); word-break: break-word; }

@media (max-width: 540px) {
    .changelog-title { font-size: 44px; }
    .changelog-row { grid-template-columns: 24px 56px 1fr; gap: 8px; font-size: 13px; }
}

/* ────────────────────────────────────────────────────────────────
   command palette (cmd+k)
   ──────────────────────────────────────────────────────────────── */
html.palette-open { overflow: hidden; }
.palette {
    position: fixed; inset: 0;
    background: rgba(10, 31, 21, 0.36);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 12vh 20px 0;
    animation: palette-in 160ms var(--ease);
}
.palette[hidden] { display: none; }
@keyframes palette-in { from { opacity: 0; } to { opacity: 1; } }

.palette__sheet {
    width: 100%; max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--hairline-strong);
    border-radius: 14px;
    box-shadow: 0 22px 64px rgba(8, 24, 18, 0.15), 0 4px 12px rgba(8, 24, 18, 0.06);
    overflow: hidden;
    animation: palette-pop 200ms var(--ease);
}
@keyframes palette-pop { from { transform: translateY(8px) scale(0.99); opacity: 0; } to { transform: none; opacity: 1; } }

.palette__inputrow {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
}
.palette__icon { color: var(--muted); font-size: 16px; }
.palette__input {
    flex: 1; border: 0; background: transparent;
    font: 16px var(--sans); color: var(--ink);
    outline: none;
}
.palette__esc {
    font: 11px var(--mono); color: var(--muted);
    padding: 3px 8px; border: 1px solid var(--hairline-strong);
    border-radius: 6px; cursor: pointer;
    user-select: none;
}
.palette__esc:hover { color: var(--ink); border-color: var(--ink); }

.palette__list {
    max-height: 56vh;
    overflow-y: auto;
    padding: 8px 0;
}
.palette__empty { padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }

.palette__group {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px 6px;
    font: 11px var(--mono); color: var(--muted-2);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.palette__gicon { font-size: 13px; }

.palette__item {
    display: block;
    padding: 10px 18px;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: background 80ms var(--ease), border-color 80ms var(--ease);
    position: relative;
}
.palette__item.is-sel {
    background: var(--surface-2);
    border-left-color: var(--forest-2);
}
.palette__title { font: 14px var(--sans); color: var(--ink); }
.palette__snippet {
    font: 12px var(--mono); color: var(--muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.palette__kind {
    position: absolute; top: 12px; right: 16px;
    font: 10px var(--mono); color: var(--muted-2);
    text-transform: uppercase; letter-spacing: 0.06em;
}

.palette__hint {
    border-top: 1px solid var(--hairline);
    padding: 8px 16px;
    font: 11px var(--mono); color: var(--muted-2);
    text-align: right;
}

/* embed cards (youtube, spotify, soundcloud) under post bodies */
.embeds { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 18px; }
.embed {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
}
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed--compact { aspect-ratio: 4/3; max-height: 380px; }
.embed--soundcloud { aspect-ratio: 5/1; min-height: 120px; }
.embed--spotify { aspect-ratio: auto; min-height: 152px; max-height: 360px; }
.embed--spotify iframe { height: 152px; }

/* ────────────────────────────────────────────────────────────────
   admin /now + /log quick poster (paradise palette, light)
   ──────────────────────────────────────────────────────────────── */
.admin-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 36px;
}
@media (max-width: 880px) { .admin-quick-grid { grid-template-columns: 1fr; } }

.admin-quick {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex; flex-direction: column;
}
.admin-quick--now { border-left: 3px solid var(--forest-2); }
.admin-quick--log { border-left: 3px solid #d99845; }

.admin-quick__head { margin-bottom: 14px; }
.admin-quick__tag {
    display: block;
    font: 13px var(--mono);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    background: transparent !important;
}
.admin-quick__sub {
    font: 11px var(--mono);
    color: var(--muted);
    text-transform: lowercase;
    background: transparent !important;
}
.admin-quick__sub a {
    color: var(--forest-2) !important;
    text-decoration: none;
    border-bottom: 1px dashed var(--forest-2);
}
.admin-quick__sub a:hover { color: var(--forest); }

.admin-quick__form { display: flex; flex-direction: column; gap: 10px; flex: 1; }

.admin-quick__row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.admin-quick__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-quick__label {
    font: 10px var(--mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent !important;
}
.admin-quick__field input {
    padding: 9px 12px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: 13px var(--sans);
    transition: border-color 120ms var(--ease), background 120ms var(--ease);
    width: 100%;
    box-sizing: border-box;
}
.admin-quick__field input:focus {
    outline: none;
    border-color: var(--forest-2);
    background: var(--surface);
}

.admin-quick__body {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.55 var(--sans);
    resize: vertical;
    min-height: 72px;
    transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.admin-quick__body:focus {
    outline: none;
    border-color: #d99845;
    background: var(--surface);
}

.admin-quick__foot {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
}
.admin-quick__save {
    background: var(--forest);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 9px 18px;
    font: 13px var(--sans);
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms var(--ease);
}
.admin-quick__save:hover { background: var(--forest-2); }
.admin-quick--log .admin-quick__save { background: #d99845; color: #2a1c08; font-weight: 600; }
.admin-quick--log .admin-quick__save:hover { background: #c08538; color: #fff; }

.admin-quick__count {
    font: 11px var(--mono);
    color: var(--muted-2);
    margin-left: auto;
    background: transparent !important;
}
.admin-quick__msg {
    font: 11px var(--mono);
    color: var(--muted);
    flex-basis: 100%;
    background: transparent !important;
}
.admin-quick__msg.is-ok  { color: var(--forest-2); }
.admin-quick__msg.is-err { color: #b32418; }
