/* Daily Lab Dish — editorial reading theme
   Layout and typography modelled on long-form reading publications:
   a single narrow measure, serif body, generous rhythm, minimal chrome. */

:root {
	--ink: #242424;
	--ink-soft: #3A3A3A;
	--muted: #6B6B6B;
	--faint: #8C8C8C;
	--rule: #E6E6E6;
	--rule-soft: #F2F2F2;
	--wash: #F9F9F9;
	--navy: #0F3D5E;
	--teal: #1A9BAE;
	--teal-dark: #137C8C;
	--amber: #B8791F;
	--serif: 'Source Serif 4', Charter, Georgia, 'Times New Roman', serif;
	--sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--measure: 680px;
}

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

body {
	background: #fff;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.58;
	letter-spacing: -0.003em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection { background: #C6E9EF; }

:where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Header ---------- */

.dld-header {
	background: #fff;
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 0;
	z-index: 50;
}

.dld-header .wp-block-site-logo img { height: 34px; width: auto; display: block; }

.dld-header .wp-block-navigation {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
}

.dld-header .wp-block-navigation a {
	color: var(--muted);
	text-decoration: none;
	transition: color .15s ease;
}

.dld-header .wp-block-navigation a:hover { color: var(--ink); text-decoration: none; }

.dld-header .wp-block-search__input {
	font-family: var(--sans);
	font-size: 14px;
	border: 0;
	background: var(--wash);
	border-radius: 999px;
	padding: .55rem 1rem;
	width: 190px;
}

.dld-header .wp-block-search__input::placeholder { color: var(--faint); }

.dld-header .wp-block-search__button {
	background: var(--ink);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-family: var(--sans);
	font-size: 13px;
	padding: .5rem .9rem;
}

.dld-header .wp-block-search__button:hover { background: var(--teal-dark); }

/* ---------- Reading progress ---------- */

.dld-progress {
	position: fixed;
	inset: 0 auto auto 0;
	height: 2px;
	width: 0;
	background: var(--ink);
	z-index: 60;
	transition: width .1s linear;
}

/* ---------- Eyebrow and tag chips ---------- */

.dld-eyebrow {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--muted);
	text-transform: none;
}

.wp-block-post-terms a,
.dld-pill {
	display: inline-block;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ink-soft);
	background: var(--rule-soft);
	border-radius: 999px;
	padding: .3rem .75rem;
	text-decoration: none;
	letter-spacing: 0;
}

.wp-block-post-terms a:hover { background: var(--rule); color: var(--ink); text-decoration: none; }
.wp-block-post-terms { font-family: var(--sans); font-size: 13px; color: var(--faint); }

/* ---------- Feed list (home, archives, search) ---------- */

.dld-feed .wp-block-post-template,
.dld-feed ul.wp-block-post-template { list-style: none; margin: 0; padding: 0; }

.dld-feed__item {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
	justify-content: space-between;
	padding: 2rem 0;
	border-bottom: 1px solid var(--rule-soft);
}

.dld-feed__body { flex: 1 1 auto; min-width: 0; }

.dld-feed__item .wp-block-post-title {
	font-family: var(--sans);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.022em;
	margin: .35rem 0 .4rem;
}

.dld-feed__item .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.dld-feed__item .wp-block-post-title a:hover { text-decoration: none; color: var(--ink); }

.dld-feed__item .wp-block-post-excerpt__excerpt {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.45;
	color: var(--muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dld-feed__item .wp-block-post-excerpt { margin: 0; }

.dld-feed__meta {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--faint);
	margin-top: .85rem;
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	align-items: center;
}

.dld-feed__meta .wp-block-post-date,
.dld-feed__meta .wp-block-post-author-name { color: var(--faint); font-size: 13px; }
.dld-feed__meta .wp-block-post-author-name a { color: var(--faint); text-decoration: none; }
.dld-feed__meta .wp-block-post-author-name a:hover { color: var(--ink); }

.dld-feed__thumb { flex: 0 0 auto; width: 200px; }

.dld-feed__thumb img {
	width: 200px;
	height: 134px;
	object-fit: cover;
	display: block;
	background: var(--wash);
}

.dld-feed__thumb .wp-block-post-featured-image { margin: 0; }

/* ---------- Lead story ---------- */

.dld-lead { border-bottom: 1px solid var(--rule); padding-bottom: 2.5rem; }

.dld-lead .wp-block-post-title {
	font-family: var(--serif);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.03em;
	margin: .5rem 0 0;
}

.dld-lead .wp-block-post-title a { color: var(--ink); text-decoration: none; }

.dld-lead .wp-block-post-excerpt__excerpt {
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.5;
	color: var(--muted);
}

.dld-lead img { width: 100%; height: auto; display: block; }

/* ---------- Section headings on listing pages ---------- */

.dld-section-title {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--muted);
	border-bottom: 1px solid var(--rule);
	padding-bottom: .75rem;
	margin: 0 0 .5rem;
}

