/* anshulbisen.com: the brand kit (assets/brand-kit/kit.json, D-0012) as one reading page. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --surface: #f2f4f7;
  --text: #0e1116;
  --muted: #5b6472;
  --line: #8a929e;
  --accent: #2342d6;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --measure: 44rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #1a1f27;
    --text: #f3f5f8;
    --muted: #9aa3b2;
    --line: #5b6472;
    --accent: #7b93ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 450;
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.65;
}
main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 5rem) var(--gutter) 3rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--text);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 1;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The mark and his name. */
.top {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 0;
}
.home {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.mark {
  color: var(--line);
  flex: none;
}
.mark-node {
  fill: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

/* The index. */
.intro h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);
  margin: 0 0 0.5rem;
}
.intro p {
  margin: 0;
  color: var(--muted);
}
.empty {
  margin: 3rem 0 0;
  color: var(--muted);
}

/* The list is the mark drawn long: a grey line, a node per article, the newest filled. */
.list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
}
.list::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 3px;
  border-radius: 999px;
  background: var(--line);
  opacity: 0.55;
}
.list li {
  position: relative;
  padding-left: 2.4rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--bg);
}
.list li:first-child::before {
  border-color: var(--accent);
  background: var(--accent);
}
.list a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0 1.4rem;
  color: var(--text);
  text-decoration: none;
}
.list .t {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.list a:hover .t {
  color: var(--accent);
}
.list .s {
  color: var(--muted);
  text-wrap: pretty;
}
.list time {
  color: var(--muted);
  font-size: 0.85em;
}

/* An article. */
.article h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  margin: 0;
}
.standfirst {
  font-size: 1.2em;
  line-height: 1.45;
  color: var(--muted);
  margin: 0.9rem 0 0;
  text-wrap: pretty;
}
.meta {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.85em;
}
.prose {
  max-width: 68ch;
  margin-top: 2.5rem;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose figure,
.prose table {
  margin: 0 0 1.3em;
}
.prose h2 {
  font-size: 1.55em;
  margin: 2.2em 0 0.6em;
}
.prose h3 {
  font-size: 1.25em;
  margin: 1.8em 0 0.5em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose blockquote {
  margin-left: 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.prose pre {
  background: var(--surface);
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.5;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.prose hr {
  border: 0;
  height: 3px;
  width: 4rem;
  background: var(--line);
  opacity: 0.55;
  margin: 2.5em 0;
}
.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.45em 0.8em 0.45em 0;
  text-align: left;
}
.back {
  margin: 3rem 0 0;
}

/* Footer. */
.foot {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot ul {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
}
.foot a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.foot p {
  margin: 0;
}
