/* The blog, on top of site.css. The home page's grid: on a wide window a night column as wide as
   the bar's name cell stays put on the left, with what the page is, and the words scroll on the
   right. On a phone the night column is a band at the top, then the words. */

.split { display: flex; flex-direction: column; font-size: 16px; line-height: 1.6; }
.split-side { display: flex; flex-direction: column; background: var(--night); color: #fff; }
.split-side-in { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 20px 36px; }
.split-main { min-width: 0; padding: 32px 20px 64px; }
@media (min-width: 640px) {
  .split-side-in { padding: 44px 80px 48px; }
  .split-main { padding: 48px 80px 88px; }
}
@media (min-width: 1024px) {
  .split { display: grid; grid-template-columns: minmax(500px, 40%) 1fr; align-items: start; }
  .split-side { position: sticky; top: 44px; height: calc(100vh - 2.75rem); height: calc(100svh - 2.75rem); }
  .split-side-in { flex: 1; justify-content: center; overflow-y: auto; padding: 48px 40px; }
  .split-main { padding: 36px 32px 96px; }
}
@media (min-width: 1536px) { .split-side-in { padding: 48px 56px; } }

/* What the page is, in the night column. */
.split-side h1 { color: #fff; font-size: 30px; line-height: 1.1; }
@media (min-width: 640px) { .split-side h1 { font-size: 40px; } }
@media (min-width: 1280px) { .split-side h1 { font-size: 44px; } }
.side-back, .side-eyebrow { font-family: var(--font-code); font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.08em; color: #e3e8fb; }
.side-back:hover { color: #fff; text-decoration: none; }
.side-back:focus-visible { outline-color: #fff; }
.side-text { max-width: 30rem; font-size: 15px; line-height: 1.6; color: rgb(227 232 251 / 0.78); }
.split-side .byline { color: var(--pale); }
.side-count { display: flex; width: 100%; max-width: 30rem; justify-content: space-between; border-top: 1px solid var(--night-line); padding-top: 14px; font-size: 13px; color: var(--pale); }
.side-count span:last-child { font-family: var(--font-code); color: #fff; }
.split-side .vault-links a:focus-visible { outline-color: #fff; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-code); font-size: 11.5px; line-height: 1.5; color: var(--muted); }

/* The list of posts: a tile like the link card, the title and its line, the day and an arrow. */
.posts > ul { margin-top: 12px; }
.posts li a { display: flex; align-items: center; gap: 20px; border-bottom: 1px dashed var(--rule); padding: 20px 0; color: inherit; }
.posts li a:hover { text-decoration: none; }
.posts li a:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.posts li a:hover .arrow { transform: translateX(2px); color: var(--ink); }
.tile { display: none; width: 176px; flex: none; aspect-ratio: 1200 / 630; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--night-line); background: var(--night); padding: 12px; color: #fff; }
.tile .mark { width: 18px; height: 18px; }
.tile > span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 640px) { .tile { display: flex; } }
@media (min-width: 1280px) { .tile { width: 208px; } }
.post-line { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 6px; }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.post-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.5; color: var(--muted); }
.arrow { flex: none; font-family: var(--font-code); font-size: 13px; color: var(--muted); transition: transform 150ms; }

/* A post's words. */
.post { max-width: 720px; }
.prose { font-size: 16px; line-height: 1.7; color: var(--foreground); }
.prose > * + * { margin-top: 16px; }
.prose h2 { display: flex; align-items: center; gap: 16px; margin-top: 44px; font-size: 22px; line-height: 1.3; }
.prose h2::after { content: ""; height: 1px; min-width: 24px; flex: 1; background: var(--rule); }
.prose h3 { margin-top: 28px; font-size: 17px; line-height: 1.4; }
.prose :is(h2, h3) + * { margin-top: 10px; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--muted); }
.prose li + li { margin-top: 8px; }
.prose :not(pre) > code { overflow-wrap: break-word; background: var(--tint); padding: 1px 5px; font-size: 14px; color: var(--ink); }

/* Commands on the night blue, like the line on the home page, with a copy button. */
.prose .code { position: relative; background: var(--night); }
.prose .code pre { overflow-x: auto; padding: 16px 64px 16px 18px; font-size: 14px; line-height: 1.7; color: #fff; }
.prose .code button { position: absolute; top: 12px; right: 14px; font-family: var(--font-code); font-size: 13px; line-height: 1.7; color: var(--pale); }
.prose .code button:hover { color: #fff; }
.prose .code button:focus-visible { outline-color: #fff; }
@media (min-width: 640px) { .prose .code pre { padding: 18px 72px 18px 22px; } }

/* What a command prints, on paper, under a small label. */
.prose .out { border: 1px solid var(--rule); background: #fafafa; }
.prose .code + .out { margin-top: 0; border-top: 0; }
.prose .out p { border-bottom: 1px solid var(--rule); padding: 6px 18px; font-family: var(--font-code); font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.prose .out pre { overflow-x: auto; padding: 14px 18px; font-size: 13px; line-height: 1.7; color: var(--ink); }

/* What you'd say to your agent, as the person's bubble in the examples on the home page. */
.prose .say { width: fit-content; max-width: 85%; margin-left: auto; background: var(--night); padding: 8px 14px; font-size: 15px; line-height: 1.45; color: #fff; }

.prose .table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: #fafafa; font-weight: 500; color: var(--ink); }
.prose td code { font-size: 13px; white-space: nowrap; }

/* The other posts, after the words. */
.related { margin-top: 56px; }
.site-main :is(.posts, .related) > h2 { font-family: var(--font-code); font-weight: 400; letter-spacing: 0; font-size: 14px; line-height: 1.5; }
.related ul { margin-top: 14px; }
.related li { border-bottom: 1px solid var(--rule); }
.related li a { display: block; padding: 10px 0; font-size: 15px; line-height: 1.5; }
