/*
Theme Name: DILLIGAF Fast
Theme URI: https://dilligaf.fyi/
Author: 1BIGRIG Ltd
Author URI: https://dilligaf.fyi/
Description: A small, fast WordPress theme for DILLIGAF.fyi apps, plugins, and practical software notes.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dilligaf-fast
*/

:root {
	--bg: #f7f8fb;
	--surface: #ffffff;
	--surface-soft: #eef2f7;
	--ink: #111827;
	--muted: #64748b;
	--line: #d9e0ea;
	--brand: #172033;
	--brand-2: #d8b46a;
	--accent: #2f6df6;
	--accent-soft: #e8efff;
	--shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
	--wrap: min(1120px, calc(100vw - 32px));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: linear-gradient(180deg, #ffffff 0, var(--bg) 340px);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--brand);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(217, 224, 234, 0.82);
}

.site-header__inner,
.wrap {
	width: var(--wrap);
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 800;
	letter-spacing: 0;
}

.brand__mark {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--surface-soft);
}

.brand__custom-logo {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
}

.brand__name {
	font-size: 18px;
	line-height: 1.1;
}

.brand__tagline {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.menu,
.menu ul {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu a {
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

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

.nav-toggle {
	display: none;
	position: relative;
}

.nav-toggle summary {
	cursor: pointer;
	list-style: none;
	font-weight: 800;
}

.nav-toggle summary::-webkit-details-marker {
	display: none;
}

.hero {
	padding: clamp(48px, 8vw, 96px) 0 42px;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
	align-items: center;
	gap: clamp(28px, 6vw, 76px);
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.08;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(48px, 7vw, 86px);
}

h2 {
	font-size: clamp(31px, 4vw, 48px);
}

h3 {
	font-size: 22px;
}

.lede {
	max-width: 660px;
	margin: 24px 0 0;
	color: var(--muted);
	font-size: clamp(19px, 2vw, 23px);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid var(--brand);
	border-radius: 8px;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.button:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.button--ghost {
	background: #ffffff;
	border-color: var(--line);
	color: var(--brand);
}

.button--ghost:hover {
	background: var(--accent-soft);
	border-color: #b9c9ff;
	color: var(--accent);
}

.device {
	position: relative;
	max-width: 390px;
	margin-inline: auto;
	padding: 18px;
	border: 1px solid #d6deea;
	border-radius: 34px;
	background: #111827;
	box-shadow: var(--shadow);
}

.device__screen {
	overflow: hidden;
	border-radius: 24px;
	background: #f4f7fb;
}

.device__bar {
	display: flex;
	justify-content: space-between;
	padding: 16px;
	color: #fff;
	background: var(--brand);
	font-size: 12px;
	font-weight: 800;
}

.device__apps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 22px;
}

.app-dot {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 18px;
	background: var(--surface);
	color: var(--brand);
	font-size: 20px;
	font-weight: 900;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.app-dot:nth-child(2n) {
	color: var(--accent);
}

.app-dot:nth-child(3n) {
	color: #9a6a19;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: 36px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--line);
}

.stat {
	padding: 22px;
	background: var(--surface);
}

.stat strong {
	display: block;
	font-size: 28px;
	line-height: 1;
}

.stat span {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
}

.section {
	padding: clamp(44px, 8vw, 88px) 0;
	border-top: 1px solid var(--line);
}

.section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.section__head p {
	max-width: 560px;
	margin: 0;
	color: var(--muted);
}

.app-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.catalog-section {
	background: #ffffff;
	border-top: 0;
}

.catalog-section__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
	align-items: end;
	gap: clamp(28px, 7vw, 96px);
	margin-bottom: 34px;
}

.catalog-section__head h1 {
	max-width: 900px;
	font-size: clamp(58px, 7vw, 112px);
	letter-spacing: 0;
	line-height: 0.93;
}

.catalog-section__head p:not(.catalog-pill) {
	max-width: 620px;
	margin: 0 0 18px;
	color: #5f636d;
	font-size: clamp(20px, 2vw, 27px);
	font-weight: 700;
	line-height: 1.45;
}

.catalog-pill {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	margin: 0 0 26px;
	padding: 11px 18px;
	border-radius: 999px;
	background: #101010;
	color: #fff;
	font-size: 13px;
	font-weight: 950;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.catalog-pill span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ffffff;
}

.catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 28px);
}

.app-card,
.post-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border: 1px solid var(--line);
	border-radius: 30px;
	background: var(--surface);
	box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.post-card {
	padding: 22px;
	border-radius: 8px;
}

.app-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 24px;
	background: #111111;
}

