/*
Theme Name: Paraphraser Human Text
Theme URI: https://paraphraserhumantext.com/
Author: Dhanvi Gupta
Description: Editorial theme for Paraphraser Human Text, carrying the live Next.js build's design into WordPress — indigo and violet on a cool off-white, Inter throughout. Pairs with the Sitecraft Blocks plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: human-text
*/

/* Tokens lifted verbatim from the live build's compiled stylesheet
   (_next/static/css/87905096f5a5fcbc.css), not guessed. The whole site runs on
   one typeface — Inter — and a two-step indigo/violet brand. */
:root {
	--brand:        #4f46e5;
	--brand-2:      #7c3aed;
	--bg-page:      #f8f8fc;
	--bg-card:      #ffffff;
	--bg-card-hover:#f4f4fb;
	--line:         #e5e7f0;
	--ink:          #111827;
	--muted:        #6b7280;

	/* derived, for states the compiled build only expresses as Tailwind utilities */
	--brand-dark:   #4338ca;
	--ink-soft:     #374151;

	--font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

	--wrap:    1120px;   /* max-w-7xl */
	--measure: 720px;
	--gutter:  20px;
	--r:       12px;
	--r-sm:    8px;
	--soft:    0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .05);
}

/* Retune the plugin's blocks to this palette. */
:root {
	--sc-ink:    var(--ink);
	--sc-deep:   var(--ink);
	--sc-accent: var(--brand);
	--sc-muted:  var(--muted);
	--sc-paper:  var(--bg-card-hover);
	--sc-line:   var(--line);
	--sc-wrap:   var(--wrap);
	--sc-r:      var(--r);
}
.sc-tone-light { background: var(--bg-card);      color: var(--ink-soft); }
.sc-tone-paper { background: var(--bg-card-hover); color: var(--ink-soft); }
.sc-tone-dark  { background: var(--ink);          color: #fff; }
.sc-tone-dark .sc-stat__v { color: #a5b4fc; }
.sc-card { background: var(--bg-card); border-color: var(--line); box-shadow: var(--soft); }
.sc-btn  { color: #fff; }
.sc-hero__title, .sc-head__title, .sc-cta__title { font-weight: 800; letter-spacing: -.02em; }

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

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg-page);
	color: var(--ink-soft);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

code, pre { font-family: var(--mono); font-size: .92em; }
pre {
	padding: 16px 18px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg-card);
}
code { padding: 2px 6px; border-radius: 5px; background: var(--bg-card-hover); }
pre code { padding: 0; background: none; }

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

/* masthead ----------------------------------------------------------------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(248, 248, 252, .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-weight: 800;
	font-size: 19px;
	letter-spacing: -.02em;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}
/* the live build runs a gradient across the wordmark's second half */
.site-nav .nm span {
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

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

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

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

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

.site-main { padding-block: 40px 80px; }

.entry-title {
	font-size: clamp(27px, 4vw, 38px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.025em;
	color: var(--ink);
	margin: 0 0 14px;
	max-width: 26ch;
}
.entry-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 13.5px;
}

.entry-content { max-width: var(--measure); font-size: 16.5px; }
.is-home .entry-content { max-width: none; }

.entry-content p { margin: 0 0 17px; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	color: var(--ink);
	letter-spacing: -.02em;
	line-height: 1.25;
}
.entry-content h1 { font-weight: 800; font-size: clamp(25px, 3.6vw, 32px); margin: 32px 0 12px; }
.entry-content h2 { font-weight: 700; font-size: 23px; margin: 34px 0 12px; }
.entry-content h3 { font-weight: 700; font-size: 18.5px; margin: 24px 0 8px; }
.entry-content h4 { font-weight: 600; font-size: 16px; margin: 20px 0 8px; }

.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 22px; }
.entry-content li { margin-bottom: 7px; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--brand-dark); }
.entry-content strong { color: var(--ink); font-weight: 600; }

.entry-content blockquote {
	margin: 22px 0;
	padding: 14px 18px;
	border-left: 3px solid var(--brand);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	background: var(--bg-card);
	color: var(--ink);
}
.entry-content blockquote p { margin: 0; }

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

.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td {
	padding: 10px 13px;
	border: 1px solid var(--line);
	text-align: left;
}
.entry-content th { background: var(--bg-card-hover); color: var(--ink); font-weight: 600; }

.btn {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: .15s;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); color: #fff; }
.btn.outline { border-color: var(--line); color: var(--ink); background: var(--bg-card); }

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

.card-list {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin-top: 26px;
	padding: 0;
	list-style: none;
}
.card-list li {
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--bg-card);
	box-shadow: var(--soft);
	transition: background .15s;
}
.card-list li:hover { background: var(--bg-card-hover); }
.card-list h2 {
	margin: 0 0 6px;
	font-size: 18.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.015em;
}
.card-list h2 a { text-decoration: none; color: var(--ink); }
.card-list h2 a:hover { color: var(--brand); }
.card-list p { margin: 0; color: var(--muted); font-size: 15px; }

@media (min-width: 820px) {
	.card-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.pagination { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg-card);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink-soft);
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

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

.site-footer {
	margin-top: 60px;
	padding-block: 30px;
	border-top: 1px solid var(--line);
	background: var(--bg-card);
	color: var(--muted);
	font-size: 14px;
}

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

.alignwide   { max-width: var(--wrap); 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(--muted);
	font-size: 13px;
	text-align: left;
	padding-top: 6px;
}
.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; }
}
