/*
Theme Name: getlisticles
Theme URI: https://getlisticles.com
Author: GetListicles
Author URI: https://getlisticles.com
Description: One-page block theme for GetListicles — a done-for-you listicle placement service. Editorial "marked-up article" look: warm paper, deep ink, a single highlighter-yellow marker accent, mono data chips. All layout lives in block templates and patterns; tokens live in theme.json.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
Version: 2.1.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: getlisticles
Tags: one-column, full-site-editing, block-patterns, custom-colors, custom-logo, landing-page, editor-style
*/

/* ------------------------------------------------------------------
   1. Base
------------------------------------------------------------------ */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--marker);
	color: var(--wp--preset--color--ink);
}

:where(a, button, input, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--annotate);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ------------------------------------------------------------------
   2. Shared devices: marker highlight, eyebrow, chips
------------------------------------------------------------------ */

/* The signature: a highlighter swipe. Only ever behind ink text. */
.gl-mark {
	background-color: transparent;
	background-image: linear-gradient(0deg, var(--wp--preset--color--marker), var(--wp--preset--color--marker));
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: 0 0;
	border-radius: 0.25em 0.1em 0.3em 0.15em;
	padding: 0.02em 0.14em;
	margin: 0 -0.04em;
	color: inherit;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.gl-mark--sweep {
	background-size: 0% 100%;
	animation: gl-sweep 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.35s forwards;
}

@keyframes gl-sweep {
	to { background-size: 100% 100%; }
}

/* Mono eyebrow label above sections */
.gl-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--annotate);
}

/* Mono data chip */
.gl-chip {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--slate);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 999px;
	padding: 0.45em 0.9em;
	white-space: nowrap;
}

/* ------------------------------------------------------------------
   3. Header
------------------------------------------------------------------ */

.gl-header {
	background: var(--wp--preset--color--paper);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.gl-header .wp-block-site-title a,
.gl-logo a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

/* Wordmark: lowercase bold name that ends in a chunky marker-yellow period */
.gl-logo {
	text-transform: lowercase;
}

.gl-logo a::after {
	content: "";
	display: inline-block;
	width: 0.3em;
	height: 0.3em;
	border-radius: 50%;
	background: var(--wp--preset--color--marker);
	margin-left: 0.09em;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.gl-logo a:hover {
	color: var(--wp--preset--color--ink);
}

.gl-logo a:hover::after {
	background: var(--wp--preset--color--annotate);
	transform: scale(1.15);
}

.gl-logo--light a {
	color: var(--wp--preset--color--white);
}

.gl-logo--light a:hover {
	color: var(--wp--preset--color--white);
}

.gl-logo--light a:hover::after {
	background: var(--wp--preset--color--marker);
}

/* ------------------------------------------------------------------
   4. Buttons
------------------------------------------------------------------ */

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Ghost button (used beside the primary CTA) */
.gl-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--ink);
}

.gl-btn-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* ------------------------------------------------------------------
   5. Hero + listicle article card
------------------------------------------------------------------ */

.gl-hero {
	position: relative;
	overflow: hidden;
}

/* Extra leading so the marker sweep on the last line clears the
   descenders of the line above (e.g. the "y" in "visibility"). */
.gl-hero h1 {
	line-height: 1.16;
}

.gl-hero__sub {
	max-width: 34rem;
}

/* The article card: a listicle with "you" written in */
.gl-article {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 16px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 1.6rem 1.7rem 1.3rem;
	position: relative;
}

.gl-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.9rem;
	align-items: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	margin: 0 0 0.9rem;
}

.gl-article__meta .gl-tag {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	border-radius: 5px;
	padding: 0.3em 0.6em;
	letter-spacing: 0.12em;
}

.gl-article__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
	margin: 0 0 1.1rem;
	color: var(--wp--preset--color--ink);
}

.gl-entry {
	display: grid;
	grid-template-columns: 2.1rem 1fr auto;
	gap: 0.85rem;
	align-items: baseline;
	padding: 0.72rem 0.35rem;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.gl-entry__num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}

.gl-entry__name {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	font-size: 0.98rem;
}

.gl-entry__name small {
	display: block;
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--wp--preset--color--slate);
	margin-top: 0.1rem;
}

.gl-entry__note {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	color: var(--wp--preset--color--slate);
}

/* The inserted entry — your brand, highlighted */
.gl-entry--you {
	background: var(--wp--preset--color--marker-soft);
	border-top-color: transparent;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--marker);
	padding-left: 0.6rem;
	padding-right: 0.6rem;
	margin: 0.15rem -0.35rem;
}

.gl-entry--you + .gl-entry {
	border-top-color: transparent;
}

