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

:root {
  color-scheme: light;
  --paper: #f1f0e9;
  --paper-light: #f8f7f2;
  --ink: #20251f;
  --muted: #72766c;
  --line: #d8d9d0;
  --acid: #c9ed55;
  --orange: #fb6542;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--acid); color: var(--ink); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 5;
  padding: .75rem 1rem; background: var(--acid); color: var(--ink);
}
.skip-link:focus { top: 1rem; }
.shell { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem; text-decoration: none;
  font-family: var(--display); font-size: 1.02rem; font-weight: 800; letter-spacing: -.05em;
}
.brand-mark {
  display: grid; width: 34px; height: 34px; place-items: center;
  background: var(--ink); color: var(--paper); border-radius: 10px;
  font-family: var(--mono); font-size: .85rem; letter-spacing: -.12em;
}
.brand-mark span { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .88rem; }
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .7rem 1rem; border: 1px solid var(--ink); border-radius: 3px;
  text-decoration: none; font-size: .83rem; font-weight: 700;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper-light); }
.nav-cta span { color: var(--orange); }

.hero { padding: 92px 0 72px; }
.hero-topline { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #86a829; box-shadow: 0 0 0 4px #86a82920; }
.hero h1 {
  max-width: 920px; margin: 24px 0 22px; font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 7rem); line-height: .98; letter-spacing: -.085em; font-weight: 600;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.hero-copy { max-width: 490px; margin: 0; color: #62675e; font-size: 1.08rem; line-height: 1.7; }
.hero-index { color: var(--muted); white-space: nowrap; }
.hero-index strong { color: var(--ink); font-weight: 500; }

.feature {
  position: relative; display: grid; grid-template-columns: 1fr .82fr; min-height: 365px;
  overflow: hidden; background: var(--ink); color: var(--paper-light);
}
.feature-copy { display: flex; flex-direction: column; align-items: start; padding: 42px 46px; }
.feature-label { color: var(--acid); }
.feature h2 {
  max-width: 550px; margin: 30px 0 18px; font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; letter-spacing: -.065em; font-weight: 600;
}
.feature-copy > p { max-width: 465px; margin: 0; color: #b6bbb1; line-height: 1.65; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: auto; padding-top: 28px; color: #b6bbb1; }
.feature-meta span + span::before { content: "·"; margin-right: 1rem; color: var(--orange); }
.text-link { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; font-size: .9rem; font-weight: 700; }
.text-link:hover span { transform: translateX(4px); }
.text-link span { color: var(--orange); transition: transform .2s; }
.feature-art {
  position: relative; display: grid; overflow: hidden; place-items: center;
  background: #30382b;
  background-image: radial-gradient(circle at 50% 50%, #80914c 0, #424d34 29%, #30382b 70%);
}
.feature-art::before, .feature-art::after {
  content: ""; position: absolute; width: min(30vw, 310px); aspect-ratio: 1; border: 1px solid #e8f1ca40; border-radius: 50%;
}
.feature-art::after { width: min(22vw, 225px); }
.orbit { position: absolute; width: min(15vw, 150px); aspect-ratio: 1; border: 1px solid #e8f1ca40; border-radius: 50%; }
.core {
  position: relative; z-index: 1; display: grid; width: 94px; aspect-ratio: 1; place-items: center;
  border-radius: 26px; background: var(--acid); color: var(--ink);
  box-shadow: 0 0 75px #c9ed5566; font-family: var(--mono); font-size: 2rem;
  transform: rotate(-8deg);
}
.orbit-dot { position: absolute; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); top: 25%; right: 25%; box-shadow: 0 0 24px #fb6542aa; }
.art-tag { position: absolute; right: 24px; bottom: 21px; color: #d3d9c7; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 90px 0 25px; }
.section-head h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.07em; font-weight: 600; }
.section-head .mono { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; padding-bottom: 24px; }
.filter-btn {
  padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: #5f655a; cursor: pointer; font-size: .78rem;
}
.filter-btn:hover, .filter-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper-light); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.post-card {
  display: flex; min-height: 280px; flex-direction: column; padding: 24px 24px 23px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.post-card + .post-card { padding-left: 24px; border-left: 1px solid var(--line); }
.post-category { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.category-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.post-card h3 { margin: 30px 0 12px; font-family: var(--display); font-size: 1.42rem; line-height: 1.2; letter-spacing: -.045em; font-weight: 600; }
.post-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 26px; color: var(--muted); }
.post-footer span:last-child { color: var(--orange); font-size: 1.1rem; transition: transform .2s; }
.post-card:hover .post-footer span:last-child { transform: translateX(4px); }
.post-card[hidden] { display: none; }
.empty-state { display: none; padding: 34px 0; color: var(--muted); }
.empty-state.visible { display: block; }

.manifesto {
  display: grid; grid-template-columns: .8fr 1fr; gap: 4rem; align-items: start;
  margin: 90px 0; padding: 40px; background: var(--acid);
}
.manifesto .mono { color: #586438; }
.manifesto h2 { max-width: 450px; margin: 18px 0 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.07em; line-height: 1.08; font-weight: 600; }
.manifesto-copy { padding-top: 8px; color: #49513a; line-height: 1.75; }
.manifesto-copy p { margin: 0 0 1rem; }
.manifesto-copy .text-link { margin-top: .5rem; color: var(--ink); }
.manifesto-copy .text-link span { color: var(--orange); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 100px; }
.footer-note, .footer-links { color: var(--muted); font-size: .78rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Article pages */
.article-top { padding: 40px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.article-head { max-width: 850px; padding: 65px 0 42px; }
.article-head h1 { margin: 18px 0; font-family: var(--display); font-size: clamp(2.8rem, 6.4vw, 5.3rem); line-height: 1.03; letter-spacing: -.08em; font-weight: 600; }
.article-dek { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.article-byline { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 28px; color: var(--muted); }
.article-byline span + span::before { content: "·"; margin-right: 1.1rem; color: var(--orange); }
.article-rule { border: 0; border-top: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: minmax(0, 680px) 220px; justify-content: space-between; gap: 4rem; padding: 38px 0 90px; }
.article-body { font-size: 1.04rem; line-height: 1.85; color: #42473e; }
.article-body h2 { margin: 2.8rem 0 1rem; color: var(--ink); font-family: var(--display); font-size: 1.9rem; letter-spacing: -.055em; line-height: 1.2; font-weight: 600; }
.article-body h3 { margin: 2rem 0 .6rem; color: var(--ink); font-family: var(--display); font-size: 1.3rem; letter-spacing: -.04em; }
.article-body p { margin: 0 0 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { padding-left: .35rem; margin: .5rem 0; }
.article-body strong { color: var(--ink); }
.article-body a { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.article-body blockquote { margin: 2rem 0; padding: 1px 0 1px 22px; border-left: 3px solid var(--orange); color: var(--ink); font-size: 1.2rem; }
.article-body code { padding: .15em .35em; background: #e5e6db; font-family: var(--mono); font-size: .84em; }
.article-body pre { overflow-x: auto; padding: 20px; background: var(--ink); color: var(--acid); font-size: .82rem; line-height: 1.7; }
.article-body pre code { padding: 0; background: none; color: inherit; }
.article-aside { position: sticky; top: 24px; align-self: start; padding: 20px; background: var(--paper-light); }
.article-aside .mono { color: var(--muted); }
.article-aside ul { margin: 14px 0 0; padding: 0; list-style: none; }
.article-aside li { margin: 12px 0; }
.article-aside a { color: var(--muted); text-decoration: none; font-size: .84rem; line-height: 1.5; }
.article-aside a:hover { color: var(--ink); }
.article-end { margin-top: 3rem; padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.article-end a { color: var(--ink); }
.article-cta { margin-top: 3rem; padding: 24px; background: var(--acid); color: var(--ink); }
.article-cta p { margin-bottom: 0; }

.not-found { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.not-found h1 { margin: 10px; font-family: var(--display); font-size: 4rem; letter-spacing: -.08em; }
.not-found p { color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 560px); }
  .nav { min-height: 66px; }
  .nav-right { gap: 1rem; }
  .nav-link { display: none; }
  .nav-cta { padding: .6rem .72rem; font-size: .76rem; }
  .hero { padding: 66px 0 48px; }
  .hero h1 { font-size: clamp(3.4rem, 15vw, 5.5rem); }
  .hero-bottom { align-items: start; flex-direction: column; gap: 1.2rem; }
  .feature { grid-template-columns: 1fr; }
  .feature-copy { min-height: 340px; padding: 30px 26px; }
  .feature-art { min-height: 260px; }
  .feature-art::before { width: 220px; }
  .feature-art::after { width: 165px; }
  .orbit { width: 110px; }
  .section-head { padding-top: 62px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card, .post-card + .post-card { min-height: 240px; padding: 22px 0; border-left: 0; }
  .post-card h3 { margin-top: 23px; }
  .manifesto { grid-template-columns: 1fr; gap: 1.5rem; margin: 64px 0; padding: 27px; }
  .footer-inner { min-height: 125px; align-items: start; justify-content: center; flex-direction: column; gap: .75rem; padding-block: 25px; }
  .article-head { padding: 48px 0 30px; }
  .article-head h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .article-dek { font-size: 1.05rem; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 26px; }
  .article-aside { position: static; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
