/* ============================================================
   SHUK — theme for eatjlm.com
   A food blog about cooking, restaurants & grocery shopping
   as a new immigrant in Jerusalem.

   Palette: Jerusalem limestone, pomegranate, saffron, olive.
   Type: Playfair Display (display) · Lora (prose) · Montserrat (UI)
   ============================================================ */

/* ---- Custom Properties ------------------------------------ */

:root {
	/* Warm limestone palette */
	--bg:            #FAF8F4;   /* ivory — the page */
	--bg-alt:        #F0EBE0;   /* darker cream — header/footer */
	--bg-rule:       #E8E1D5;   /* very subtle warm rule */

	/* Text */
	--text:          #231E18;   /* near-black, warm undertone */
	--text-secondary:#6B5D4F;   /* warm medium brown */
	--text-muted:    #A89880;   /* stone grey — timestamps, labels */

	/* Accent: pomegranate / sumac */
	--accent:        #9B3D2B;
	--accent-dark:   #7A2F20;

	/* Gold: saffron / turmeric / olive oil */
	--gold:          #C4882A;

	/* Borders */
	--border:        #E2D9CC;
	--border-strong: #C4B9A9;

	/* Type scale */
	--font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body:     'Lora', Georgia, 'Times New Roman', serif;
	--font-ui:       'Montserrat', -apple-system, 'Helvetica Neue', sans-serif;

	/* Layout */
	--max-prose:     700px;
}


/* ---- Reset & Base ----------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.125rem;   /* 18 px */
	line-height: 1.8;
	margin: 0;
	padding: 0;
	/* Override Bootstrap's default padding-top */
	padding-top: 0 !important;
}

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

a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--accent-dark);
	outline: none;
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 1px;
}


/* ---- Site Header / Masthead ------------------------------- */

.site-header {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
	text-align: center;
	padding: 3.5rem 2rem 0;
	position: static;          /* override Bootstrap fixed-top */
}

.site-branding {
	margin-bottom: 2rem;
}

.site-title {
	display: inline-block;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 7vw, 4.25rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1;
	color: var(--text);
	text-decoration: none;

	/* Gold underline — the signature touch */
	border-bottom: 3px solid var(--gold);
	padding-bottom: 0.25rem;

	transition: color 0.2s, border-color 0.2s;
}

.site-title:hover,
.site-title:focus {
	color: var(--accent);
	border-color: var(--accent);
	text-decoration: none;
}

.site-slogan {
	margin: 0.85rem 0 0;
	font-family: var(--font-ui);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-muted);
}


/* ---- Primary Navigation ----------------------------------- */

.site-nav {
	border-top: 1px solid var(--border);
	margin-top: 2rem;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
}

.site-nav ul li a {
	display: block;
	font-family: var(--font-ui);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-secondary);
	padding: 1rem 1.375rem;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.site-nav ul li a:hover,
.site-nav ul li a.is-active {
	color: var(--accent);
	border-bottom-color: var(--accent);
	text-decoration: none;
}


/* ---- Post List (Home / Category / Tag) -------------------- */

.posts-wrap {
	max-width: var(--max-prose);
	margin: 0 auto;
	padding: 4rem 1.5rem 6rem;
}

.post-item {
	padding: 3.25rem 0;
	border-bottom: 1px solid var(--border);
}

.post-item:first-child { padding-top: 0; }
.post-item:last-child  { border-bottom: none; }


/* Cover image */
.post-cover-link {
	display: block;
	overflow: hidden;
	margin-bottom: 1.625rem;
	text-decoration: none;
	border-radius: 1px;
}

.post-cover-link img {
	width: 100%;
	max-height: 440px;
	object-fit: cover;
	transition: transform 0.55s ease;
}

.post-cover-link:hover img {
	transform: scale(1.025);
}


/* Eyebrow / dateline */
.post-eyebrow {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 0.6rem;
}


/* Post title (list) */
.post-title-link {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3.5vw, 1.85rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
	margin-bottom: 0.8rem;
	transition: color 0.2s;
}

.post-title-link:hover { color: var(--accent); }


/* Excerpt */
.post-excerpt {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--text-secondary);
	margin-bottom: 1.25rem;
}

.post-excerpt p { margin: 0; }


/* Read-more link */
.read-more-link {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 1px;
	transition: color 0.2s;
}

.read-more-link:hover { color: var(--text); }


/* ---- Single Post ------------------------------------------ */

.post-single {
	max-width: var(--max-prose);
	margin: 0 auto;
	padding: 4rem 1.5rem 7rem;
}


/* Hero image */
.post-single-hero {
	margin-bottom: 2.75rem;
	overflow: hidden;
	border-radius: 1px;
}

.post-single-hero img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}


/* Post header */
.post-single-header {
	border-bottom: 1px solid var(--border);
	padding-bottom: 1.75rem;
	margin-bottom: 2.75rem;
}

.post-single-eyebrow {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.post-single-title {
	font-family: var(--font-display);
	font-size: clamp(1.85rem, 5.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--text);
	margin: 0;
}


/* ---- Post Body Typography --------------------------------- */

.post-content { }

.post-content p {
	margin: 0 0 1.65em;
}

.post-content h1 {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--text);
	margin: 2.75em 0 0.75em;
}

.post-content h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
	color: var(--text);
	margin: 2.75em 0 0.75em;
}

.post-content h3 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 400;
	font-style: italic;
	color: var(--text);
	margin: 2.25em 0 0.6em;
}