.gl-entry--you .gl-entry__num {
	color: var(--wp--preset--color--ink);
}

.gl-entry--you .gl-entry__name > span {
	background: var(--wp--preset--color--marker);
	border-radius: 0.25em 0.1em 0.3em 0.15em;
	padding: 0.02em 0.18em;
}

.gl-entry--you .gl-entry__note {
	color: var(--wp--preset--color--annotate);
	font-weight: 600;
}

/* AI citation strip under the card */
.gl-cites {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1rem;
}

.gl-cites .gl-chip {
	font-size: 0.72rem;
	padding: 0.42em 0.75em;
}

.gl-cites__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	margin: 0;
}

/* Chips with brand logos (AI engines citing the listicle) */
.gl-chip--logo {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	color: var(--wp--preset--color--ink);
}

.gl-chip--logo img {
	display: block;
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	object-fit: contain;
}

/* ------------------------------------------------------------------
   6. Stats band
------------------------------------------------------------------ */

.gl-stats {
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.gl-stats .wp-block-column {
	padding: 0.4rem 0;
}

.gl-stat__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

/* ------------------------------------------------------------------
   7. Client logos strip
------------------------------------------------------------------ */

.gl-logos-row {
	align-items: center;
}

.gl-logos-row img {
	display: block;
	height: clamp(25px, 3.2vw, 33px);
	width: auto;
	max-width: 150px;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.gl-logos-row img:hover {
	transform: translateY(-3px);
}

/* ------------------------------------------------------------------
   8. Feature cards ("Why listicles matter")
------------------------------------------------------------------ */

.gl-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 14px;
	padding: 1.7rem 1.7rem 1.5rem;
	height: 100%;
}

.gl-card h3 {
	font-size: 1.15rem;
	margin: 0 0 0.55rem;
	position: relative;
	padding-top: 0.9rem;
}

/* A short highlighter tick above each card title */
.gl-card h3::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0.05rem;
	width: 2.1rem;
	height: 0.42rem;
	background: var(--wp--preset--color--marker);
	border-radius: 0.25em 0.1em 0.3em 0.15em;
	transform: rotate(-1.2deg);
}

.gl-card p {
	color: var(--wp--preset--color--slate);
	font-size: 0.96rem;
	margin: 0;
}

/* ------------------------------------------------------------------
   9. How it works — numbered steps (a listicle about the process)
------------------------------------------------------------------ */

.gl-step {
	display: grid;
	grid-template-columns: 4.6rem 1fr;
	gap: 1.6rem;
	padding: 2.1rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
	align-items: start;
}

.gl-step:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.gl-step__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.3rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--marker);
	border-radius: 0.25em 0.1em 0.3em 0.15em;
	padding: 0.18em 0.22em 0.12em;
	justify-self: start;
	transform: rotate(-1.4deg);
}

.gl-step__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin-bottom: 0.6rem;
}

.gl-step__head h3 {
	font-size: 1.35rem;
	margin: 0;
}

.gl-step p {
	color: var(--wp--preset--color--slate);
	max-width: 44rem;
	margin: 0 0 0.7rem;
}

.gl-step p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
   10. Pricing — dark ink section, white package cards
------------------------------------------------------------------ */

.gl-pricing {
	background: var(--wp--preset--color--ink);
}

.gl-pricing .gl-eyebrow {
	color: var(--wp--preset--color--marker);
}

.gl-pricing h2 {
	color: var(--wp--preset--color--white);
}

.gl-pricing__sub {
	color: rgba(255, 255, 255, 0.72);
}

.gl-plan {
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	padding: 2rem 2rem 1.75rem;
	position: relative;
	box-shadow: var(--wp--preset--shadow--card);
}

.gl-plan__badge {
	position: absolute;
	top: -0.85rem;
	right: 1.4rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--marker);
	border-radius: 7px;
	padding: 0.45em 0.8em;
	transform: rotate(1.4deg);
	box-shadow: var(--wp--preset--shadow--soft);
	margin: 0;
}

.gl-plan__kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.76rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	margin: 0 0 0.2rem;
}

.gl-plan h3 {
	font-size: 1.6rem;
	margin: 0 0 1rem;
}

.gl-plan__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--price);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--wp--preset--color--ink);
	margin: 0;
}

.gl-plan__per {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	color: var(--wp--preset--color--slate);
	margin: 0.45rem 0 1.3rem;
}

.gl-plan ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.6rem;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.gl-plan li {
	padding: 0.6rem 0 0.6rem 1.7rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	font-size: 0.95rem;
	color: var(--wp--preset--color--ink);
	position: relative;
}

