/* obj - a small personal site. Quiet blog stylesheet: warm off-white
   paper, near-black ink, serif body, restrained oxblood accent.
   No JS, no gradients, no cards. */

:root {
	--paper:   #f4f1ea;
	--ink:     #1a1a18;
	--ink-soft:#5a574f;
	--rule:    #d8d2c4;
	--accent:  #6f2c2c;   /* muted oxblood, used sparingly */
	--serif:   Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	--mono:    "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
	--measure: 40rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	font-family: var(--serif);
	color: var(--ink);
	background: var(--paper);
	font-size: 18px;
	line-height: 1.72;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

/* ---- links: understated, color only, quiet underline on hover ---- */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ---- page shell ---- */
main, .content { max-width: var(--measure); margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }

/* ---- header ---- */
.site-header, .site-head { max-width: var(--measure); margin: 0 auto; padding: 3.5rem 1.5rem 1.75rem; }
.site-title { font-size: 2.05rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.012em; margin: 0; }
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--accent); text-decoration: none; }
.tagline { margin: 0.5rem 0 0; color: var(--ink-soft); font-style: italic; font-size: 1.08rem; line-height: 1.5; }
.site-description { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 34rem; }

/* ---- nav: plain quiet links, no uppercase, no ledger rule ---- */
.nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; font-size: 0.98rem; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); text-decoration: none; }

.site-header + main, .site-header + .content, .site-head + main { padding-top: 1rem; }

/* ---- headings (article and page) ---- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 1.9rem; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.4rem 0 0.7rem; }
h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; }
h4 { font-size: 1rem;   margin: 1.4rem 0 0.4rem; }

p { margin: 0 0 1.1rem; }

/* ---- post list / archive / tag index ---- */
.post-list, .archive, .tag-page { margin: 2rem 0 0; padding: 0; list-style: none; }
.post-item { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.post-item:last-child { border-bottom: 0; }

/* The templates use a plain unordered list for posts. */
.rows { list-style: none; margin: 2rem 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 0; }
.rows .title { color: var(--ink); }
.rows .title:hover { color: var(--accent); }
.rows .date { flex: 0 0 auto; color: var(--ink-soft); font-size: 0.85rem; }

.post-title { font-size: 1.32rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.35rem; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--accent); text-decoration: none; }
.post-date { margin: 0 0 0.55rem; color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.01em; }
.post-description, .description { margin: 0 0 1.4rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* ---- tags: quiet inline labels, no boxes, no uppercase ---- */
.tags { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.tags a { color: var(--ink-soft); font-size: 0.85rem; }
.tags a::before { content: "#"; color: var(--rule); margin-right: 0.05rem; }
.tags a:hover { color: var(--accent); text-decoration: none; }

/* ---- pager (prev / next) ---- */
.pager {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 3rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	font-size: 0.95rem;
}
.pager a { color: var(--accent); }
.pager .ptype { color: var(--ink-soft); font-size: 0.82rem; }

/* ---- footer ---- */
.site-footer, .site-foot {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
	color: var(--ink-soft);
	font-size: 0.85rem;
	line-height: 1.6;
	border-top: 1px solid var(--rule);
}

/* ---- inline code / pre ---- */
code { font-family: var(--mono); font-size: 0.86em; background: #eae5da; padding: 0.12em 0.35em; border-radius: 3px; }
pre {
	font-family: var(--mono);
	font-size: 0.84rem;
	background: #eae5da;
	padding: 1rem 1.1rem;
	border-radius: 4px;
	overflow-x: auto;
	line-height: 1.55;
	margin: 1.4rem 0;
}
pre code { background: none; padding: 0; border-radius: 0; }

/* ---- blockquote ---- */
blockquote { margin: 1.5rem 0; padding: 0.1rem 0 0.1rem 1.2rem; border-left: 2px solid var(--rule); color: var(--ink-soft); font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }

/* ---- misc ---- */
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.75rem 0; }
small, .muted { color: var(--ink-soft); font-size: 0.85rem; }

/* ---- table: harmless fallback only, kept calm and unobtrusive ---- */
table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
th { font-weight: 600; color: var(--ink-soft); font-size: 0.82rem; }

/* ---- mobile ---- */
@media (max-width: 32rem) {
	body { font-size: 17px; }
.site-header, .site-head { padding-top: 2.5rem; }
	.site-title { font-size: 1.7rem; }
	.nav { gap: 1rem; }
	main, .content { padding: 2.5rem 1.5rem 3rem; }
	.pager { flex-direction: column; }
	.rows li { display: block; }
	.rows .date { display: block; margin-top: 0.2rem; }
}

/* ---- reading comfort on wide screens ---- */
@media (min-width: 64rem) {
	body { font-size: 18.5px; }
}
