@font-face { font-family: "JBM"; src: url("/fonts/jbm-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JBM"; src: url("/fonts/jbm-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0E1116;
  --panel: #141920;
  --line: #232A33;
  --text: #EEF1F4;
  --muted: #9AA3AF;
  --green: #3DDC84;
  --open: #FF7A6B;
  --mono: "JBM", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.mark { color: var(--text); text-decoration: none; font-family: var(--mono); font-weight: 800; font-size: 26px; line-height: 1; display: flex; align-items: center; gap: 10px; }
.mark i { display: inline-block; width: 14px; height: 4px; background: var(--green); margin-top: 14px; }
.mark small { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--muted); margin-left: 4px; }
nav { display: flex; gap: 26px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 56px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(238,241,244,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,241,244,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(36px, 5.6vw, 62px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 24px; }
h1 .cursor { display: inline-block; width: .55em; height: .12em; background: var(--green); vertical-align: baseline; margin-left: .08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 0 0 32px; }
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 15px 24px; border-radius: 6px; font-size: 16px; }
.btn-go { background: var(--green); color: #08200F; }
.btn-go:hover { background: #63E79F; }
.btn-line { color: var(--text); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--muted); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Terminal self-check: the one loud thing on the page */
.term { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(61,220,132,.25); overflow: hidden; counter-reset: done; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-bar b { margin-left: 10px; font: 500 13px var(--mono); color: var(--muted); }
.term-body { padding: 18px 18px 20px; font-family: var(--mono); font-weight: 500; font-size: 14.5px; }
.term-body p { margin: 0 0 4px; color: var(--muted); }
.term-body .cmd { color: var(--text); }
.term-body .cmd::before { content: "PS> "; color: var(--green); }
.checks { list-style: none; margin: 14px 0 16px; padding: 0; }
.checks li { opacity: 0; animation: line .35s ease-out forwards; }
.checks li:nth-child(1) { animation-delay: .3s; } .checks li:nth-child(2) { animation-delay: .45s; }
.checks li:nth-child(3) { animation-delay: .6s; }  .checks li:nth-child(4) { animation-delay: .75s; }
.checks li:nth-child(5) { animation-delay: .9s; }  .checks li:nth-child(6) { animation-delay: 1.05s; }
.checks li:nth-child(7) { animation-delay: 1.2s; } .checks li:nth-child(8) { animation-delay: 1.35s; }
@keyframes line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.checks label { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 6px; cursor: pointer; color: var(--text); }
.checks label:hover { background: rgba(238,241,244,.04); }
.checks input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 2px solid var(--muted); border-radius: 3px; display: grid; place-content: center; cursor: pointer; }
.checks input::after { content: ""; width: 9px; height: 5px; border: solid #08200F; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checks input:checked { background: var(--green); border-color: var(--green); counter-increment: done; }
.checks input:checked::after { opacity: 1; }
.state { font-size: 12.5px; padding: 2px 8px; border-radius: 4px; color: var(--open); border: 1px solid rgba(255,122,107,.45); }
.state::after { content: "open"; }
.checks input:checked ~ .state { color: var(--green); border-color: rgba(61,220,132,.45); }
.checks input:checked ~ .state::after { content: "done"; }
.score { border-top: 1px dashed var(--line); padding-top: 14px; color: var(--text); }
.score::before { content: counter(done) " of 8 in place"; font-weight: 800; color: var(--green); font-size: 18px; display: block; margin-bottom: 4px; }
.score span { color: var(--muted); font-family: var(--sans); font-size: 15px; }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split p { color: var(--muted); max-width: 52ch; }

.areas { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.areas li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.areas b { font-size: 18px; }
.areas em { font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--green); align-self: center; }
.areas span { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }

.tree { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 24px; overflow-x: auto; font: 500 14px/1.9 var(--mono); color: var(--text); }
.tree .dim { color: var(--muted); }
.tree .ps { color: var(--green); }
.soon { display: inline-block; font-family: var(--mono); font-size: 14px; color: var(--green); margin-bottom: 16px; }

.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.rules p { color: var(--muted); margin: 0; font-size: 15.5px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer p { margin: 0 0 4px; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .rules { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 32px 0 72px; }
  section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .checks li { animation: none; opacity: 1; }
  h1 .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* Inner pages: blog, posts, contact */
.page { padding-top: 56px; padding-bottom: 96px; }
.page-head { max-width: 760px; margin-bottom: 48px; }
.page-head h1 { max-width: none; font-size: clamp(34px, 5vw, 52px); }
.page-head .lead { margin-bottom: 0; }

.posts { list-style: none; padding: 0; margin: 0; max-width: 760px; border-top: 1px solid var(--line); }
.posts li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.posts time { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.posts h2 { font-size: 24px; margin: 6px 0 8px; }
.posts h2 a { color: var(--text); text-decoration: none; }
.posts h2 a:hover { color: var(--green); }
.posts p { color: var(--muted); margin: 0; }
.empty { color: var(--muted); }

.post { max-width: 720px; }
.post-meta { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.post-meta a { color: var(--muted); }
.post h1 { max-width: none; font-size: clamp(32px, 4.6vw, 48px); }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: var(--mono); font-weight: 500; font-size: .86em; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; overflow-x: auto; margin: 0 0 24px; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 14.5px; line-height: 1.7; }
.prose blockquote { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }
.post-cta { margin-top: 56px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.post-cta h2 { font-size: 22px; margin: 0 0 8px; }
.post-cta p { color: var(--muted); margin: 0 0 20px; }
.back { display: inline-block; margin-top: 40px; color: var(--muted); }

.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1000px; }
.contact a.box { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.contact a.box:hover { border-color: var(--green); }
.contact h2 { font-size: 20px; margin: 0 0 8px; }
.contact p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.contact .addr { font-family: var(--mono); font-weight: 500; font-size: 14.5px; color: var(--green); }
.small-print { color: var(--muted); max-width: 640px; margin-top: 40px; font-size: 15px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { nav { gap: 6px 18px; } nav a { font-size: 14.5px; } .top { gap: 14px; } }
