/*
Theme Name: Degux Kitchen Ledger
Theme URI: https://degux.com/
Author: Degux
Description: A warm, editorial recipe-journal theme for Degux — cream paper, tomato red and basil green, Fraunces display type, plate-shaped hero and a random Popular Topics shelf under every post. Includes a "Header" widget area for Google Analytics / AdSense code printed right after the header.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: degux
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ---------------------------------------------------------------
   1. Tokens (daisyUI-style semantic roles)
---------------------------------------------------------------- */
:root {
	--dg-base-50: #fbf8f1;   /* card paper   */
	--dg-base-100: #f7f1e5;  /* page paper   */
	--dg-base-200: #efe6d3;
	--dg-base-300: #e2d5ba;
	--dg-ink: #1e1b16;       /* base-content */
	--dg-ink-soft: #5c5346;
	--dg-primary: #c8402a;   /* tomato  */
	--dg-primary-ink: #a8321e; /* tomato for text on paper (AA) */
	--dg-on-primary: #fffaf0;
	--dg-secondary: #3e5a2e; /* basil   */
	--dg-accent: #e8a63a;    /* saffron */
	--dg-neutral: #22301e;   /* cast-iron green */
	--dg-on-neutral: #f4ecdb;

	--dg-font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--dg-font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
	--dg-font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--dg-radius-sm: 10px;
	--dg-radius: 16px;
	--dg-radius-lg: 24px;
	--dg-line: 1.5px solid var(--dg-ink);

	--dg-space-1: 0.25rem;
	--dg-space-2: 0.5rem;
	--dg-space-3: 0.75rem;
	--dg-space-4: 1rem;
	--dg-space-6: 1.5rem;
	--dg-space-8: 2rem;
	--dg-space-12: 3rem;
	--dg-space-16: 4rem;
	--dg-space-24: 6rem;

	--dg-wrap: 1200px;
	--dg-gutter: clamp(16px, 4vw, 40px);
	--dg-ease: cubic-bezier(.2, .7, .2, 1);
	--dg-header-h: 76px;
}

/* ---------------------------------------------------------------
   2. Base
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--dg-header-h) + 16px);
}

body {
	margin: 0;
	background-color: var(--dg-base-100);
	/* faint paper tooth */
	background-image:
		radial-gradient(rgba(30, 27, 22, .045) 1px, transparent 1.2px),
		radial-gradient(rgba(30, 27, 22, .03) 1px, transparent 1.2px);
	background-size: 22px 22px, 31px 31px;
	background-position: 0 0, 11px 17px;
	color: var(--dg-ink);
	font-family: var(--dg-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }

h1, h2, h3, h4 {
	font-family: var(--dg-font-display);
	font-optical-sizing: auto;
	line-height: 1.08;
	letter-spacing: -.015em;
	margin: 0;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--dg-accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--dg-accent); color: var(--dg-ink); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--dg-ink); color: var(--dg-base-100);
	padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
	transition: top .2s var(--dg-ease);
}
.skip-link:focus { top: 12px; }

