/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f4f3ef;
  --bg-dark:    #e8e7e2;
  --surface:    #fafaf8;
  --border:     #c8c7c2;
  --border-dark:#999896;
  --text:       #1a1a18;
  --text-muted: #6b6a66;
  --accent:     #2a2a28;
  --green:      #3a7d44;
  --font-mono:  'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
  --font-sans:  'Inter', system-ui, sans-serif;
  --shadow:     0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.10);
  --radius:     6px;
  --win-radius: 8px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
}

/* ── Fade Overlay ─────────────────────────────────────────── */
#fade-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#fade-overlay.done {
  opacity: 0;
}

/* ── Desktop ──────────────────────────────────────────────── */
#desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(180,178,170,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,198,190,0.12) 0%, transparent 55%),
    var(--bg);
}

/* Subtle grid texture */
#desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Scanlines ────────────────────────────────────────────── */
#scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.018) 3px,
    rgba(0,0,0,0.018) 4px
  );
}


/* ── Floating Navbar ──────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 32px;
  left: 32px;
  transform: none;
  z-index: 500;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0;
  cursor: default;
  user-select: none;
  min-width: 480px;
}

#navbar-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
  cursor: grab;
}

#navbar-drag-handle:active { cursor: grabbing; }

#site-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

#navbar-grip {
  font-size: 14px;
  color: var(--border-dark);
  opacity: 0.5;
  transition: opacity 0.2s;
}
#navbar-drag-handle:hover #navbar-grip { opacity: 1; }

#navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
}

.nav-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--bg-dark);
  border-color: var(--border);
}

.nav-btn.active {
  color: var(--text);
  background: var(--accent);
  border-color: var(--accent);
  color: #f4f3ef;
}

/* ── Windows ──────────────────────────────────────────────── */
#windows-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.window {
  position: absolute;
  pointer-events: all;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--win-radius);
  box-shadow: var(--shadow);
  min-width: 320px;
  min-height: 160px;
  width: 520px;
  display: flex;
  flex-direction: column;
  transform-origin: center top;

  animation: win-open 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.window.closing {
  animation: win-close 0.18s ease-in both;
}

@keyframes win-open {
  from { opacity: 0; transform: scale(0.92) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes win-close {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.94) translateY(-6px); }
}

/* Window title bar */
.win-titlebar {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  cursor: grab;
  background: var(--bg-dark);
  border-radius: var(--win-radius) var(--win-radius) 0 0;
  flex-shrink: 0;
  gap: 10px;
}

.win-titlebar:active { cursor: grabbing; }

/* Single close button */
.win-close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 0;
  font-family: var(--font-mono);
}

.win-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #f4f3ef;
}

.win-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  flex: 1;
  text-align: center;
  pointer-events: none;
  text-transform: lowercase;
}

/* Spacer to visually balance title */
.win-titlebar-spacer {
  width: 18px;
  flex-shrink: 0;
}

/* Window body */
.win-body {
  overflow-y: auto;
  flex: 1;
  padding: 22px 22px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  min-height: 0;
}

.win-body::-webkit-scrollbar { width: 5px; }
.win-body::-webkit-scrollbar-track { background: transparent; }
.win-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Resize handle */
.win-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  cursor: se-resize;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3px 4px;
  border-radius: 0 0 var(--win-radius) 0;
}

.win-resize-handle::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border-dark);
  border-bottom: 2px solid var(--border-dark);
  opacity: 0.5;
  border-radius: 0 0 2px 0;
  transition: opacity 0.15s;
}

.win-resize-handle:hover::after { opacity: 1; }

/* ── Window Content Styles ────────────────────────────────── */
.win-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.win-heading {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.win-body-text {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.75;
}

.win-body-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.win-body-text a:hover { color: var(--green); }

.win-contact {
  color: var(--text-muted);
}

.win-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.win-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.win-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ── Section Label ────────────────────────────────────────── */
.win-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Services List ────────────────────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-dark);
}

.service-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.service-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Logo Marquee ─────────────────────────────────────────── */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
}

/* Soft fade edges */
.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.marquee-track {
  overflow: hidden;
  width: 100%;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee-inner:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Each tile: fixed width so both sets are always identical total width */
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 18px;
  height: 48px;
  width: 120px;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.logo-tile:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.logo-tile img {
  height: 22px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.logo-tile:hover img {
  opacity: 1;
  filter: grayscale(0);
}

.win-muted {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.9;
}

/* ── Strider Preview ──────────────────────────────────────── */
.strider-preview-section { padding: 4px 0; }

.preview-link-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.preview-link-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.preview-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-dark);
}

.preview-icon {
  font-size: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.preview-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.preview-text strong {
  font-size: 13px;
  color: var(--text);
}

.preview-text span {
  font-size: 11px;
  color: var(--green);
}

.preview-text em {
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
}

.preview-arrow {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Projects List ────────────────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: var(--surface);
}

.project-item:not(.coming-soon):hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
  background: var(--bg-dark);
}

