:root {
  --water: #1a6fb5;
  --earth: #3d8b37;
  --fire: #c62f1f;
  --air: #d99410;
  --server: #3b3b44;
  --ink: #141414;
  --muted: #5a5a5a;
  --line: #e2e2e2;
  --soft: #f5f5f5;
  --bg: #fff;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.bg-air { background: var(--air); } .bg-server { background: var(--server); }

/* masthead */
.masthead { background: #0d0d0d; color: #fff; }
.mast-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.blocks { display: inline-flex; gap: 3px; }
.blocks b { width: 26px; height: 26px; display: grid; place-items: center; background: #fff; color: #0d0d0d; font-weight: 800; font-size: 16px; }
.blocks.sm b { width: 20px; height: 20px; font-size: 12px; }
.logo { height: 44px; width: 56px; background: #fff; padding: 3px 5px; border-radius: 4px; flex: none; }
.word { font-weight: 800; font-size: 24px; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.mast-right { display: flex; align-items: center; gap: 16px; }
.discord { display: inline-flex; align-items: center; gap: 8px; background: #5865f2; color: #fff; padding: 8px 14px; border-radius: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.discord:hover { background: #4752c4; }
.discord svg { width: 20px; height: 20px; flex: none; }
.today { font-size: 13px; color: #bdbdbd; white-space: nowrap; }
.stripe { display: flex; height: 4px; }
.stripe i { flex: 1; }
.stripe .w { background: var(--water); } .stripe .e { background: var(--earth); }
.stripe .f { background: var(--fire); } .stripe .a { background: var(--air); }
.sections { background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
.sections .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.sections a { padding: 13px 14px 11px; font-size: 14px; font-weight: 600; border-bottom: 4px solid transparent; white-space: nowrap; }
.sections a:first-child { padding-left: 0; }
.sections a:hover { border-bottom-color: var(--c, var(--ink)); }
.sections a.on { border-bottom-color: var(--c, var(--ink)); }

/* front */
main { padding-top: 24px; padding-bottom: 56px; min-height: 60vh; }
.loading { height: 40vh; }
.empty { color: var(--muted); padding: 48px 0; font-size: 18px; }
.sec-title { font-size: 34px; font-weight: 800; margin: 4px 0 20px; padding-left: 14px; border-left: 6px solid var(--c); letter-spacing: -.02em; }
.top { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card p { margin: 0; font-size: 14px; line-height: 1.45; color: #333; }
.card .txt { display: flex; flex-direction: column; gap: 8px; }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.none { display: grid; place-items: center; background: var(--c, var(--server)); }
.thumb.none span { color: rgba(255,255,255,.9); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .08em; }
.meta { display: flex; align-items: center; gap: 0; font-size: 12px; color: var(--muted); }
.meta .tag { color: var(--c, var(--ink)); font-weight: 600; border-left: 1px solid #c8c8c8; margin-left: 8px; padding-left: 8px; }
.card.lead { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.card.lead h3 { font-size: 32px; line-height: 1.12; letter-spacing: -.02em; }
.card.lead p { font-size: 16px; }
.row { padding: 28px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-title { font-size: 20px; font-weight: 800; margin: 0 0 16px; padding-top: 10px; border-top: 3px solid var(--c, var(--ink)); display: inline-block; }
.row-title a:hover { text-decoration: underline; }
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
.card.flat { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }

/* article */
.story-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.story { max-width: 720px; }
.kicker { display: inline-block; color: var(--c); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.kicker:hover { text-decoration: underline; }
.story h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; margin: 0 0 16px; }
.lede { font-size: 20px; line-height: 1.45; font-weight: 600; margin: 0 0 18px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.byline b { color: var(--ink); }
.side-list { align-self: start; position: sticky; top: 16px; }
.side-list a { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.3; }
.side-list a:hover span:last-child { text-decoration: underline; }
.side-list .n { font-size: 28px; font-weight: 300; color: var(--fire); line-height: 1; min-width: 22px; }

/* markdown body */
.md { font-family: var(--serif); font-size: 19px; line-height: 1.65; overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0 0 1.1em; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--sans); letter-spacing: -.015em; line-height: 1.2; margin: 1.6em 0 .6em; }
.md h1 { font-size: 30px; } .md h2 { font-size: 24px; } .md h3 { font-size: 20px; } .md h4 { font-size: 17px; }
.md a { color: var(--water); text-decoration: underline; text-underline-offset: 2px; }
.md blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--fire); font-size: 22px; font-style: italic; color: #333; }
.md blockquote p:last-child { margin-bottom: 0; }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.md li { margin: .3em 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.md code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; background: var(--soft); padding: 2px 5px; border-radius: 3px; }
.md pre { background: #111; color: #eee; padding: 16px; overflow-x: auto; border-radius: 4px; font-size: 14px; }
.md pre code { background: none; padding: 0; color: inherit; }
.md table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.md th { border-bottom: 2px solid var(--ink); }
.md .fig { display: block; margin: 1.4em 0; }
.md .fig img { width: 100%; height: auto; background: var(--soft); min-height: 60px; }
.md .fig img.broken { display: none; }
.md .cap { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); padding-top: 8px; line-height: 1.4; }

/* footer */
.foot { background: #0d0d0d; color: #bdbdbd; font-size: 13px; padding: 24px 0; }
.foot .wrap { display: flex; align-items: center; gap: 12px; }

@media (max-width: 1000px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .story-wrap { grid-template-columns: 1fr; gap: 32px; }
  .side-list { position: static; }
}
@media (max-width: 700px) {
  .today { display: none; }
  .word { font-size: 19px; }
  .logo { height: 38px; width: 48px; }
  .discord { padding: 8px; }
  .discord span { display: none; }
  .blocks b { width: 22px; height: 22px; font-size: 14px; }
  .card.lead { grid-template-columns: 1fr; }
  .card.lead h3 { font-size: 26px; }
  .more { grid-template-columns: 1fr; }
  .card.flat { grid-template-columns: 120px 1fr; gap: 12px; }
  .card.flat p { display: none; }
  .story h1 { font-size: 30px; }
  .lede { font-size: 18px; }
  .md { font-size: 18px; }
}
@media (max-width: 420px) {
  .grid4 { grid-template-columns: 1fr; }
  .grid4 .card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
  .grid4 .card p { display: none; }
  .grid4 .card h3 { font-size: 16px; }
  .word { font-size: 16px; }
}