.dg-wrap {
	width: 100%;
	max-width: calc(var(--dg-wrap) + var(--dg-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--dg-gutter);
}

.dg-kicker {
	font-family: var(--dg-font-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dg-primary-ink);
	margin: 0 0 var(--dg-space-3);
}

html.dg-lock { overflow: hidden; }

/* ---------------------------------------------------------------
   3. Components — buttons, inputs, chips (daisyUI-like)
---------------------------------------------------------------- */
.dg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 0 1.4rem;
	border: var(--dg-line); border-radius: 999px;
	background: var(--dg-base-50); color: var(--dg-ink);
	font: 700 .95rem/1 var(--dg-font-body);
	text-decoration: none; cursor: pointer;
	box-shadow: 0 4px 0 var(--dg-ink);
	transition: transform .18s var(--dg-ease), box-shadow .18s var(--dg-ease), background-color .18s;
}
.dg-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--dg-ink); }
.dg-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--dg-ink); }
.dg-btn--primary { background: var(--dg-primary); color: var(--dg-on-primary); }
.dg-btn--primary:hover { background: #b9381f; }

.dg-input {
	width: 100%; min-height: 52px; padding: 0 1.1rem;
	border: var(--dg-line); border-radius: 999px;
	background: var(--dg-base-50); color: var(--dg-ink);
	font: 500 1.05rem var(--dg-font-body);
}
.dg-input:focus { outline: 3px solid var(--dg-accent); outline-offset: 2px; }

.dg-chip, .dg-tag {
	display: inline-flex; align-items: center;
	min-height: 32px; padding: .2rem .85rem;
	border: 1.5px solid currentColor; border-radius: 999px;
	font: 500 .72rem/1 var(--dg-font-mono); letter-spacing: .12em; text-transform: uppercase;
	color: var(--dg-secondary); text-decoration: none;
	transition: background-color .18s, color .18s;
}
.dg-chip:hover, .dg-tag:hover { background: var(--dg-secondary); color: var(--dg-on-neutral); border-color: var(--dg-secondary); }

.dg-iconbtn {
	display: inline-grid; place-items: center;
	width: 46px; height: 46px; padding: 0;
	border: var(--dg-line); border-radius: 50%;
	background: var(--dg-base-50); color: var(--dg-ink); cursor: pointer;
	transition: background-color .18s, transform .18s var(--dg-ease);
}
.dg-iconbtn:hover { background: var(--dg-accent); transform: rotate(-8deg); }

/* ---------------------------------------------------------------
   4. Header
---------------------------------------------------------------- */
.dg-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 241, 229, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: var(--dg-line);
	transition: box-shadow .25s;
}
/* double rule, like a printed menu card */
.dg-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
	background: var(--dg-primary);
}
.admin-bar .dg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dg-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .dg-header { top: 0; } }

.dg-header.is-scrolled { box-shadow: 0 12px 24px -18px rgba(30, 27, 22, .45); }

.dg-header__inner {
	display: flex; align-items: center; gap: var(--dg-space-6);
	min-height: var(--dg-header-h);
}

.dg-brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.dg-brand__img { height: 52px; width: auto; }
.dg-brand:hover .dg-brand__img { transform: rotate(-2deg); }
.dg-brand__img { transition: transform .3s var(--dg-ease); }

.dg-nav { margin-left: auto; }
.dg-nav__list { display: flex; gap: var(--dg-space-1); list-style: none; margin: 0; padding: 0; }
.dg-nav__link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
	font: 500 .78rem/1 var(--dg-font-mono); letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; border-radius: 999px;
	transition: background-color .18s, color .18s;
}
.dg-nav__link:hover { background: var(--dg-base-200); }
.dg-nav__link[aria-current="page"] {
	text-decoration: underline wavy var(--dg-primary) 1.5px; text-underline-offset: .5em;
}

.dg-header__tools { display: flex; gap: var(--dg-space-2); }
.dg-burger { display: none; }
.dg-burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--dg-ease), opacity .2s; }
.dg-burger span + span { margin-top: 4px; }
.dg-burger { grid-auto-flow: row; align-content: center; justify-items: center; }
.dg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.dg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
	:root { --dg-header-h: 66px; }
	.dg-brand__img { height: 42px; }
	.dg-burger { display: inline-grid; }
	.dg-header__tools { margin-left: auto; }
	.dg-nav {
		position: fixed; inset: calc(var(--dg-header-h) + 6px) 0 auto 0; margin: 0;
		background: var(--dg-base-100); border-bottom: var(--dg-line);
		padding: var(--dg-space-4) var(--dg-gutter) var(--dg-space-8);
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: transform .25s var(--dg-ease), opacity .2s, visibility 0s .25s;
	}
	.dg-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
	.dg-nav__list { flex-direction: column; }
	.dg-nav__link {
		width: 100%; min-height: 56px; border-radius: 0; padding: 0;
		font: 600 1.6rem/1 var(--dg-font-display); letter-spacing: -.01em; text-transform: none;
		border-bottom: 1px dashed var(--dg-base-300);
	}
}