.post-content h4 {
	font-family: var(--font-ui);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-secondary);
	margin: 2em 0 0.5em;
}

.post-content blockquote {
	margin: 2.25em 0;
	padding: 0.25em 0 0.25em 1.5em;
	border-left: 3px solid var(--gold);
	font-style: italic;
	font-size: 1.1em;
	color: var(--text-secondary);
}

.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.2s;
}

.post-content a:hover { color: var(--accent-dark); }

.post-content img {
	width: 100%;
	margin: 2em 0;
	border-radius: 1px;
}

.post-content figure {
	margin: 2em 0;
}

.post-content figcaption {
	font-family: var(--font-ui);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	margin-top: 0.6em;
	text-align: center;
	font-style: italic;
}

.post-content ul,
.post-content ol {
	padding-left: 1.5em;
	margin-bottom: 1.65em;
}

.post-content li { margin-bottom: 0.4em; }

.post-content hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 3.5em auto;
	width: 60%;
}

.post-content strong { font-weight: 600; color: var(--text); }
.post-content em     { font-style: italic; }




/* Tables */
.post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
	margin-bottom: 1.65em;
}

.post-content th,
.post-content td {
	padding: 0.6em 1em;
	border: 1px solid var(--border);
	text-align: left;
}

.post-content th {
	background: var(--bg-alt);
	font-family: var(--font-ui);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
}


/* Code */
.post-content code {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.875em;
	background: var(--bg-alt);
	border-radius: 2px;
	padding: 0.1em 0.4em;
}

.post-content pre {
	background: var(--bg-alt);
	border-left: 3px solid var(--gold);
	padding: 1.25em 1.5em;
	overflow-x: auto;
	margin-bottom: 1.65em;
	border-radius: 0 2px 2px 0;
}

.post-content pre code {
	background: none;
	padding: 0;
	font-size: 0.875em;
}


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

.pagination-wrap {
	border-top: 1px solid var(--border);
	margin-top: 3.5rem;
	padding-top: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.pagination-btn {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-secondary);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1px;
	transition: color 0.2s, border-color 0.2s;
}

.pagination-btn:hover {
	color: var(--accent);
	border-color: var(--accent);
	text-decoration: none;
}


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

.site-footer {
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	text-align: center;
	padding: 2.25rem 1.5rem 2.75rem;
}

.site-footer p {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0;
	line-height: 2;
}

.site-footer a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer a:hover { color: var(--accent); }


/* ---- Empty State ------------------------------------------ */

.no-content {
	text-align: center;
	padding: 6rem 0;
	color: var(--text-secondary);
	font-style: italic;
	font-size: 1.1rem;
}


/* ---- Plugin Compatibility --------------------------------- */

/* Sidebar widgets (if any plugin outputs these) */
.plugin {
	margin-bottom: 1.75rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--border);
}

.plugin:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.plugin-label {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-secondary);
	margin-bottom: 0.85rem;
}

.plugin ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.plugin ul li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--bg-rule);
}

.plugin ul li:last-child { border-bottom: none; }

.plugin ul li a {
	color: var(--text-secondary);
	font-size: 0.9rem;
	text-decoration: none;
	transition: color 0.2s;
}

.plugin ul li a:hover { color: var(--accent); }

/* Tags / Categories: pill style */
.plugin.plugin-tags ul,
.plugin.plugin-categories ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.plugin.plugin-tags ul li,
.plugin.plugin-categories ul li { border-bottom: none; padding: 0; }

.plugin.plugin-tags ul li a,
.plugin.plugin-categories ul li a {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-secondary);
	border: 1px solid var(--border-strong);
	border-radius: 1px;
	padding: 0.25rem 0.65rem;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.plugin.plugin-tags ul li a:hover,
.plugin.plugin-categories ul li a:hover {
	color: var(--accent);
	border-color: var(--accent);
	background: transparent;
}

/* Search input */
.plugin.plugin-search .form-control {
	font-family: var(--font-body);
	font-size: 0.9rem;
	border: 1px solid var(--border-strong);
	border-radius: 1px;
	padding: 0.6rem 0.9rem;
	background: var(--bg);
	color: var(--text);
}

.plugin.plugin-search .form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(155, 61, 43, 0.12);
	outline: none;
}

.plugin.plugin-search button {
	font-family: var(--font-ui);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 1px;
	padding: 0.6rem 1.25rem;
	margin-top: 0.5rem;
	transition: background 0.2s;
	cursor: pointer;
}

.plugin.plugin-search button:hover { background: var(--accent-dark); }


/* ---- Bootstrap overrides (keep Bootstrap from interfering) - */

/* Remove Bootstrap's body padding added for fixed navbars */
body { padding-top: 0 !important; margin-bottom: 0 !important; }

/* Prevent Bootstrap container from fighting our layout */
.container { max-width: none; padding: 0; }

/* Reset Bootstrap card styles that may appear in plugins */
.card { background: transparent; border: none; }
.card-body { padding: 0; }


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

@media (max-width: 640px) {
	body { font-size: 1.0625rem; }

	.site-header { padding: 2.5rem 1.25rem 0; }

	.posts-wrap,
	.post-single {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.post-item { padding: 2.5rem 0; }

	.post-single-title { font-size: 1.7rem; }

.pagination-wrap { flex-direction: column; text-align: center; gap: 0.75rem; }
}

@media (max-width: 400px) {
	.site-title { font-size: 2.1rem; }
}