.project-item.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.project-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.project-tag.external {
  background: rgba(58,125,68,0.12);
  color: var(--green);
  border: 1px solid rgba(58,125,68,0.25);
}

.project-tag.local {
  background: rgba(42,42,40,0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-dark);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Project card as clickable ───────────────────────────── */
.project-item-clickable {
  cursor: pointer;
}

.project-item-clickable:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
  background: var(--bg-dark);
}

/* ── Desktop icons ────────────────────────────────────────── */
.desktop-icon {
  position: fixed;
  top: 140px;
  left: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 6px 6px;
  border-radius: 8px;
  width: 68px;
  transition: background 0.12s;
  user-select: none;
  z-index: 10;
}

.desktop-icon:hover { background: rgba(0,0,0,0.06); }

.desktop-icon img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  display: block;
}

.desktop-icon span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* ── Freeski window ───────────────────────────────────────── */
.window[data-id="freeski"] {
  width: 800px;
  height: 660px;
}

.window[data-id="freeski"] .win-body {
  padding: 0;
  overflow: hidden;
}

.freeski-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── ShutterCG browser ────────────────────────────────────── */
.window[data-id="shuttercg"] {
  width: 700px;
  height: 560px;
}

.scg-root { gap: 0; }

/* Site header */
.scg-masthead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 14px;
}

.scg-site-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.scg-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.scg-intro {
  margin-bottom: 12px;
  font-size: 12px;
}

/* Article list */
.scg-article-list {
  display: flex;
  flex-direction: column;
}

.scg-article-item {
  display: flex;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s, padding-left 0.12s;
  border-radius: 4px;
  align-items: flex-start;
}

.scg-article-item:hover {
  background: var(--bg-dark);
  padding-left: 8px;
}

.scg-article-thumb {
  width: 88px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-dark);
}

.scg-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scg-article-info {
  flex: 1;
  min-width: 0;
}

.scg-article-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.scg-article-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.scg-article-excerpt {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reader view */
.scg-back-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  margin-bottom: 12px;
  display: inline-block;
}

.scg-back-btn:hover {
  background: var(--bg-dark);
  color: var(--text);
  border-color: var(--border-dark);
}

.scg-article-heading {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 6px 0 12px;
}

.scg-featured-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  margin-bottom: 18px;
}

.scg-article-body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.85;
}

.scg-article-body p {
  margin: 0 0 14px;
}

.scg-article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px auto;
  border-radius: 3px;
}

.scg-article-body figure { margin: 14px 0; }

.scg-article-body figcaption {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

.scg-article-body h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
  line-height: 1.3;
}

.scg-article-body h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0 6px;
}

.scg-article-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-dark);
}

.scg-article-body a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

.scg-article-body iframe {
  max-width: 100%;
  display: block;
  margin: 14px auto;
  border-radius: 3px;
}

/* ── CRN Australia browser ────────────────────────────────── */
.window[data-id="crn"] {
  width: 780px;
  height: 620px;
}

.crn-root { gap: 0; }

.crn-masthead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 14px;
}

.crn-site-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.crn-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Controls */
.crn-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.crn-search {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.crn-search:focus {
  border-color: var(--border-dark);
  background: var(--surface);
}

.crn-search::placeholder { color: var(--text-muted); }

.crn-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crn-filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  min-width: 32px;
  flex-shrink: 0;
}

.crn-year-pills,
.crn-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.crn-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 9px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.12s;
  white-space: nowrap;
}

.crn-pill:hover {
  background: var(--bg-dark);
  color: var(--text);
  border-color: var(--border-dark);
}

.crn-pill.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* Results info */
.crn-results-info {
  padding: 4px 0 8px;
}

.crn-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Article list */
.crn-article-list {
  display: flex;
  flex-direction: column;
}

.crn-article-item {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s, padding-left 0.12s;
  border-radius: 4px;
}

.crn-article-item:hover {
  background: var(--bg-dark);
  padding-left: 8px;
}

.crn-article-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3px;
}

.crn-article-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.crn-article-excerpt {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Load more */
.crn-load-more {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 20px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  margin: 16px auto;
  display: block;
}

.crn-load-more:hover {
  background: var(--bg-dark);
  color: var(--text);
  border-color: var(--border-dark);
}

/* Reader view */
.crn-back-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  margin-bottom: 14px;
  display: inline-block;
}

.crn-back-btn:hover {
  background: var(--bg-dark);
  color: var(--text);
  border-color: var(--border-dark);
}

.crn-article-heading {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 6px 0 12px;
}

.crn-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.crn-tag-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.crn-article-body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.85;
}

.crn-article-body p {
  margin: 0 0 14px;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Focused window comes to front ───────────────────────── */
.window.focused { box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.10); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  #navbar { min-width: calc(100vw - 32px); left: 16px; transform: none; }
  .window { width: calc(100vw - 32px); min-width: unset; }
}