/* ---------------------------------------------------------------
   5. Search dialog
---------------------------------------------------------------- */
.dg-search {
	width: min(640px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent;
	margin-top: 14vh;
}
.dg-search::backdrop { background: rgba(30, 27, 22, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dg-search__box {
	position: relative; background: var(--dg-base-100); border: var(--dg-line);
	border-radius: var(--dg-radius-lg); padding: var(--dg-space-8) var(--dg-space-6) var(--dg-space-6);
	box-shadow: 8px 10px 0 var(--dg-primary);
}
.dg-search__close {
	position: absolute; top: 10px; right: 12px; width: 44px; height: 44px;
	border: 0; background: none; font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--dg-ink);
}
.dg-searchform { display: flex; gap: var(--dg-space-2); }
.dg-searchform .dg-btn { flex-shrink: 0; }
@media (max-width: 480px) { .dg-searchform { flex-direction: column; } }

/* ---------------------------------------------------------------
   6. Hero (home)
---------------------------------------------------------------- */
.dg-hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.dg-hero__inner {
	display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
}
.dg-hero__title {
	font-size: clamp(2.8rem, 7.4vw, 6.4rem);
	font-weight: 800; line-height: .94; letter-spacing: -.035em;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.dg-hero__title em {
	display: block; font-style: italic; font-weight: 400; color: var(--dg-primary);
	letter-spacing: -.02em;
}
.dg-hero__lead {
	max-width: 34rem; padding-top: var(--dg-space-6);
	border-top: 1.5px dashed var(--dg-ink-soft);
}
.dg-hero__post { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; margin: .35rem 0 .6rem; }
.dg-hero__post a { text-decoration: none; background: linear-gradient(var(--dg-accent), var(--dg-accent)) 0 92% / 0 .32em no-repeat; transition: background-size .35s var(--dg-ease); }
.dg-hero__post a:hover { background-size: 100% .32em; }
.dg-hero__excerpt { color: var(--dg-ink-soft); margin: 0 0 var(--dg-space-6); }

.dg-hero__plate { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1; }
.dg-plate-frame {
	position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
	border: 12px solid var(--dg-base-50);
	box-shadow: 0 0 0 1.5px var(--dg-ink), 0 30px 50px -20px rgba(30, 27, 22, .45);
	background: var(--dg-base-200);
}
.dg-plate-frame .dg-img, .dg-plate-frame .dg-plate { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--dg-ease); }
.dg-hero__plate:hover .dg-img { transform: scale(1.05) rotate(2deg); }
.dg-ring {
	position: absolute; inset: 0; width: 100%; height: 100%;
	font: 500 9.6px var(--dg-font-mono); letter-spacing: .32em; fill: var(--dg-ink);
	animation: dg-spin 40s linear infinite;
}
.dg-sticker {
	position: absolute; left: 3%; bottom: 10%;
	display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%;
	background: var(--dg-accent); border: var(--dg-line);
	font: italic 700 1.35rem var(--dg-font-display); transform: rotate(-14deg);
	box-shadow: 0 5px 0 var(--dg-ink);
}
@keyframes dg-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
	.dg-hero__inner { grid-template-columns: 1fr; }
	.dg-hero__plate { order: -1; width: min(86vw, 380px); }
	.dg-sticker { width: 70px; height: 70px; font-size: 1.1rem; }
}

/* ---------------------------------------------------------------
   7. Section heads, page heads
---------------------------------------------------------------- */
.dg-sechead { position: relative; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.dg-sechead__title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }
.dg-sechead__title em { font-weight: 400; color: var(--dg-primary); }
.dg-squiggle { width: 110px; margin-top: .75rem; color: var(--dg-accent); }

.dg-pagehead { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.dg-pagehead__title { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.03em; }
.dg-pagehead__desc { max-width: 40rem; color: var(--dg-ink-soft); margin-top: var(--dg-space-4); }
.dg-404 .dg-searchform { max-width: 560px; margin-top: var(--dg-space-6); }

/* ---------------------------------------------------------------
   8. Cards & grid
---------------------------------------------------------------- */
.dg-latest { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }

.dg-grid {
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(1rem, 2.4vw, 2rem);
}
.dg-grid > .dg-card { grid-column: span 2; }
.dg-grid > .dg-card--feature { grid-column: span 3; }
.dg-grid > .dg-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px 28px; align-items: center; }
.dg-card--wide .dg-card__media { aspect-ratio: 16 / 10; }
.dg-card--wide .dg-card__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
@media (max-width: 1000px) {
	.dg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dg-grid > .dg-card, .dg-grid > .dg-card--feature { grid-column: span 1; }
	.dg-grid > .dg-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.dg-grid { grid-template-columns: 1fr; }
	.dg-grid > .dg-card--wide { display: flex; }
}

.dg-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--dg-base-50); border: var(--dg-line); border-radius: var(--dg-radius-lg);
	padding: 10px;
	transition: transform .35s var(--dg-ease), box-shadow .35s var(--dg-ease);
}
.dg-card:nth-child(odd):hover { transform: translateY(-4px) rotate(-.6deg); }
.dg-card:nth-child(even):hover { transform: translateY(-4px) rotate(.6deg); }
.dg-card:hover { box-shadow: 0 16px 0 -6px var(--dg-base-300), 0 18px 0 -6px var(--dg-ink); }