.dld-archive-head { border-bottom: 1px solid var(--rule); }

.dld-archive-head h1,
.dld-archive-head .wp-block-query-title {
	font-family: var(--sans);
	font-weight: 700;
	letter-spacing: -0.03em;
	font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
}

/* ---------- Single article ---------- */

.dld-article { font-family: var(--serif); }

.dld-post-title {
	font-family: var(--serif);
	font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.15rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.032em;
	color: var(--ink);
	margin: 0;
}

.dld-lede {
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1.5;
	color: var(--muted);
	font-weight: 400;
	margin-top: .9rem;
}

.dld-byline {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin: 2.2rem 0 0;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--rule-soft);
	font-family: var(--sans);
}

.dld-byline .wp-block-avatar img { border-radius: 50%; display: block; }

.dld-byline__text {
	display: flex;
	flex-direction: column;
	gap: .1rem;
	flex: 1 1 auto;
	min-width: 0;
}

/* Keep the date and reading time on one line where there is room. */
.dld-byline .wp-block-post-date { display: inline; }
.dld-byline .dld-meta__time { white-space: nowrap; }

.dld-byline .wp-block-post-author-name {
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}

.dld-byline .wp-block-post-author-name a { color: var(--ink); text-decoration: none; }
.dld-byline .wp-block-post-author-name a:hover { color: var(--teal-dark); }

.dld-byline .wp-block-post-date,
.dld-byline .dld-meta__time { font-size: 14px; color: var(--faint); }

.dld-featured { margin: 2.6rem 0 3rem; }

.dld-featured img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0;
	box-shadow: none;
}

/* Body rhythm */

.dld-article .entry-content > *,
.dld-article .wp-block-post-content > * { margin-block: 1.6rem; }

.dld-article p {
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.58;
	letter-spacing: -0.003em;
	color: var(--ink);
}

.dld-article h2 {
	font-family: var(--sans);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.022em;
	color: var(--ink);
	margin-top: 3rem;
	margin-bottom: .4rem;
}

.dld-article h3 {
	font-family: var(--sans);
	font-size: 1.22rem;
	font-weight: 600;
	letter-spacing: -0.018em;
	margin-top: 2.2rem;
	margin-bottom: .3rem;
	color: var(--ink);
}

.dld-article a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	text-decoration-color: rgba(36,36,36,.4);
}

.dld-article a:hover { color: var(--teal-dark); text-decoration-color: var(--teal-dark); }

.dld-article ul, .dld-article ol { padding-left: 1.5rem; }

.dld-article li {
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.58;
	margin-block: .65rem;
}

.dld-article li::marker { color: var(--faint); }

.dld-article figure figcaption {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--faint);
	text-align: center;
	margin-top: .7rem;
}

.dld-inline-figure img { width: 100%; height: auto; display: block; }

/* ---------- Tables ---------- */

.dld-table-scroll, .wp-block-table { overflow-x: auto; }

.dld-article table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.45;
	background: #fff;
}

.dld-article th,
.wp-block-table th {
	text-align: left;
	font-weight: 600;
	color: var(--ink);
	padding: .7rem .8rem .7rem 0;
	border-bottom: 2px solid var(--ink);
	white-space: nowrap;
}

.dld-article td,
.wp-block-table td {
	padding: .75rem .8rem .75rem 0;
	border-bottom: 1px solid var(--rule);
	color: var(--ink-soft);
	vertical-align: top;
}

.dld-article tbody tr:last-child td { border-bottom: 0; }

/* ---------- Callouts ---------- */

.dld-takeaways {
	border-left: 3px solid var(--ink);
	padding: .25rem 0 .25rem 1.6rem;
	margin-block: 2.4rem;
	background: none;
	border-radius: 0;
	box-shadow: none;
}

.dld-takeaways > p:first-child {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 .7rem;
}

.dld-takeaways ul { margin: 0; padding-left: 1.15rem; }

.dld-takeaways li {
	font-family: var(--serif);
	font-size: 18px;
	line-height: 1.5;
	margin-block: .45rem;
	color: var(--ink-soft);
}

.dld-disclaimer {
	background: var(--wash);
	border: 0;
	border-left: 3px solid var(--amber);
	border-radius: 0;
	padding: 1.1rem 1.3rem;
	margin-block: 2.4rem;
}

