:root {
  --bg: #7A6656;
  --ink: #f4f6f8;
  --muted: rgba(244, 246, 248, 0.55);
  --accent: #ECD078;
  --grid-line: rgba(244, 246, 248, 0.1);
  --blur-bg: rgba(122, 102, 86, 0.85);
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-mono: 'IBM Plex Sans', system-ui, sans-serif;
  --label-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}

html.lite {
  --bg: #E4D9D6;
  --ink: #2A1620;
  --muted: rgba(42, 22, 32, 0.58);
  --accent: #8C6A1D;
  --grid-line: rgba(42, 22, 32, 0.1);
  --blur-bg: rgba(228, 217, 214, 0.95);
  --label-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

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

html, body {
    background-color: var(--bg);
    font-family: var(--font-mono);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
}

::selection {
    background: var(--accent);
    color: color-mix(in srgb, var(--bg) 80%, black);
}

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





@keyframes scanline-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

.ui-layer {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glass-panel {
    background: var(--blur-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grid-line);
    position: sticky;
    top: 0;
    z-index: 50;
}

header.top-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem 3.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}
header.top-nav .nav-item { justify-self: start; }
header.top-nav .brand { justify-self: center; }

.brand {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    -webkit-text-stroke: 0.6px var(--ink);
    color: var(--ink);
    text-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}

.allow-select {
    user-select: text;
    -webkit-user-select: text;
}

.content-section {
    padding: 4rem 3.5rem 8rem 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-header {
    margin-bottom: 5rem;
}

.massive-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.sub-text {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.5;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-card {
    display: block;
    border: 1px solid var(--grid-line);
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(244, 246, 248, 0.25);
}

.blog-card--disabled {
    cursor: default;
}

.blog-card--disabled:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--grid-line);
}

.blog-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.blog-excerpt {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.blog-tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    border: 1px solid var(--grid-line);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
    border-radius: 4px;
    color: var(--muted);
}

.blog-link {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.blog-link--soon {
    color: var(--muted);
    opacity: 0.5;
}

#loader { 
    position: fixed; 
    inset: 0; 
    z-index: 99999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg); 
    transition: opacity .5s ease; 
}
#loader.done { opacity: 0; pointer-events: none; }
#loader .dot { width: 7px; height: 7px; margin: 0 5px; border-radius: 50%; display: inline-block; background: var(--ink); animation: loaderPulse 1s ease-in-out infinite; }
#loader .dot:nth-child(2) { animation-delay: .15s; }
#loader .dot:nth-child(3) { animation-delay: .3s; }
@keyframes loaderPulse { 0%,100%{ opacity:.25; transform:scale(.8); } 50%{ opacity:1; transform:scale(1); } }

@media (max-width: 640px) {
    header.top-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .content-section { padding: 3rem 1.5rem 6rem 1.5rem; }
    .blog-card { padding: 1.5rem; }
}
.nav-item { text-decoration: none; color: var(--ink); text-shadow: var(--label-shadow); transition: color 0.2s ease; cursor: pointer; }
.nav-item:hover { color: var(--accent); }

.nav-item--back { position: relative; z-index: 999; margin-left: 12px; font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; }
.nav-item--back::after {
  content: '';
  position: absolute;
  z-index: 999;
  left: -13px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px 1px var(--accent), 0 0 12px 3px color-mix(in srgb, var(--accent) 50%, transparent);
  opacity: 0;
  transform: translateY(-50%) scale(.4);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.nav-item--back:hover::after { opacity: 1; transform: translateY(-50%) scale(1); }