.dg-card__media {
	display: block; text-decoration: none; aspect-ratio: 4 / 3; border-radius: var(--dg-radius); overflow: hidden;
	background: var(--dg-base-200);
}
.dg-card--feature .dg-card__media { aspect-ratio: 16 / 11; }
.dg-card__media .dg-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--dg-ease); }
.dg-card:hover .dg-card__media .dg-img { transform: scale(1.06); }

.dg-card__no {
	position: absolute; top: 20px; left: 20px;
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: var(--dg-accent); border: var(--dg-line);
	font: 500 .8rem var(--dg-font-mono); color: var(--dg-ink);
	transform: rotate(-10deg);
}

.dg-card__body { padding: 14px 8px 8px; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.dg-card__meta {
	margin: 0; font: 400 .72rem/1.4 var(--dg-font-mono); letter-spacing: .08em; text-transform: uppercase;
	color: var(--dg-ink-soft);
}
.dg-card__title { font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.dg-card--feature .dg-card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.dg-card__title a { text-decoration: none; }
/* whole card clickable through the title link */
.dg-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--dg-radius-lg); }
.dg-card:hover .dg-card__title a { text-decoration: underline wavy var(--dg-primary) 1.5px; text-underline-offset: .22em; }
.dg-card__excerpt { margin: 0; color: var(--dg-ink-soft); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Typographic plate — used when a post has no image, so no card is ever blank */
.dg-plate {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: var(--dg-primary); color: var(--dg-on-primary);
	background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(255, 250, 240, .12) 18px 19px);
}
.dg-plate span { font: italic 700 clamp(3rem, 8vw, 5rem)/1 var(--dg-font-display); }
.dg-plate--1 { background-color: var(--dg-secondary); }
.dg-plate--2 { background-color: var(--dg-accent); color: var(--dg-ink); }
.dg-plate--3 { background-color: var(--dg-neutral); }