.gl-plan li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 1.05rem;
	width: 0.85rem;
	height: 0.32rem;
	background: var(--wp--preset--color--marker);
	border-radius: 0.25em 0.1em 0.3em 0.15em;
	transform: rotate(-2deg);
}

.gl-plan .wp-block-buttons {
	margin: 0;
}

.gl-plan .wp-block-button,
.gl-plan .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* ------------------------------------------------------------------
   11. FAQ accordion
------------------------------------------------------------------ */

.gl-faq details {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding: 0;
}

.gl-faq details:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.gl-faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: 1.15rem 2.4rem 1.15rem 0.15rem;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--wp--preset--color--ink);
	position: relative;
	transition: color 0.15s ease;
}

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

.gl-faq summary:hover {
	color: var(--wp--preset--color--annotate);
}

.gl-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--wp--preset--color--slate);
	transition: transform 0.2s ease;
}

.gl-faq details[open] summary::after {
	content: "−";
	color: var(--wp--preset--color--annotate);
}

.gl-faq details > :not(summary) {
	padding: 0 2.4rem 1.25rem 0.15rem;
	color: var(--wp--preset--color--slate);
	max-width: 52rem;
}

/* ------------------------------------------------------------------
   12. Contact section + form
------------------------------------------------------------------ */

.gl-contact-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 16px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 2rem;
}

.gl-form {
	display: grid;
	gap: 1.05rem;
}

.gl-form label {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	margin-bottom: 0.4rem;
}

.gl-form input[type="text"],
.gl-form input[type="email"],
.gl-form input[type="url"],
.gl-form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 10px;
	padding: 0.75rem 0.9rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.gl-form input:focus,
.gl-form textarea:focus {
	outline: none;
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--annotate);
	box-shadow: 0 0 0 3px rgba(43, 75, 223, 0.14);
}

.gl-form textarea {
	min-height: 8.5rem;
	resize: vertical;
}

.gl-form button[type="submit"] {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--ink);
	border: none;
	border-radius: 10px;
	padding: 0.9rem 1.5rem;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.gl-form button[type="submit"]:hover {
	background: var(--wp--preset--color--marker);
	color: var(--wp--preset--color--ink);
	transform: translateY(-1px);
}

/* Honeypot — hidden from people, left visible to bots */
.gl-form .gl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gl-notice {
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	font-size: 0.95rem;
	font-weight: 500;
	margin-bottom: 1.2rem;
}

.gl-notice--ok {
	background: var(--wp--preset--color--marker-soft);
	border: 1.5px solid var(--wp--preset--color--marker);
	color: var(--wp--preset--color--ink);
}

.gl-notice--error {
	background: #fdecec;
	border: 1.5px solid #e05252;
	color: #7a1f1f;
}

.gl-contact__aside p {
	color: var(--wp--preset--color--slate);
}

.gl-contact__email a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--marker);
}

.gl-contact__email a:hover {
	background: var(--wp--preset--color--marker);
	color: var(--wp--preset--color--ink);
}

/* ------------------------------------------------------------------
   13. Footer
------------------------------------------------------------------ */

.gl-footer {
	background: var(--wp--preset--color--ink-deep);
	color: rgba(255, 255, 255, 0.78);
}

.gl-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.gl-footer a:hover {
	color: var(--wp--preset--color--white);
}

.gl-footer .gl-footer__legal {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.76rem;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.45);
}

.gl-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.78);
	background: rgba(255, 255, 255, 0.08);
	transition: color 0.2s ease, background 0.2s ease;
}

.gl-social:hover {
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--marker);
}

.gl-social svg {
	display: block;
}

/* ------------------------------------------------------------------
   14. Motion
------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
	.gl-rise {
		opacity: 0;
		transform: translateY(14px);
		animation: gl-rise 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
	}

	.gl-rise-1 { animation-delay: 0.05s; }
	.gl-rise-2 { animation-delay: 0.14s; }
	.gl-rise-3 { animation-delay: 0.23s; }
	.gl-rise-4 { animation-delay: 0.32s; }

	@keyframes gl-rise {
		to {
			opacity: 1;
			transform: none;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.gl-mark--sweep {
		background-size: 100% 100%;
		animation: none;
	}

	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.gl-form button[type="submit"]:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------
   15. Responsive
------------------------------------------------------------------ */

@media (max-width: 781px) {
	.gl-stats .wp-block-column {
		flex-basis: 48% !important;
	}

	.gl-step {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}

	.gl-article {
		padding: 1.2rem 1.1rem 1rem;
	}

	.gl-entry {
		grid-template-columns: 1.7rem 1fr;
	}

	.gl-entry__note {
		grid-column: 2;
	}
}
