:root {
  --bg: #0a0a0f;
  --s1: rgba(255, 255, 255, .025);
  --s3: rgba(255, 255, 255, .08);
  --b1: rgba(255, 255, 255, .07);
  --b2: rgba(255, 255, 255, .14);
  --t1: #f0f0f5;
  --t2: #a3a8b3;
  --t3: #6b7280;
  --a: #7c5cff;
  --al: #9b80ff;
  --feat: #0f0d18;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--t1); font: 14px/1.5 var(--font); min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(124, 92, 255, .35); }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.mono { font-family: var(--mono); }

.wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px 32px; }

/* header */
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.logo i { width: 14px; height: 14px; border-radius: 4px; background: var(--a); }
.tabs { margin-left: auto; display: flex; gap: 2px; border: 1px solid var(--b1); border-radius: 6px; padding: 2px; }
.tabs button {
  font: 500 12.5px var(--font); color: var(--t3); background: none; border: 0;
  padding: 5px 12px; border-radius: 4px; cursor: pointer; transition: color .15s, background .15s;
}
.tabs button:hover { color: var(--t1); }
.tabs button[aria-selected="true"] { background: var(--s3); color: var(--t1); }

/* grid */
.bento {
  list-style: none; display: grid; gap: 8px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 132px; grid-auto-flow: dense;
}
.tile a {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; border: 1px solid var(--b1); border-radius: 8px; background: var(--s1);
  transition: border-color .15s, background .15s;
}
.tile a:hover, .tile a:focus-visible { border-color: rgba(124, 92, 255, .55); background: #0e0c16; outline: none; }
.tile a:hover .arr, .tile a:focus-visible .arr { color: var(--al); transform: translateX(2px); }

.row { display: flex; justify-content: space-between; align-items: flex-start; }
.mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px;
  background: var(--s3); border: 1px solid var(--b1); color: var(--t2);
  font: 500 11px var(--mono);
}
.arr { color: var(--t3); font-size: 13px; transition: color .15s, transform .15s; }

.tile b { display: block; font-size: 14px; font-weight: 600; }
.tile p { font-size: 12.5px; color: var(--t3); line-height: 1.45; margin-top: 3px; }

.sm   { grid-column: span 1; }
.sm p { display: none; }
.wide { grid-column: span 2; }

.big { grid-column: span 2; grid-row: span 2; }
.big a { background: var(--feat); border-color: rgba(124, 92, 255, .35); }
.big .mark { width: 40px; height: 40px; font-size: 13px; }
.big .meta { font-size: 11px; color: var(--al); margin-bottom: 8px; }
.big b { font-size: 22px; letter-spacing: -.02em; }
.big p { font-size: 13.5px; color: var(--t2); max-width: 34ch; }
.cta { align-self: flex-start; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--a); padding-bottom: 1px; }

.foot { display: flex; justify-content: space-between; margin-top: 24px; font-size: 12px; color: var(--t3); }

@media (max-width: 640px) {
  .wrap { padding: 24px 16px; }
  .tabs { margin-left: 0; width: 100%; }
  .tabs button { flex: 1; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .big { grid-row: span 2; }
  .wide .row .arr { display: inline; }
}
@media (max-width: 380px) {
  .sm { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