/* reveal */
.dg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--dg-ease) var(--dg-delay, 0ms), transform .6s var(--dg-ease) var(--dg-delay, 0ms), box-shadow .35s; }
.dg-reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   9. Popular Topics shelf
---------------------------------------------------------------- */
.dg-pt {
	position: relative; background: var(--dg-neutral); color: var(--dg-on-neutral);
	padding: clamp(3.5rem, 8vw, 6rem) 0;
	margin-top: var(--dg-space-8);
}
/* checked tablecloth edge */
.dg-pt::before {
	content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
	background: radial-gradient(circle at 14px 14px, var(--dg-neutral) 13px, transparent 14px) 0 0 / 28px 14px repeat-x;
}
.dg-pt .dg-kicker { color: var(--dg-accent); }
.dg-pt .dg-sechead__title em { color: var(--dg-accent); }
.dg-pt__grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(.9rem, 2vw, 1.5rem);
}
.dg-pt .dg-card { background: var(--dg-base-100); color: var(--dg-ink); border-color: var(--dg-ink); }
.dg-pt .dg-card:hover { box-shadow: 0 14px 0 -6px var(--dg-accent); }
.dg-pt .dg-card__title { font-size: 1.12rem; }
.dg-pt .dg-card__no { width: 36px; height: 36px; top: 18px; left: 18px; font-size: .74rem; }
@media (max-width: 1000px) { .dg-pt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
	.dg-pt .dg-card { padding: 7px; }
	.dg-pt .dg-card__title { font-size: 1rem; }
	.dg-pt .dg-card__body { padding: 10px 4px 4px; }
	.dg-pt .dg-card__meta span:last-child, .dg-pt .dg-card__meta span[aria-hidden] { display: none; }
}

/* ---------------------------------------------------------------
   10. Single entry
---------------------------------------------------------------- */
.dg-entry__head { max-width: 980px; text-align: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.dg-entry__chips { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: var(--dg-space-6); }
.dg-entry__title { font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.dg-entry__meta { margin: var(--dg-space-6) 0 0; font: 400 .8rem var(--dg-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dg-ink-soft); }

.dg-entry__hero { margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.dg-entry__hero .dg-img {
	width: 100%; max-height: 74vh; object-fit: cover;
	border-radius: var(--dg-radius-lg); border: var(--dg-line);
	box-shadow: 10px 12px 0 var(--dg-base-300);
}
.dg-entry__hero figcaption { margin-top: .8rem; text-align: center; font: .78rem var(--dg-font-mono); color: var(--dg-ink-soft); }

.dg-prose { max-width: calc(720px + var(--dg-gutter) * 2); margin-inline: auto; padding-inline: var(--dg-gutter); }
.dg-entry__body { font-size: 1.15rem; line-height: 1.78; }
.dg-entry__body > * { margin-block: 0 1.3em; }
.dg-entry__body > p:first-child::first-letter {
	float: left; font: 800 4.6em/.82 var(--dg-font-display); margin: .06em .1em 0 0; color: var(--dg-primary);
}
.dg-entry__body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-top: 2em; }
.dg-entry__body h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.7em; }
.dg-entry__body h4 { font-size: 1.2rem; margin-top: 1.5em; }
.dg-entry__body a { color: var(--dg-primary-ink); text-decoration-color: rgba(200, 64, 42, .45); }
.dg-entry__body a:hover { text-decoration-color: currentColor; }
.dg-entry__body ul { list-style: none; padding-left: 1.4em; }
.dg-entry__body ul li { position: relative; margin-bottom: .45em; }
.dg-entry__body ul li::before { content: ""; position: absolute; left: -1.1em; top: .62em; width: .48em; height: .48em; border-radius: 50%; background: var(--dg-primary); }
.dg-entry__body ol { padding-left: 1.4em; }
.dg-entry__body ol li::marker { font-family: var(--dg-font-mono); color: var(--dg-primary-ink); }
.dg-entry__body blockquote {
	margin-inline: 0; padding: 1.4rem 1.6rem; border-left: 0;
	background: var(--dg-base-50); border: var(--dg-line); border-radius: var(--dg-radius);
	font: italic 400 1.35rem/1.45 var(--dg-font-display);
	position: relative;
}
.dg-entry__body blockquote::before { content: "“"; position: absolute; top: -.45em; left: .4em; font: 800 4rem/1 var(--dg-font-display); color: var(--dg-primary); }
.dg-entry__body img { border-radius: var(--dg-radius); }
.dg-entry__body figure { margin-inline: 0; }
.dg-entry__body figcaption { font: .78rem var(--dg-font-mono); color: var(--dg-ink-soft); margin-top: .5rem; }
.dg-entry__body hr { border: 0; height: 14px; background: radial-gradient(circle, var(--dg-primary) 2px, transparent 2.5px) center / 18px 14px repeat-x; margin: 2.5em auto; max-width: 160px; }
.dg-entry__body .alignwide { max-width: 1000px; margin-inline: calc((min(1000px, 100vw - 2 * var(--dg-gutter)) - 100%) / -2); width: auto; }
.dg-entry__body .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.dg-entry__body table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.dg-entry__body th, .dg-entry__body td { border-bottom: 1px solid var(--dg-base-300); padding: .6rem .5rem; text-align: left; }
.dg-entry__body pre { overflow-x: auto; background: var(--dg-ink); color: var(--dg-base-100); padding: 1rem; border-radius: var(--dg-radius-sm); font: .9rem/1.5 var(--dg-font-mono); }

.dg-entry__foot { padding-bottom: var(--dg-space-8); }
.dg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: var(--dg-space-6); border-top: 1.5px dashed var(--dg-base-300); }
.dg-tags .dg-kicker { margin: 0 .5rem 0 0; }

