
:root {
  color-scheme: light;
  --background: 242 84% 86%;
  --foreground: 258 35% 19%;
  --card: 244 82% 91%;
  --muted: 244 70% 82%;
  --muted-foreground: 256 26% 32%;
  --primary: 246 67% 47%;
  --primary-foreground: 244 100% 98%;
  --accent: 242 90% 68%;
  --border: 246 35% 65%;
  --radius: 28px;
  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font: 1.0625rem/1.7 var(--font-body); overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a { color: hsl(var(--primary)); text-underline-offset: .22em; transition: color 180ms, background-color 180ms, transform 140ms; }
a:active { transform: scale(.97); }
:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 5px; }
::selection { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.15; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); letter-spacing: -.035em; margin: .3em 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.5rem; }
.site-header { max-width: 1440px; margin: auto; padding: 24px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: hsl(var(--foreground)); flex-shrink: 0; }
.brand-mark { display: block; width: 24px; height: 24px; background: hsl(var(--primary)); border-radius: 60% 40% 55% 45%; transform: rotate(-20deg); }
.brand-type { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.025em; line-height: .85; }
.brand-type span { display: block; padding-left: 12px; }
.header-nav { display: none; align-items: center; gap: 28px; font-weight: 800; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; color: hsl(var(--foreground)); text-decoration: none; }
.nav-link[aria-current] { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border-radius: 999px; padding: 12px 24px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); text-decoration: none; font-size: 1rem; font-weight: 800; text-align: center; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; }
.skip-link:focus { top: 12px; }
.main { max-width: 1240px; min-height: 55vh; margin: 40px auto 96px; padding: 0 20px; }
.intro { max-width: 750px; margin-bottom: 40px; }
.intro p, .description { color: hsl(var(--muted-foreground)); font-size: 1.15rem; }
.intro .feed-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.post-card { min-width: 0; padding: 22px; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .5); border-radius: var(--radius); }
.cover-link { display: block; border-radius: calc(var(--radius) - 10px); overflow: hidden; }
.cover-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--radius) - 10px); }
.post-card h2 { font-size: 1.9rem; margin: 16px 0 8px; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card p { color: hsl(var(--muted-foreground)); margin: 12px 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 12px; color: hsl(var(--muted-foreground)); font-size: .95rem; }
time { font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chip { display: inline-block; max-width: 100%; border-radius: 999px; padding: 3px 12px; background: hsl(var(--muted)); color: hsl(var(--foreground)); font-size: .875rem; font-weight: 700; }
.category { background: hsl(var(--accent) / .25); }
.read-link, .back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.empty { padding: clamp(24px, 6vw, 56px); max-width: 750px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.empty h2 { margin-top: 0; }
.article { max-width: 70ch; margin: 0 auto; min-width: 0; }
.article-header { margin: 22px 0 36px; }
.article-header .cover-image { margin-top: 28px; border-radius: var(--radius); }
.article-body { line-height: 1.7; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { margin-top: 1.6em; margin-bottom: .6em; }
.article-body p { margin: 0 0 1.25em; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin: 1em 0 1.5em; }
.article-body li { margin: .45em 0; }
.article-body li > p { margin: .5em 0; }
.article-body a { font-weight: 700; }
.article-body img { margin: 24px auto; border-radius: calc(var(--radius) - 10px); }
.article-body blockquote { border-left: 4px solid hsl(var(--primary)); margin: 24px 0; padding: 16px 22px; background: hsl(var(--card)); border-radius: 0 18px 18px 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: hsl(var(--card)); border-radius: 6px; padding: .15em .35em; overflow-wrap: anywhere; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 20px; border: 1px solid hsl(var(--border)); border-radius: 18px; background: hsl(var(--card)); }
.article-body pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
.article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.article-body th, .article-body td { border: 1px solid hsl(var(--border)); padding: 10px 14px; text-align: left; min-width: 100px; }
.article-body th { background: hsl(var(--card)); font-weight: 800; }
.article-body hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: 32px 0; }
.article-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid hsl(var(--border)); }
.site-footer { padding: 40px 20px; background: hsl(var(--background)); }
.footer-inner { max-width: 1152px; margin: auto; }
.footer-top, .footer-bottom { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.footer-top p, .copyright { color: hsl(var(--muted-foreground)); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; font-weight: 800; }
.footer-bottom { margin-top: 40px; }
.copyright { margin: 0; font-size: .875rem; }
.powered { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; border-radius: var(--radius); border: 1px solid hsl(var(--primary) / .25); padding: 10px 16px; background: hsl(var(--primary) / .1); color: hsl(var(--foreground)); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.powered svg { width: 14px; height: 14px; color: hsl(var(--primary)); flex-shrink: 0; }
@media (min-width: 640px) { .site-header { padding-inline: 40px; } .main { padding-inline: 32px; } .footer-top, .footer-bottom { flex-direction: row; } .footer-bottom { align-items: center; } .site-footer { padding-inline: 40px; } }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .header-nav { display: flex; } .site-header { padding-inline: 64px; } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration: underline; } .button:hover { background: hsl(var(--foreground)); color: hsl(var(--primary-foreground)); text-decoration: none; } .nav-link:hover { color: hsl(var(--primary)); } .powered:hover { background: hsl(var(--primary) / .2); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
