:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --card: #f6f6f6;
  --accent: #2f6fde;
  --max: 1000px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ececec;
    --muted: #9a9a9a;
    --line: #262626;
    --card: #1b1b1b;
    --accent: #6c9eff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 48px 20px 0; }

/* Banner */
.banner { position: relative; margin-bottom: 72px; }
.banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 4.5 / 1;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 14px;
}
.avatar {
  position: absolute;
  left: 24px;
  bottom: -56px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  object-fit: cover;
}

/* Intro */
.intro { padding: 16px 0; }
.intro h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
.intro p { color: var(--muted); margin: 0; font-size: 18px; max-width: 640px; }

/* Sections */
section { padding: 36px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.section-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; font-weight: 600; }
.section-head a { font-size: 15px; }

/* About */
.about p { margin: 0; max-width: 640px; }

/* Post list */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.posts a { color: var(--text); }
.posts time { color: var(--muted); font-size: 15px; white-space: nowrap; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.video { color: var(--text); }
.video:hover { text-decoration: none; }
.video .thumb {
  aspect-ratio: 16 / 9;
  background: var(--card) center / cover no-repeat;
  border-radius: 10px;
  margin-bottom: 8px;
}
.video span { font-size: 15px; line-height: 1.4; display: block; }

/* Cards (apps, picks) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}
.card:hover { text-decoration: none; background: var(--card); }
.card img, .card .icon {
  width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0;
  background: var(--card);
  display: grid; place-items: center; font-size: 22px;
}
.card strong { display: block; font-weight: 600; }
.card small { color: var(--muted); font-size: 15px; }

/* Article */
article { padding: 16px 0 48px; }
article h1 { font-size: 32px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
article .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 32px; padding: 28px 0 48px; color: var(--muted); font-size: 15px; }
footer.site a { color: var(--muted); margin-right: 16px; }

@media (max-width: 600px) {
  .videos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .intro h1 { font-size: 28px; }
  .banner { margin-bottom: 44px; }
  .banner-img { aspect-ratio: 3 / 1; border-radius: 10px; }
  .avatar { width: 84px; height: 84px; left: 14px; bottom: -36px; }
}