.dg-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--dg-space-4); margin-top: var(--dg-space-8); }
.dg-postnav__item {
	display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem;
	border: var(--dg-line); border-radius: var(--dg-radius); background: var(--dg-base-50);
	text-decoration: none; transition: transform .25s var(--dg-ease), background-color .2s;
}
.dg-postnav__item:hover { transform: translateY(-3px); background: var(--dg-base-200); }
.dg-postnav__item .dg-kicker { margin: 0; }
.dg-postnav__item--next { text-align: right; grid-column: 2; }
.dg-postnav__t { font: 600 1.1rem/1.25 var(--dg-font-display); }
@media (max-width: 600px) { .dg-postnav { grid-template-columns: 1fr; } .dg-postnav__item--next { grid-column: auto; } }

.dg-pagelinks { font-family: var(--dg-font-mono); display: flex; gap: .6rem; }

/* ---------------------------------------------------------------
   11. Comments
---------------------------------------------------------------- */
.dg-comments { padding-block: clamp(3rem, 6vw, 5rem); }
.dg-comments__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--dg-space-6); }
.dg-comments__list, .dg-comments__list .children { list-style: none; margin: 0; padding: 0; }
.dg-comments__list .children { padding-left: clamp(1rem, 4vw, 2.5rem); }
.dg-comments__list .comment-body {
	background: var(--dg-base-50); border: var(--dg-line); border-radius: var(--dg-radius);
	padding: 1.1rem 1.25rem; margin-bottom: var(--dg-space-4);
}
.dg-comments .comment-author { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.dg-comments .comment-author .avatar { border-radius: 50%; border: var(--dg-line); }
.dg-comments .says { display: none; }
.dg-comments .comment-metadata { font: .72rem var(--dg-font-mono); text-transform: uppercase; letter-spacing: .06em; margin: .3rem 0 .6rem; }
.dg-comments .comment-metadata a { text-decoration: none; color: var(--dg-ink-soft); }
.dg-comments .reply a { font: 500 .75rem var(--dg-font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dg-primary-ink); }
.dg-comments label { display: block; font-weight: 700; margin-bottom: .35rem; }
.dg-comments input[type="text"], .dg-comments input[type="email"], .dg-comments input[type="url"], .dg-comments textarea {
	width: 100%; padding: .8rem 1rem; border: var(--dg-line); border-radius: var(--dg-radius-sm);
	background: var(--dg-base-50); font: 1rem var(--dg-font-body); color: var(--dg-ink);
}
.dg-comments .comment-form > p { margin: 0 0 1rem; }
.dg-comments .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.dg-comments .comment-form-cookies-consent label { font-weight: 400; }

/* ---------------------------------------------------------------
   12. Pagination
---------------------------------------------------------------- */
.dg-pagination { margin-top: clamp(2.5rem, 5vw, 4rem); }
.dg-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.dg-pagination li > .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-width: 46px; height: 46px; padding: 0 1rem;
	border: var(--dg-line); border-radius: 999px; background: var(--dg-base-50);
	font: 500 .85rem var(--dg-font-mono); text-decoration: none; white-space: nowrap;
	transition: background-color .18s, transform .18s var(--dg-ease);
}
.dg-pagination a.page-numbers:hover { background: var(--dg-accent); transform: translateY(-2px); }
.dg-pagination li > .current { background: var(--dg-ink); color: var(--dg-base-100); }
.dg-pagination li > .dots { border: 0; background: none; }

