/*
Theme Name: Zen Tech Hub
Theme URI: https://zentechhub.com/
Author: Dhanvi Gupta
Description: Editorial theme for zentechhub.com, carrying the design of the original Astro site into WordPress — the same ink/paper/accent token scale, Inter and Newsreader. Pairs with the Sitecraft Blocks plugin, whose section blocks are retuned to this palette.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: zen-tech-hub
*/

/* Lifted verbatim from the live Astro build, token names and all, so the
   migration is invisible and anything copied between the two still matches. */
:root {
	--ink-900: #0f1720;
	--ink-800: #1b2530;
	--ink-700: #2b3947;
	--ink-600: #45566a;
	--ink-500: #667585;
	--ink-400: #93a1b0;
	--ink-300: #c3ccd6;
	--line: #e5e9ee;
	--line-strong: #d3d9e0;
	--paper: #ffffff;
	--paper-2: #f7f9fb;
	--paper-3: #eef2f6;
	--accent: #0e8f81;
	--accent-600: #0b7669;
	--accent-050: #e7f5f2;
	--gold: #c98a1a;
	--gold-050: #fbf1dd;
	--buy: #b35407;
	--buy-600: #8f4205;
	--danger: #c0392b;
	--good: #1f9d55;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 32, .06), 0 1px 3px rgba(15, 23, 32, .05);
	--shadow-md: 0 4px 14px rgba(15, 23, 32, .08);
	--shadow-lg: 0 18px 48px rgba(15, 23, 32, .14);
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--wrap: 1200px;
	--measure: 720px;
}

/* Retune the plugin's blocks to this site; everything it draws keys off these. */
:root {
	--sc-ink:    var(--ink-900);
	--sc-deep:   var(--ink-900);
	--sc-accent: var(--accent);
	--sc-muted:  var(--ink-600);
	--sc-paper:  var(--paper-2);
	--sc-line:   var(--line);
	--sc-wrap:   var(--wrap);
	--sc-r:      var(--radius);
}
.sc-tone-light { background: var(--paper);   color: var(--ink-900); }
.sc-tone-paper { background: var(--paper-2); color: var(--ink-900); }
.sc-tone-dark  { background: var(--ink-900); color: #fff; }
.sc-tone-dark .sc-stat__v { color: var(--accent-050); }
.sc-card { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-sm); }
.sc-btn  { color: #fff; }
.sc-hero__title, .sc-head__title, .sc-cta__title { font-family: var(--font-serif); }

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

body {
	margin: 0;
	font-family: var(--font-sans);
	background: var(--paper);
	color: var(--ink-900);
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}

.container {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

a { color: var(--accent-600); }
a:hover { color: var(--ink-900); }

img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
pre {
	padding: 16px 18px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-2);
}
code { padding: 2px 6px; border-radius: 5px; background: var(--paper-3); }
pre code { padding: 0; background: none; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 10px 16px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* nav ---------------------------------------------------------------------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-nav .container {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 64px;
}
.site-nav .nm {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -.015em;
	text-decoration: none;
	color: var(--ink-900);
	white-space: nowrap;
}
.site-nav .nm span { color: var(--accent); }

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	color: var(--ink-600);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
}
.site-nav a:hover { color: var(--accent-600); }

.site-nav .mail {
	margin-left: auto;
	color: var(--accent-600);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 880px) {
	.site-nav ul { display: none; }
}

/* page content ------------------------------------------------------------- */

.site-main { padding-block: 44px 72px; }

.entry-title {
	font-family: var(--font-serif);
	font-size: clamp(32px, 5vw, 50px);
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 12px;
	max-width: 20ch;
	color: var(--ink-900);
}
.entry-meta { margin-bottom: 30px; color: var(--ink-500); font-size: 14px; }

/* the site's own reading measure */
.entry-content { max-width: var(--measure); }
.is-home .entry-content { max-width: none; }

.entry-content > * + * { margin-top: 1.2em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--font-serif);
	color: var(--ink-900);
	letter-spacing: -.015em;
	margin-bottom: .45em;
}
.entry-content h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; }
.entry-content h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.22; margin-top: 1.9em; }
.entry-content h3 { font-size: 21px; line-height: 1.3; margin-top: 1.6em; }
.entry-content p  { color: var(--ink-700); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; color: var(--ink-700); }
.entry-content li + li { margin-top: .4em; }
.entry-content a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--ink-900); }

.entry-content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--accent);
	color: var(--ink-600);
}

.entry-content hr { margin-block: 2.6em; border: 0; border-top: 1px solid var(--line); }

/* spec and comparison tables are the heart of a reviews site */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.entry-content th, .entry-content td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
.entry-content thead th { background: var(--paper-3); font-weight: 600; }
.entry-content tbody tr:last-child td { border-bottom: 0; }

.btn {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: .18s;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-600); color: #fff; }
.btn.outline { border-color: var(--line-strong); color: var(--ink-800); }
.btn:hover { transform: translateY(-1px); }

/* listings ----------------------------------------------------------------- */

.card-list {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	margin-top: 28px;
	padding: 0;
	list-style: none;
}
.card-list li {
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card-list li:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
.card-list h2 {
	font-family: var(--font-serif);
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 1.32;
	color: var(--ink-900);
}
.card-list h2 a { text-decoration: none; color: inherit; }
.card-list p { margin: 0; color: var(--ink-600); font-size: 15px; }

.pagination { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-size: 14.5px;
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* footer ------------------------------------------------------------------- */

.site-footer {
	margin-top: 64px;
	padding-block: 30px;
	border-top: 1px solid var(--line);
	background: var(--paper-2);
	color: var(--ink-600);
	font-size: 14px;
}

/* WordPress core bits ------------------------------------------------------ */

.alignwide   { max-width: 1320px; margin-inline: auto; }
.alignfull   { max-width: none; margin-inline: calc(50% - 50vw); width: 100vw; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, .wp-element-caption {
	color: var(--ink-500);
	font-size: 13.5px;
	text-align: center;
}
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.btn, .card-list li { transition: none; }
	.btn:hover, .card-list li:hover { transform: none; }
}