.app-card__icon {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 22px;
	object-fit: cover;
	background: var(--surface);
	color: var(--brand);
	font-size: clamp(44px, 6vw, 82px);
	font-weight: 900;
}

.app-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(22px, 2.4vw, 34px);
}

.app-card__body h3 {
	font-size: clamp(24px, 2.2vw, 34px);
	font-weight: 950;
	line-height: 1;
}

.app-card__meta,
.post-meta {
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.app-card__meta {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 22px;
	padding: 7px 12px;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	background: #f4f4f5;
	color: #6f737c;
	font-size: 12px;
	font-weight: 950;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.app-card p,
.post-card p,
.entry-content {
	color: var(--muted);
}

.app-card p {
	margin: 18px 0 0;
	font-size: clamp(17px, 1.45vw, 21px);
	font-weight: 650;
	line-height: 1.45;
}

.app-card__link {
	margin-top: auto;
	padding-top: 34px;
	color: #070707;
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
}

.app-card__link:hover {
	color: var(--accent);
}

.feature-band {
	background: var(--brand);
	color: #fff;
}

.feature-band .section {
	border: 0;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.feature {
	padding-right: 18px;
}

.feature p {
	color: var(--muted);
}

.feature-band .feature p {
	color: rgba(255, 255, 255, 0.78);
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.entry {
	width: var(--wrap);
	margin: 0 auto;
	padding: clamp(44px, 8vw, 88px) 0;
}

.entry-header {
	margin-bottom: 28px;
}

.entry-title a {
	color: var(--ink);
	text-decoration: none;
}

.entry-content > * {
	margin-top: 0;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6 {
	max-width: 780px;
}

.entry-content > .alignwide,
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-image {
	max-width: 100%;
}

.entry-content img {
	border-radius: 8px;
}

.support-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.support-strip p {
	max-width: 620px;
	color: var(--muted);
}

.dilligaf-form {
	display: grid;
	gap: 16px;
	margin-top: 30px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.dilligaf-form h2 {
	font-size: 28px;
}

.dilligaf-form label {
	display: grid;
	gap: 7px;
	color: var(--ink);
	font-weight: 800;
}

.dilligaf-form input,
.dilligaf-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}

.dilligaf-form textarea {
	resize: vertical;
}

.dilligaf-form input:focus,
.dilligaf-form textarea:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(47, 109, 246, 0.14);
}

.dilligaf-hp {
	position: absolute;
	left: -9999px;
}

.form-notice {
	padding: 12px 14px;
	border-radius: 8px;
	font-weight: 800;
}

.form-notice--success {
	background: #edf7f1;
	color: #14532d;
}

.form-notice--error {
	background: #fff1f2;
	color: #9f1239;
}

.app-entry__header {
	display: flex;
	align-items: center;
	gap: 18px;
}

.app-entry__icon {
	width: 86px;
	height: 86px;
	border-radius: 18px;
	object-fit: cover;
}

.site-footer {
	padding: 40px 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: var(--wrap);
	margin-inline: auto;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

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

	.nav-toggle {
		display: block;
	}

	.nav-toggle .menu {
		position: absolute;
		right: 0;
		top: calc(100% + 16px);
		display: grid;
		min-width: 220px;
		padding: 16px;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: var(--surface);
		box-shadow: var(--shadow);
	}

	.hero__grid,
	.feature-grid,
	.support-strip {
		grid-template-columns: 1fr;
	}

	.support-strip {
		display: grid;
	}

	.device {
		max-width: 330px;
	}

	.app-grid,
	.catalog-grid,
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.catalog-section__head {
		grid-template-columns: 1fr;
	}
}

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

	.site-header__inner {
		min-height: 66px;
	}

	.hero {
		padding-top: 34px;
	}

	.stats,
	.app-grid,
	.catalog-grid,
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.catalog-section__head h1 {
		font-size: clamp(48px, 15vw, 72px);
	}

	.section__head,
	.app-entry__header,
	.site-footer__inner {
		display: grid;
	}

	.brand__tagline {
		display: none;
	}
}
