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

:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --text: #e0ddd5;
  --text-dim: #7a7770;
  --text-bright: #f5f2eb;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.08);
  --accent-mid: rgba(200, 255, 0, 0.2);
  --red: #ff3b30;
  --border: rgba(255, 255, 255, 0.08);
  --border-dash: rgba(255, 255, 255, 0.15);
  --max-w: 740px;
}

/* GRAIN */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  z-index: 1000;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  background-size: 256px;
}

body {
  font-family: 'Schibsted Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.anim { opacity: 0; animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.45s; }
.d5 { animation-delay: 0.6s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.vis { opacity: 1; transform: none; }

/* NAV */
nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeUp 0.4s ease forwards;
}

.logo {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 3.5rem;
  position: relative;
}

.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-label .cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-bright);
  margin-bottom: 1.8rem;
}

.hero h1 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  opacity: 0.45;
}

.hero-tagline {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 580px;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
}

.hero-bio {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 540px;
}
.hero-bio strong {
  color: var(--text);
  font-weight: 600;
}

/* TICKER */
.ticker-wrap {
  border-top: 2px dashed var(--border-dash);
  border-bottom: 2px dashed var(--border-dash);
  padding: 0.75rem 0;
  overflow: hidden;
}

.ticker {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.ticker-item {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ticker-sep {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* SECTIONS */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--accent);
  color: var(--bg);
  padding: 0.3rem 0.8rem;
  display: inline-block;
  transform: rotate(-1deg);
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--border-dash);
}

/* FEATURED */
.featured {
  display: block;
  background: var(--surface);
  border: 1px dashed var(--border-dash);
  padding: 2.2rem;
  padding-top: 2.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.featured:hover {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.featured-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  transform: rotate(2deg);
  z-index: 1;
}

.featured-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.featured-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-bright);
  margin-bottom: 0.7rem;
}

.featured:hover .featured-title { color: var(--accent); }

.featured-excerpt {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 540px;
}

.featured-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

/* TAGS */
.tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border: 1px dashed var(--border-dash);
  padding: 0.15rem 0.55rem;
  transition: all 0.25s;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* POST LIST */
.posts { display: flex; flex-direction: column; }

.post {
  display: grid !important;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px dashed var(--border-dash);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  align-items: start;
}
.post:last-child { border-bottom: none; }

.post:hover {
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
}

.post-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 0.1rem;
}

.post-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.post:hover .post-title { color: var(--accent); }

.post-excerpt {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.post-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* NOW */
.now-updated {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.now-list { list-style: none; }

.now-item {
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-left: 2px dashed var(--border-dash);
  position: relative;
  color: var(--text);
}

.now-item::before {
  content: '>';
  position: absolute;
  left: -0.5rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--bg);
  padding: 0 0.15rem;
}

.now-item em {
  color: var(--text-dim);
  font-style: normal;
}

/* CONTACT */
.contact-quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 500px;
}

.contact-subtext {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.contact-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  box-shadow: 4px 4px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--text-bright);
  box-shadow: 4px 4px 0 var(--border-dash);
}

/* FOOTER */
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  border-top: 2px dashed var(--border-dash);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* BLOG POST CONTENT */
.post-content { max-width: 740px; }
.post-content p { margin-bottom: 1.2rem; font-size: 0.95rem; line-height: 1.8; color: var(--text); }
.post-content h2 { font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--text-bright); }
.post-content h3 { font-family: 'Schibsted Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; margin: 1.5rem 0 0.75rem; color: var(--text-bright); }
.post-content ul, .post-content ol { margin: 1rem 0; padding-left: 1.5rem; color: var(--text); }
.post-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; margin: 1.5rem 0; font-style: italic; color: var(--text-dim); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: #e0ff33; }
.post-content code { font-family: 'Space Mono', monospace; font-size: 0.85em; background: var(--surface); padding: 0.15rem 0.4rem; border-radius: 3px; }
.post-content pre { background: var(--surface); border: 1px dashed var(--border-dash); padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; border-radius: 4px; }
.post-content pre code { background: none; padding: 0; }
.post-content strong { color: var(--text-bright); font-weight: 600; }
.post-content hr { border: none; border-top: 1px dashed var(--border-dash); margin: 2rem 0; }

/* SINGLE POST PAGE */
.post-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.post-back-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 2rem;
  display: inline-block;
}
.post-back-link:hover { color: var(--text-bright); }

.post-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.post-single-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
}

.post-single-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.post-single-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* SKIP TO CONTENT */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.skip-to-content:focus {
  left: 1rem;
  top: 1rem;
}

/* FOCUS STYLES */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* BREADCRUMBS */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}
.breadcrumbs ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.breadcrumbs li::after {
  content: ' /';
  margin-left: 0.5rem;
  color: var(--border-dash);
}
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--accent); }

/* POST NAVIGATION */
.post-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px dashed var(--border-dash);
}
.post-nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color 0.2s;
  max-width: 45%;
}
.post-nav-link:hover { color: var(--accent); }
.post-nav-next { text-align: right; margin-left: auto; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 1.5rem; }
  nav { padding: 1.5rem 1.5rem 0; }
  .nav-links { gap: 1rem; }
  .featured { padding: 1.5rem; }
  .post { grid-template-columns: 1fr; gap: 0.2rem; }
  .post-date { display: inline; }
  footer { flex-direction: column; gap: 1rem; }
  .contact-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
