/* ============================================================
   GloverGadgets — blueprint / schematic (light, daylight)
   Aviation · Marine · Space instrumentation as technical drawing

   Palette
   --gg-paper   #f4f1e8  warm drafting paper
   --gg-paper2  #ece8da  recessed panel
   --gg-ink     #1b2733  near-black blue ink (text, primary lines)
   --gg-slate   #3a5a78  schematic blue (structure lines)
   --gg-red     #c0492b  annotation red (the one accent)
   --gg-grid    #8a9bab  faint graph rules
   ============================================================ */

:root {
	--gg-paper: #f4f1e8;
	--gg-paper2: #ece8da;
	--gg-ink: #1b2733;
	--gg-slate: #3a5a78;
	--gg-red: #c0492b;
	--gg-grid: #8a9bab;

	--gg-display: "Oswald", "Bahnschrift", "Arial Narrow", sans-serif;
	--gg-body: "Inter", "Helvetica Neue", Arial, sans-serif;
	--gg-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

body {
	background-color: var(--gg-paper);
	/* faint drafting grid */
	background-image:
		linear-gradient(rgba(138, 155, 171, 0.18) 1px, transparent 1px),
		linear-gradient(90deg, rgba(138, 155, 171, 0.18) 1px, transparent 1px);
	background-size: 24px 24px;
	color: var(--gg-ink);
	font-family: var(--gg-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--gg-slate); text-underline-offset: 3px; }
a:hover { color: var(--gg-red); }

h1, h2, h3, h4 {
	font-family: var(--gg-display);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gg-ink);
}

/* ---------- Drafting-table hero ---------- */
.gg-plot {
	position: relative;
	max-width: 1000px;
	margin: 3rem auto;
	padding: 2.5rem 2rem 2.75rem;
	background: var(--gg-paper);
	border: 1.5px solid var(--gg-ink);
	box-shadow: 0 2px 0 var(--gg-ink), 0 24px 50px -34px rgba(27, 39, 51, 0.5);
}
/* corner registration ticks */
.gg-plot::before,
.gg-plot::after {
	content: "";
	position: absolute;
	width: 16px; height: 16px;
	border: 1.5px solid var(--gg-slate);
}
.gg-plot::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.gg-plot::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.gg-plot__eyebrow {
	font-family: var(--gg-mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gg-slate);
	margin: 0 0 0.75rem;
}
.gg-plot__title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.02;
	margin: 0 0 1rem;
}
.gg-plot__sub {
	font-family: var(--gg-mono);
	font-size: 13px;
	color: var(--gg-ink);
	margin: 0;
}

/* three-domain callouts */
.gg-domains {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--gg-grid);
}
.gg-domain {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	font-family: var(--gg-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
}
.gg-domain__glyph { font-size: 18px; color: var(--gg-red); }
.gg-domain__coord { color: var(--gg-slate); }

/* ---------- Gadget grid ---------- */
.gg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.5rem;
	max-width: 1200px;
	margin: 2.5rem auto;
	padding: 0 1rem;
}

/* schematic spec-sheet card */
.gg-card {
	position: relative;
	background: var(--gg-paper);
	border: 1.5px solid var(--gg-ink);
	display: flex;
	flex-direction: column;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.gg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -26px rgba(27, 39, 51, 0.6);
}
/* registration ticks on cards */
.gg-card::before,
.gg-card::after {
	content: "";
	position: absolute;
	width: 10px; height: 10px;
	border: 1.5px solid var(--gg-slate);
	pointer-events: none;
}
.gg-card::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.gg-card::after { top: 6px; right: 6px; border-left: none; border-bottom: none; }

.gg-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--gg-paper2);
	border-bottom: 1px solid var(--gg-grid);
}
.gg-card__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.02); }

.gg-card__body { padding: 1.1rem 1.15rem 0.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }

.gg-card__title { font-size: 1.15rem; margin: 0; line-height: 1.1; }
.gg-card__title a { color: var(--gg-ink); text-decoration: none; }
.gg-card__title a:hover { color: var(--gg-red); }

.gg-card__excerpt { font-size: 0.9rem; color: #404b56; margin: 0; flex: 1; }

.gg-btn {
	align-self: flex-start;
	margin: 0.3rem 0 0.9rem;
	padding: 0.45rem 1rem;
	border: 1.5px solid var(--gg-ink);
	background: var(--gg-paper);
	color: var(--gg-ink);
	text-decoration: none;
	font-family: var(--gg-display);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background 0.14s ease, color 0.14s ease;
}
.gg-btn:hover { background: var(--gg-ink); color: var(--gg-paper); }

/* title block — like a blueprint's drawing record strip */
.gg-card__titleblock {
	display: grid;
	grid-template-columns: 1fr auto auto;
	border-top: 1.5px solid var(--gg-ink);
	font-family: var(--gg-mono);
	font-size: 11px;
	letter-spacing: 0.03em;
	color: var(--gg-ink);
}
.gg-card__titleblock span {
	padding: 6px 10px;
	border-right: 1px solid var(--gg-grid);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gg-card__titleblock span:last-child { border-right: none; }
.gg-tb-label { color: var(--gg-slate); }
.gg-tb-domain { color: var(--gg-red); }

.gg-empty {
	max-width: 1200px;
	margin: 2.5rem auto;
	padding: 1.5rem;
	border: 1.5px dashed var(--gg-grid);
	color: #404b56;
	font-family: var(--gg-mono);
	font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.gg-plot { margin: 1.5rem 1rem; padding: 1.75rem 1.25rem 2rem; }
	.gg-grid { grid-template-columns: 1fr; }
	.gg-card__titleblock { grid-template-columns: 1fr auto; }
	.gg-card__titleblock span:nth-child(2) { border-right: none; }
}

/* ---------- Accessibility ---------- */
.gg-btn:focus-visible,
.gg-card__title a:focus-visible {
	outline: 2px solid var(--gg-red);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.gg-card { transition: none; }
}
