/* The articles site. Same black, white and grey as the app, and the same font for headings; long text is set in a serif so it reads like an article, not a dashboard. */
:root { --bg: #050505; --panel: #0e0e0e; --line: #1f1f1f; --line-2: #333333; --text: #f2f2f2; --soft: #c9c9c9; --muted: #8d8d8d; --accent: #ffffff; --accent-2: #d9d9d9;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; color-scheme: dark; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; }
.brand svg { width: 28px; height: 28px; }
.brand span { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-2); }
.open { flex: none; text-decoration: none; background: var(--accent); color: #050505; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 9px; }
.open:hover { background: var(--accent-2); }

/* list of articles */
.list { max-width: 1080px; margin: 0 auto; padding: 56px 20px 40px; }
.list h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 0; }
.list .sub { color: var(--muted); font-size: 18px; max-width: 34em; margin: 16px 0 44px; }
.item { display: block; text-decoration: none; padding: 26px 0; border-top: 1px solid var(--line); }
.item time, .item small { color: var(--muted); font-size: 14px; }
.item h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; margin: 8px 0; }
.item p { color: var(--soft); margin: 0 0 10px; max-width: 38em; }
.item:hover h2 { color: var(--accent-2); }
.item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 16px; display: block; }
.item.lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.item.lead:not(:has(img)) { grid-template-columns: 1fr; }
.item.lead img { margin: 0; }
.item.lead h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 10px 0 12px; }
.item.lead p { font-size: 18px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.empty { color: var(--muted); border-top: 1px solid var(--line); padding-top: 26px; }

/* one article */
.post { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.back { color: var(--muted); font-size: 14px; text-decoration: none; }
.back::before { content: "\2190\00a0"; }
.back:hover { color: var(--text); }
.post h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; margin: 22px 0 16px; text-wrap: balance; }
.by { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.by span:first-child { color: var(--soft); }
.cover { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 32px; display: block; }
article { font: 19px/1.7 var(--serif); color: #dfe5ee; overflow-wrap: break-word; }
article > :first-child { margin-top: 0; }
article p, article ul, article ol, article blockquote, article pre, article table { margin: 0 0 1.25em; }
article h2, article h3 { font-family: var(--sans); color: var(--text); letter-spacing: -.02em; line-height: 1.2; margin: 1.9em 0 .6em; }
article h2 { font-size: 27px; }
article h3 { font-size: 21px; }
article a { color: var(--accent-2); text-underline-offset: 3px; }
article strong { color: var(--text); }
article ul, article ol { padding-left: 1.3em; }
article li { margin-bottom: .45em; }
article blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 20px; color: var(--soft); font-style: italic; }
article blockquote > :last-child { margin-bottom: 0; }
article img { border-radius: 12px; border: 1px solid var(--line); display: block; margin: 1.6em auto; }
article hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
article code { font: .82em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
article pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
article pre code { border: 0; padding: 0; background: none; }
article table { width: 100%; border-collapse: collapse; font: 15px/1.45 var(--sans); display: block; overflow-x: auto; }
article th, article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
article th { color: var(--muted); font-weight: 600; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 48px 0 0; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.cta b { font-size: 18px; }
.cta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.more { margin-top: 48px; }
.more h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.more a { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.more a:hover b { color: var(--accent-2); }
.more time { color: var(--muted); font-size: 14px; flex: none; }

.foot { max-width: 1080px; margin: 40px auto 0; padding: 26px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot p { max-width: 62em; margin: 0 0 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 760px) {
  .list { padding-top: 36px; }
  .item.lead, .items { grid-template-columns: 1fr; }
  .item.lead { gap: 16px; }
  article { font-size: 18px; }
  .brand span { display: none; }
  .more a { flex-direction: column; gap: 2px; }
}
