@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #121212;
  --paper: #f1eee6;
  --white: #fffdf7;
  --blue: #2858ff;
  --red: #ff493d;
  --lime: #c9ff3d;
  --yellow: #ffda44;
  --line: rgba(18, 18, 18, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--lime); padding: .8rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { height: 88px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1rem, 4vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.16); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.brand img { width: 86px; height: 58px; object-fit: contain; }
.brand span { color: var(--lime); }
.site-header nav { display: flex; gap: 1.6rem; font-family: "IBM Plex Mono", monospace; font-size: .8rem; text-transform: uppercase; }
.site-header nav a { text-decoration: none; color: rgba(255,255,255,.72); }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--lime); }

.hero { min-height: 690px; position: relative; overflow: hidden; background: var(--ink); color: white; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 4rem; align-items: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem); }
.hero::after { content: ""; position: absolute; width: 38vw; height: 38vw; right: -14vw; top: -14vw; border: 1px solid rgba(201,255,61,.45); border-radius: 50%; box-shadow: 0 0 0 70px rgba(201,255,61,.04), 0 0 0 140px rgba(201,255,61,.03); }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero-copy, .hero-note { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1.4rem; color: var(--lime); font: 600 .76rem/1.4 "IBM Plex Mono", monospace; letter-spacing: .12em; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { margin: 0; max-width: 900px; font: 700 clamp(3.6rem, 8.6vw, 8.6rem)/.82 "Space Grotesk", sans-serif; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-intro { max-width: 700px; margin: 2rem 0 0; color: rgba(255,255,255,.68); font-size: clamp(1rem, 1.7vw, 1.3rem); line-height: 1.65; }
.primary-link { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.3rem; background: var(--lime); color: var(--ink); padding: 1rem 1.2rem; text-decoration: none; font: 700 .9rem "IBM Plex Mono", monospace; text-transform: uppercase; box-shadow: 7px 7px 0 var(--blue); transition: transform .2s, box-shadow .2s; }
.primary-link:hover { transform: translate(3px,3px); box-shadow: 4px 4px 0 var(--blue); }
.hero-note { align-self: end; margin-bottom: 2rem; background: var(--yellow); color: var(--ink); padding: 2rem; transform: rotate(2deg); box-shadow: 12px 14px 0 rgba(40,88,255,.8); }
.hero-note .tape { position: absolute; width: 95px; height: 24px; background: rgba(255,255,255,.58); top: -11px; left: 50%; transform: translateX(-50%) rotate(-4deg); }
.hero-note p { font-size: 1rem; line-height: 1.55; }
.hero-note .note-number { font: 600 .75rem "IBM Plex Mono", monospace; border-bottom: 1px solid var(--ink); padding-bottom: .7rem; }
.scribble { display: block; margin-top: 1.2rem; color: var(--blue); font: 600 .85rem "IBM Plex Mono", monospace; transform: rotate(-3deg); }

.ticker { overflow: hidden; background: var(--lime); border-block: 2px solid var(--ink); padding: .85rem 0; white-space: nowrap; }
.ticker div { width: max-content; font: 600 .8rem "IBM Plex Mono", monospace; animation: ticker 26s linear infinite; }
.ticker span { margin: 0 1.4rem; color: var(--blue); }
@keyframes ticker { to { transform: translateX(-40%); } }

.articles-section, .projects-section, .manifesto { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 470px); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2 { margin: 0; font: 700 clamp(2.8rem, 5.5vw, 5.4rem)/.95 "Space Grotesk", sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
.section-heading > p { margin: 0; color: #595650; font-size: 1.05rem; line-height: 1.65; }
.section-heading.light > p { color: rgba(255,255,255,.6); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter { border: 1px solid var(--ink); background: transparent; padding: .7rem .9rem; cursor: pointer; font: 600 .72rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.filter:hover, .filter:focus-visible, .filter.is-active { background: var(--ink); color: white; }
.filter.is-active { box-shadow: 4px 4px 0 var(--lime); }

.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.post-card { min-width: 0; display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.post-card.post-featured { grid-column: 1 / -1; grid-template-columns: minmax(300px, 1fr) minmax(0, 1fr); }
.post-image { position: relative; min-height: 320px; overflow: hidden; background: var(--ink); }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-image img { transform: scale(1.035); }
.post-count { position: absolute; top: 1rem; left: 1rem; background: var(--lime); color: var(--ink); padding: .55rem; font: 600 .72rem "IBM Plex Mono", monospace; }
.post-body { padding: clamp(1.4rem, 3vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; }
.post-meta { display: flex; flex-wrap: wrap; gap: .7rem; color: #6d6961; font: 600 .68rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.post-meta span + span::before, .post-meta time::before { content: "/"; margin-right: .7rem; color: var(--red); }
.post-body h3 { margin: 1.2rem 0 .9rem; font: 700 clamp(1.8rem, 3.5vw, 3.5rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.post-body h3 a { text-decoration: none; }
.post-body > p { margin: 0 0 1.5rem; color: #595650; line-height: 1.65; }
.read-more { margin-top: auto; color: var(--blue); font: 700 .78rem "IBM Plex Mono", monospace; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .25rem; }
.empty-state { border: 1px dashed var(--ink); padding: 2rem; background: var(--white); }

.projects-section { background: var(--ink); color: white; }
.project-shelf { border-top: 1px solid rgba(255,255,255,.2); }
.project { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.project-index { font: 600 .8rem "IBM Plex Mono", monospace; color: rgba(255,255,255,.42); }
.project h3 { margin: .3rem 0 .6rem; font: 700 clamp(1.7rem, 3vw, 3rem) "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.project p { margin: 0; max-width: 760px; color: rgba(255,255,255,.58); line-height: 1.55; }
.project .project-status { color: var(--lime); font: 600 .68rem "IBM Plex Mono", monospace; letter-spacing: .1em; }
.project a, .project-soon { font: 600 .74rem "IBM Plex Mono", monospace; text-transform: uppercase; text-underline-offset: .3rem; white-space: nowrap; }
.project:hover h3 { color: var(--lime); }
.project-red:hover h3 { color: var(--red); }
.project-yellow:hover h3 { color: var(--yellow); }
.project-blue:hover h3 { color: #6e8cff; }

.manifesto { background: var(--lime); border-bottom: 2px solid var(--ink); }
.manifesto blockquote { max-width: 1100px; margin: 0; font: 700 clamp(2.5rem, 6vw, 6.5rem)/.96 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.manifesto-meta { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 720px) auto; gap: 3rem; align-items: end; }
.manifesto-meta p { margin: 0; line-height: 1.7; }
.manifesto-meta a { font: 700 .78rem "IBM Plex Mono", monospace; text-transform: uppercase; }

footer { background: var(--ink); color: white; padding: 3rem clamp(1.25rem, 7vw, 8rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
footer img { width: 150px; }
footer p { color: rgba(255,255,255,.48); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: rgba(255,255,255,.72); font: 600 .72rem "IBM Plex Mono", monospace; text-transform: uppercase; }

.article-page { background: var(--paper); }
.article-shell { padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 7vw, 8rem); }
.article-content { max-width: 1180px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 3rem; color: var(--blue); font: 600 .76rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.article-header { max-width: 960px; }
.article-header h1, .not-found h1 { margin: 1.5rem 0; font: 700 clamp(3rem, 7vw, 7.4rem)/.9 "Space Grotesk", sans-serif; letter-spacing: -.065em; }
.article-lead { max-width: 760px; color: #595650; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.6; }
.article-cover { margin: 4rem 0; height: clamp(320px, 55vw, 700px); border: 1px solid var(--ink); background: var(--ink); box-shadow: 12px 12px 0 var(--lime); overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-prose { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; }
.article-prose h2 { margin: 3.4rem 0 1rem; font: 700 clamp(2rem, 4vw, 3.5rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.article-prose blockquote { margin: 3rem -5vw; padding: 2rem 5vw; background: var(--ink); color: white; font: 600 clamp(1.5rem, 3vw, 2.5rem)/1.25 "Space Grotesk", sans-serif; box-shadow: 10px 10px 0 var(--lime); }
.article-prose li { margin: .7rem 0; }
.next-reading { max-width: 960px; margin: 7rem auto 0; border-top: 2px solid var(--ink); padding-top: 2rem; }
.next-reading h2 { max-width: 780px; font: 700 clamp(2rem, 4vw, 4rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.dark-link { margin-bottom: 3rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-note { max-width: 440px; justify-self: end; }
  .section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card, .post-card.post-featured { grid-column: auto; grid-template-columns: minmax(160px, .65fr) minmax(0, 1.35fr); }
  .project { grid-template-columns: 44px 1fr; }
  .project a, .project-soon { grid-column: 2; }
  .manifesto-meta { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: auto; padding-block: .7rem; align-items: flex-start; }
  .brand img { width: 68px; height: 48px; }
  .site-header nav { gap: .8rem; flex-direction: column; text-align: right; }
  .hero { padding-top: 4.5rem; gap: 3rem; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5.8rem); }
  .hero-note { margin-inline: .4rem; }
  .post-card, .post-card.post-featured { grid-template-columns: 1fr; }
  .post-image { min-height: 250px; }
  .project { grid-template-columns: 1fr; gap: .7rem; }
  .project a, .project-soon { grid-column: 1; margin-top: 1rem; }
  footer { align-items: flex-start; flex-direction: column; }
  .article-prose blockquote { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker div { animation: none; }
  * { transition-duration: .01ms !important; }
}