.dld-disclaimer p {
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-soft);
	margin: 0;
}

/* ---------- Table of contents ---------- */

.dld-toc {
	border: 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	background: none;
	border-radius: 0;
	box-shadow: none;
	padding: 1.4rem 0;
	margin-block: 2.4rem;
}

.dld-toc__title {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--faint);
	margin: 0 0 .8rem;
}

.dld-toc__list { margin: 0; padding-left: 1.2rem; }

.dld-toc__list li {
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.45;
	margin-block: .4rem;
	color: var(--muted);
}

.dld-toc__list li::marker { color: var(--faint); }
.dld-toc a { color: var(--ink-soft); text-decoration: none; }
.dld-toc a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- FAQ ---------- */

.dld-faq { margin-block: 2.6rem; }

.dld-faq details {
	background: none;
	border: 0;
	border-bottom: 1px solid var(--rule);
	border-radius: 0;
	box-shadow: none;
	padding: 1.05rem 0;
	margin: 0;
}

.dld-faq summary {
	cursor: pointer;
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
}

.dld-faq summary::-webkit-details-marker { display: none; }

.dld-faq summary::after {
	content: "+";
	color: var(--faint);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1;
	flex: none;
}

.dld-faq details[open] summary::after { content: "\2212"; }

.dld-faq details p {
	font-family: var(--serif);
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink-soft);
	margin: .8rem 0 0;
}

/* ---------- Author box ---------- */

.dld-authorbox {
	border: 0;
	border-top: 1px solid var(--rule);
	border-radius: 0;
	background: none;
	box-shadow: none;
	padding: 2rem 0 0;
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.dld-authorbox .wp-block-avatar img { border-radius: 50%; border: 0; display: block; }
.dld-authorbox .wp-block-post-author-name { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.dld-authorbox .wp-block-post-author-name a { color: var(--ink); text-decoration: none; }
.dld-authorbox .wp-block-post-author-biography {
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
	margin-top: .35rem;
}

/* ---------- Related ---------- */

.dld-related { border-top: 1px solid var(--rule); }

.dld-related .wp-block-post-title {
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.dld-related .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.dld-related img { width: 100%; height: 150px; object-fit: cover; display: block; }

/* ---------- Pagination ---------- */

.wp-block-query-pagination {
	font-family: var(--sans);
	font-size: 14px;
	gap: .4rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	color: var(--muted);
	text-decoration: none;
	padding: .45rem .8rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
}

.wp-block-query-pagination a:hover { border-color: var(--ink); color: var(--ink); }
.wp-block-query-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */

.dld-footer {
	background: #fff;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-family: var(--sans);
	font-size: 14px;
}

.dld-footer::before { display: none; }
.dld-footer a { color: var(--muted); text-decoration: none; }
.dld-footer a:hover { color: var(--ink); text-decoration: underline; }
.dld-footer h3, .dld-footer .wp-block-heading {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--faint);
}
.dld-footer .wp-block-site-logo img { height: 30px; width: auto; }
.dld-footer__tagline { color: var(--faint); font-size: 14px; line-height: 1.5; }
.dld-footer .wp-block-categories { list-style: none; margin: 0; padding: 0; }
.dld-footer .wp-block-categories li { margin-block: .4rem; }

/* ---------- Pages ---------- */

.dld-article .wp-block-page-list { list-style: none; padding: 0; }

/* ---------- Utilities ---------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	background: var(--ink);
	color: #fff;
	padding: .7rem 1.1rem;
	z-index: 100;
}

.skip-link:focus { left: 0; top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.dld-feed__thumb { width: 120px; }
	.dld-feed__thumb img { width: 120px; height: 80px; }
	.dld-feed__item { gap: 1.25rem; padding: 1.5rem 0; }
	.dld-feed__item .wp-block-post-title { font-size: 18px; }
	.dld-feed__item .wp-block-post-excerpt__excerpt { font-size: 15px; -webkit-line-clamp: 2; }
}

@media (max-width: 600px) {
	body { font-size: 18px; }
	.dld-article p, .dld-article li { font-size: 18px; }
	.dld-lede { font-size: 1.15rem; }
	.dld-article h2 { font-size: 1.4rem; margin-top: 2.4rem; }
	.dld-header .wp-block-search__input { width: 130px; }
	.dld-feed__item .wp-block-post-excerpt__excerpt { display: none; }
	.dld-authorbox { flex-direction: column; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
	.dld-header, .dld-footer, .dld-toc, .dld-progress, .dld-related { display: none !important; }
	body { font-size: 12pt; }
}
