/* The Atom & The Market — shared styles */
:root {
  --ink: #0a0a0a;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --rule: #ececec;
  --bg: #ffffff;
  --night: #030303;        /* logo background */
  --cream: #efe8da;        /* logo foreground */
  --cream-muted: #a9a399;
  --accent: #c94d1c;       /* logo orange */
  --scaling: #0a8a4a;
  --promising: #c94d1c;
  --early: #9a9a9a;
  --hype: #0a0a0a;
  --serif: "Cormorant Garamond", "Trajan Pro", Georgia, "Times New Roman", serif;
  --max: 1080px;
  --read: 680px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.read { max-width: var(--read); }
.read.center { margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.band { background: var(--night); color: var(--cream); }
nav { display: flex; gap: 32px; align-items: center; font-size: 15px; }
nav a { color: var(--cream-muted); }
nav a:hover, nav a[aria-current] { color: var(--cream); }
nav .cta { color: var(--cream); font-weight: 550; }
nav .cta:hover { color: var(--accent); }

.home-header { padding: 26px 0; }
.home-header .wrap { display: flex; justify-content: flex-end; }

.topbar { background: var(--night); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.topbar img { display: block; height: 34px; width: auto; }

/* ---------- Hero (home) ---------- */
.hero { text-align: center; padding: 0 0 88px; }
.hero img { display: block; width: min(680px, 100%); height: auto; margin: -24px auto 0; }
.hero p { margin: 8px auto 0; max-width: 52ch; font-size: 18px; color: var(--cream-muted); }
.fine { margin-top: 12px; font-size: 13px; color: #6f6a62; }
.fine a { color: var(--cream-muted); text-decoration: underline; text-underline-offset: 2px; }
.fine a:hover { color: var(--cream); }

/* ---------- Subscribe ---------- */
.subscribe { margin: 36px auto 0; display: flex; gap: 8px; max-width: 460px; }
.subscribe input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 13px 16px;
  background: transparent; color: var(--cream);
  border: 1px solid #3a3a3a; border-radius: 8px; outline: none;
}
.subscribe input::placeholder { color: #6f6a62; }
.subscribe input:focus { border-color: var(--cream-muted); }
.subscribe button {
  font: inherit; font-size: 15px; font-weight: 550; padding: 13px 20px;
  border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer;
}
.subscribe button:hover { background: #b0431a; }
.subscribe-embed { margin: 28px auto 0; max-width: 480px; }
.subscribe-embed iframe { max-width: 100%; }

.sub-band { background: var(--night); color: var(--cream); text-align: center; padding: 72px 0; }
.sub-band p { color: var(--cream-muted); font-size: 18px; max-width: 46ch; margin: 0 auto; }
.sub-band .subscribe { margin-top: 28px; }

/* ---------- Common ---------- */
.label {
  font-family: var(--serif);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
}
.label::after { content: ""; display: block; width: 32px; height: 2px; background: var(--accent); margin-top: 10px; }
.k { font-size: 12px; font-weight: 550; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
section { padding: 72px 0; border-top: 1px solid var(--rule); }
.band + main > section:first-child, section.first { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.section-head a { font-size: 15px; color: var(--muted); }
.section-head a:hover { color: var(--accent); }
.empty-note { padding: 40px 0 8px; color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-sizing: border-box; }
.t-scaling { color: var(--scaling); }
.t-promising { color: var(--promising); }
.t-early { color: var(--early); }
.t-hype { color: var(--hype); }
.t-hype::before { background: transparent; border: 2px solid currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border: 1px solid #dedede; border-radius: 999px; white-space: nowrap; }

/* ---------- Technology list (home + archive) ---------- */
.find {
  display: grid; grid-template-columns: 1fr 220px 120px; gap: 6px 40px;
  padding: 32px 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.find:last-child { border-bottom: 0; }
.find h3 { font-size: 23px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.find:hover h3 { color: var(--accent); }
.find .use { color: var(--muted); font-size: 16px; max-width: 56ch; margin-top: 6px; }
.find .src { font-size: 13px; color: var(--faint); margin-top: 10px; }
.find .k { margin-bottom: 8px; }
.ready { text-align: right; }
.ready .score { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ready .score small { font-size: 14px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.ready .tag { margin-top: 8px; }

/* ---------- Author ---------- */
.author { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; margin-top: 36px; }
.author.big { grid-template-columns: 240px 1fr; gap: 56px; align-items: start; margin-top: 40px; }
.author .portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; background: #f3f3f3; }
.author h3, .author .name { font-size: 36px; line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; }
.author.big h3, .author.big .name { font-size: 44px; }
.written-by { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; padding: 14px 20px 14px 14px; border: 1px solid var(--rule); border-radius: 12px; }
.written-by:hover { border-color: var(--ink); }
.written-by img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.written-by > span { display: grid; gap: 1px; }
.written-by .k { font-size: 11px; }
.written-by b { font-size: 16px; font-weight: 600; }
.written-by .more { font-size: 14px; color: var(--accent); }
.author .role { color: var(--muted); font-size: 17px; margin-top: 8px; }
.author p.bio { margin-top: 22px; font-size: 18px; line-height: 1.65; max-width: 58ch; }
.author .bio p { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--text); max-width: 62ch; }
.author .bio p:first-child { margin-top: 28px; }
.author .facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.author .facts b { color: var(--ink); font-weight: 600; }
.author .more { display: inline-block; margin-top: 26px; font-weight: 550; color: var(--accent); }
.author .links { margin-top: 24px; display: flex; gap: 24px; font-size: 15px; font-weight: 550; }
.author .links a { color: var(--accent); }

/* ---------- How we work ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 36px; }
.steps .n { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent); }
.steps h4 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin-top: 6px; }
.steps p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- Readiness (home) ---------- */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.method > div > p { color: var(--muted); margin-top: 28px; max-width: 46ch; }
.legend { margin-top: 28px; display: grid; gap: 12px; }
.legend div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }

/* ---------- Readiness card ---------- */
.card { border: 1px solid var(--rule); border-radius: 14px; padding: 28px; }
.card-title { font-size: 15px; font-weight: 600; }
.card-title a:hover { color: var(--accent); }
.card-sub { font-size: 13px; color: var(--faint); margin-top: 2px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.card-title + .card-sub + .card-top, .card-title + .card-top { margin-top: 22px; }
.card-top .big { font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.card-top .big small { font-size: 19px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.card-top .v { text-align: right; }
.card-top .v .hz { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.axis { display: grid; grid-template-columns: 150px 1fr 24px; gap: 4px 16px; align-items: center; padding: 10px 0; }
.axis .name { font-size: 15px; color: var(--ink); font-weight: 550; }
.bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bar i { height: 6px; border-radius: 3px; background: var(--rule); }
.bar i.on { background: var(--ink); }
.axis .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
.axis .why { grid-column: 2 / 4; font-size: 14px; color: var(--muted); line-height: 1.45; }
.axis .q { grid-column: 2 / 4; font-size: 14px; color: var(--muted); }
.card-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---------- Article ---------- */
.art-head { padding-top: 72px; padding-bottom: 40px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumb a:hover { color: var(--accent); }
.art-head h1 { margin-top: 22px; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 650; }
.ref { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--rule); font-size: 15px; color: var(--muted); line-height: 1.5; }
.ref .k { margin-bottom: 6px; }
.ref i { color: var(--ink); }
.ref a { color: var(--accent); }
.ref .ref-meta { margin-top: 4px; font-size: 13px; color: var(--faint); }
.disclosure { margin-top: 14px; font-size: 14px; color: var(--muted); }
.disclosure b { color: var(--ink); font-weight: 600; }
.care { margin-top: 32px; }
.care .label { font-size: 15px; }
.care .chips { margin-top: 14px; gap: 8px; }
.care .chip { font-size: 14px; font-weight: 550; padding: 5px 13px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.byline .who { font-size: 15px; font-weight: 600; }
.byline .who a:hover { color: var(--accent); }
.byline .when { font-size: 13px; color: var(--faint); }

.glance {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 18px 0; margin-bottom: 48px;
}
.glance .left { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.glance .score { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.glance .score small { font-size: 14px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.glance .hz { font-size: 14px; color: var(--muted); }
.glance a { font-size: 14px; color: var(--muted); }
.glance a:hover { color: var(--accent); }

.body p, .body li { font-size: 18px; line-height: 1.7; color: var(--text); }
.body p { margin-bottom: 22px; }
.body ul, .body ol { margin: 0 0 22px 22px; }
.body li { margin-bottom: 6px; }
.body h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin: 40px 0 14px; }
.body h3 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.body a { color: var(--accent); border-bottom: 1px solid rgba(201,77,28,.3); }
.body strong { font-weight: 600; color: var(--ink); }
.body blockquote { border-left: 2px solid var(--accent); padding-left: 18px; color: var(--muted); margin: 0 0 22px; }
.body img { display: block; margin: 8px 0 26px; border-radius: 8px; }
.body table { width: 100%; border-collapse: collapse; margin: 8px 0 32px; font-size: 15px; }
.body th, .body td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-variant-numeric: tabular-nums; }
.body th { font-size: 12px; font-weight: 550; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

.readiness { padding: 24px 0 64px; border-top: 0; }
.readiness .card { margin-top: 28px; padding: 32px; }
.override { margin-top: 14px; font-size: 14px; color: var(--muted); }
.art-foot { border-top: 1px solid var(--rule); padding: 28px 0 72px; }
.art-foot p { font-size: 13px; color: var(--faint); }
.art-foot a { color: var(--accent); }

/* ---------- Archive ---------- */
.page-head { padding-top: 64px; padding-bottom: 28px; }
.page-head .intro { margin-top: 20px; color: var(--muted); max-width: 60ch; }
.filters { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 0; display: grid; gap: 18px; }
.frow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search {
  flex: 1 1 280px; min-width: 0; font: inherit; font-size: 15px;
  padding: 10px 14px 10px 38px; border: 1px solid #d9d9d9; border-radius: 8px; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 13px center;
}
.search:focus { border-color: var(--ink); }
select {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 34px 10px 14px; border: 1px solid #d9d9d9; border-radius: 8px; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236b6b6b' stroke-width='1.5'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 13px center;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
select:focus { border-color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font: inherit; font-size: 14px; font-weight: 550; padding: 6px 14px; border-radius: 999px;
  border: 1px solid #dedede; background: #fff; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; }
.pill[aria-pressed="true"] .dot.d-hype { border-color: #fff; }
.d-scaling { background: var(--scaling); }
.d-promising { background: var(--promising); }
.d-early { background: var(--early); }
.d-hype { border: 2px solid var(--hype); }
.spacer { flex: 1; }
.reset { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.reset:hover { color: var(--accent); }
.count { padding: 20px 0 0; font-size: 14px; color: var(--faint); }
.list { padding-bottom: 80px; }
.no-results { padding: 64px 0; text-align: center; color: var(--muted); }

/* ---------- About ---------- */
.lead { margin-top: 28px; font-size: 21px; line-height: 1.55; letter-spacing: -0.01em; }
.prose p { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--text); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; margin-top: 36px; }
.principles h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.principles p { margin-top: 6px; font-size: 16px; color: var(--muted); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 36px; }
.contact h3 { font-size: 18px; font-weight: 600; }
.contact p { margin-top: 6px; font-size: 16px; color: var(--muted); }
.contact a { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound p { margin-top: 16px; color: var(--muted); }
.notfound a { color: var(--accent); }

/* ---------- Footer ---------- */
footer { background: var(--night); color: var(--cream-muted); padding: 32px 0 56px; font-size: 14px; }
.sub-band + footer { padding-top: 0; }
.sub-band + footer .wrap { border-top: 1px solid #1c1c1c; padding-top: 32px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a:hover { color: var(--cream); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .find { grid-template-columns: 1fr auto; }
  .find .for { grid-column: 1 / -1; grid-row: 2; }
  .ready { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  nav { gap: 20px; font-size: 14px; flex-wrap: wrap; }
  .topbar .wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 14px; }
  .topbar img { height: 26px; }
  .home-header .wrap { justify-content: flex-start; }
  .hero img { margin-top: 0; }
  .steps, .principles, .contact { grid-template-columns: 1fr; gap: 28px; }
  .method { grid-template-columns: 1fr; gap: 40px; }
  .author, .author.big { grid-template-columns: 1fr; gap: 28px; }
  .author .portrait { max-width: 160px; }
  .author h3, .author.big h3, .author .name, .author.big .name { font-size: 30px; }
  .axis { grid-template-columns: 110px 1fr 20px; }
  .axis .why, .axis .q { grid-column: 1 / -1; }
  .art-head { padding-top: 48px; padding-bottom: 32px; }
  .page-head { padding-top: 44px; padding-bottom: 24px; }
  .body p, .body li { font-size: 17px; }
  .readiness .card { padding: 22px; }
  select { flex: 1 1 140px; }
  .spacer { display: none; }
  .lead { font-size: 19px; }
}