.dg-empty { text-align: center; padding: var(--dg-space-12) 0; }
.dg-empty .dg-searchform { max-width: 520px; margin: var(--dg-space-6) auto 0; }

/* ---------------------------------------------------------------
   13. Footer (no categories by design)
---------------------------------------------------------------- */
.dg-footer {
	position: relative; background: var(--dg-ink); color: var(--dg-on-neutral);
	padding-top: clamp(3rem, 6vw, 4.5rem);
}
.dg-pt + .dg-footer, .dg-pt + .dg-comments + .dg-footer { margin-top: 0; }
.dg-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
	background: radial-gradient(circle at 14px 14px, var(--dg-ink) 13px, transparent 14px) 0 0 / 28px 14px repeat-x;
}
.dg-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--dg-space-8); padding-bottom: var(--dg-space-8); }
.dg-footer__brand img { height: 56px; width: auto; }
.dg-footer__tag { margin: .8rem 0 0; font: italic 400 1.25rem var(--dg-font-display); color: #d8cdb6; max-width: 22rem; }
.dg-foot__list { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.dg-foot__link { display: inline-flex; min-height: 44px; align-items: center; font: 500 .78rem var(--dg-font-mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--dg-on-neutral); }
.dg-foot__link:hover { color: var(--dg-accent); }
.dg-footer__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
	border-top: 1px solid rgba(244, 236, 219, .18); padding-block: 1.2rem 1.6rem;
	font: .78rem var(--dg-font-mono); color: #b9ae98;
}
.dg-footer__base p { margin: 0; }
.dg-totop { color: var(--dg-on-neutral); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.dg-totop:hover { color: var(--dg-accent); }

/* ---------------------------------------------------------------
   14. WordPress core bits
---------------------------------------------------------------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font: .78rem var(--dg-font-mono); color: var(--dg-ink-soft); }
.sticky .dg-card__title::before { content: "★ "; color: var(--dg-primary); }
.bypostauthor > .comment-body { border-color: var(--dg-primary); }
.wp-block-button__link { border-radius: 999px; background: var(--dg-primary); color: var(--dg-on-primary); }

/* Header code area (Analytics / AdSense) — ad units get breathing room */
.dg-header + ins.adsbygoogle, .dg-header + .textwidget, .dg-header ~ .adsbygoogle { display: block; margin: 12px auto 0; text-align: center; }

/* ---------------------------------------------------------------
   15. Motion preferences
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.dg-reveal { opacity: 1; transform: none; }
}

@media print {
	.dg-header, .dg-pt, .dg-footer, .dg-comments, .dg-postnav, .dg-search { display: none !important; }
	body { background: #fff; }
}
