:root{
	--bg: #fbfbfb;
	--text: #21313a;
	--muted: #6b7880;
	--accent: #7aa1a3;
	--card: #ffffff;
}
.theme-dark{
	--bg: #0f1720;
	--text: #d6e6e7;
	--muted: #9aa6a9;
	--accent: #4f8f8f;
	--card: #0b1216;
}

/* ensure button text is clearly white in dark mode for best contrast */
.theme-dark button,
.theme-dark button .icon,
.theme-dark button .label {
  color: #ffffff;
}

/* strengthen muted text contrast in dark theme where needed */
.theme-dark .muted, .theme-dark .lead {
  color: #bfc8ca;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
	margin:0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	background:var(--bg);
	color:var(--text);
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
}
.container{max-width:760px;margin:28px auto;padding:0 18px}
.site-header{border-bottom:1px solid rgba(0,0,0,0.06);padding:12px 0;background:transparent}
.site-header .container{display:flex;align-items:center;justify-content:space-between}
.site-header h1{margin:0;font-size:20px}
.controls{display:flex;gap:8px}
button{background:var(--card);border:1px solid rgba(0,0,0,0.06);padding:6px 10px;border-radius:8px;cursor:pointer}
button{background:var(--card);border:1px solid rgba(0,0,0,0.06);padding:6px 10px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
button:focus{outline:2px solid var(--accent)}
button .icon{font-size:16px;line-height:1}

/* smooth transition for theme colors */
body, .story, .list-item, .site-header, .container{transition:background-color .22s ease,color .22s ease,border-color .22s ease}
button{transition:background-color .15s ease,transform .12s ease,box-shadow .12s ease}

.lead{color:var(--muted);margin-top:8px}
.list{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.list-item{display:block;padding:14px;border-radius:10px;background:var(--card);text-decoration:none;color:inherit;border:1px solid rgba(0,0,0,0.04);transition:transform .12s ease,box-shadow .12s ease}
.list-item:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(32,40,48,0.06)}
.list-item h3{margin:0 0 6px 0}
.list-item .excerpt{margin:0;color:var(--muted);font-size:14px}
.list-item .date{display:block;margin-top:6px;font-size:12px;color:var(--muted);opacity:0.8}

/* thumbnail preview in list */
.list-item{display:flex;gap:12px;align-items:center}
.list-item .thumb{width:84px;height:56px;flex:0 0 84px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));}
.list-item .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.list-item .list-body{flex:1}

.story{padding:18px;background:var(--card);border-radius:12px;border:1px solid rgba(0,0,0,0.04)}
.story h2{margin-top:12px}
.story-date{font-size:13px;color:var(--muted);margin:8px 0 12px 0;opacity:0.9}
.story-header{width:100%;height:220px;border-radius:10px;overflow:hidden;margin-bottom:12px;background:linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));display:flex;align-items:center;justify-content:center}
.story-header-img{width:100%;height:100%;object-fit:cover;display:block}
.story p{line-height:1.7;color:var(--text);margin:0 0 12px}
blockquote{border-left:3px solid var(--accent);padding-left:12px;color:var(--muted);margin:12px 0}
hr{border:0;border-top:1px solid rgba(0,0,0,0.06);margin:18px 0}

.back{color:var(--muted);text-decoration:none}
.muted{color:var(--muted);font-size:13px;text-align:center;padding:24px 0}



