*, *::before, *::after
{ box-sizing: border-box; margin: 0; padding: 0; }

:root
{
	--bg-page:			#EEEEEE;
	--bg-card:			#714320;
	--color-encyclo:	#5E4C5A;
	--color-labo:		#A77464;
	--color-tools:		#005E7C;
	--color-misc:		#3F292B;
	--bg-hero:			#ffffff;
	--border:			rgba(0,0,0,0.10);
	--border-hover:		rgba(0,0,0,0.20);
	--text-primary:		#ffffff;
	--text-secondary:	#ffffff;
	--text-muted:		#A9BCD0;
	--radius-card:		12px;
}

body
{
	font-family: 'Poppins', sans-serif;
	background: var(--bg-page);
	color: var(--text-primary);
	min-height: 100vh;
}

/* ── HEADER ── */
header
{
	padding: 1.25rem 2rem;
	background: var(--bg-hero);
	border-bottom: 0.5px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

@font-face
{
	font-family: Typewriter;
	src: url(../fonts/Avojaloin.woff);
}

#marPap
{
	font-family:Typewriter;
	width: 50%;
	font-size:60px;
	line-height:80%;
	color:#000;
}

#marPap p
{
	margin: 0 0 10px 0;
}

#megaBam
{
	width: 20%;
	max-width: 250px;
}

nav ul
{
	display: flex;
	gap: 24px;
	list-style: none;
}
nav a
{
	font-size: 13px;
	color: #000;
	text-decoration: none;
}
nav a:hover
{ color: var(--text-primary); }

/* ── HERO ── */
.hero
{
	padding: 3rem 2rem 2rem;
	background: var(--bg-hero);
	border-bottom: 0.5px solid var(--border);
}
.hero h1
{
	font-family: 'Poppins', sans-serif;
	font-size: 36px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	line-height: 1.2;
	max-width: 520px;
}
.hero p
{
	font-size: 15px;
	color: var(--text-secondary);
	max-width: 480px;
	line-height: 1.7;
}


#chapo
{
	display: flex;
	flex-wrap: wrap;
	margin: 10px 30px 0 30px;
}

#intro
{
	flex: 2 1 500px;
	min-width: 0;
	/* border:solid red 1px; */
	font-size:16px;
	font-weight:300;
	color:#555;
	padding:20px 30px 0 0;
}


#search
{
	/* border:solid green 1px; */
	min-width: 0;
	margin-top:20px;
}

/* Google search */

.gcse-searchbox-only
{
	
}

#___gcse_0 {
  max-width: 450px !important;
}

.gsc-control-cse
{
	padding: 0 !important;
	width: auto !important;
}

form.gsc-search-box
{
	margin: 0 !important;
}

/* ── SECTION LABEL ── */
.section-label
{
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
	padding: 2rem 2rem 1rem;
	font-weight: 500;
}

/* ── GRID ── */
.grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.75rem;
	padding: 2rem;
}

/* ── CARD ── */
.card
{
	background: var(--bg-card);
	border-radius: var(--radius-card);
	border: 0.5px solid var(--border);
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	color: inherit;
}

.encyclo, .encyclo .card-badge
{
	background: var(--color-encyclo);
}

.labo, .labo .card-badge
{
	background: var(--color-labo);
}

.tools, .tools .card-badge
{
	background: var(--color-tools);
}

.misc, .misc .card-badge
{
	background: var(--color-misc);
}

.heading
{
	grid-column: span 2;
}

.heading .card-title
{
	font-size:40px;
	/*
	overflow-wrap: break-word;
	hyphens: manual;
	*/
	line-height: 1.2;
}

.heading .card-desc
{
	font-size:20px;
	line-height: 1.2;
    margin-top: 10px;
}

.card:hover
{
	transform: translateY(-3px);
	border-color: var(--border-hover);
	box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.card-img-wrap
{
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	position: relative;
	background: #FFFFFF;
	background-size: cover;
	background-position: center;
}
	
.card-img
{
	width: 100%;
	aspect-ratio: 4/3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	position: relative;
	overflow: hidden;
}
.card-img i
{
	font-size: 36px;
	opacity: 0.75;
}

.card-body
{
	padding: 0.85rem 1rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.card-tag
{
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 2px;
}
.card-title
{
	font-size: 18px;
	font-weight: 500;
	color: var(--text-primary);
	line-height: 1.35;
}
.card-desc
{
	font-size: 14px;
	color: var(--text-secondary);
	opacity:65%;
	line-height: 1.2;
	font-weight:200;
}
.card-link
{
	font-size: 11px;
	color: #FFFFFF;
	opacity:65%;
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.card-badge
{
	position: absolute;
	top: 0;
	left: 12px;
	z-index:1;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 4px 8px 3px 8px;
	border-radius: 2px;
	font-weight: 600;
	background: #3a2a00;
	color: #FFFFFF;
}

.card:hover .card-link
{ opacity:100%; }


#clock
{
	position: absolute;
	z-index:0;
	left: 50%;
	bottom: 0px;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}
.clockValue
{
	margin:2px;
}

#doubles
{
	position: absolute;
	z-index:0;
	bottom: 0px;
	background-color:#FFF;
}

#doubles div
{
	position: absolute;
	width: 200px;
	height: 150px;
	background-size: cover;
}

#double1
{
	z-index:0;
	left: 50%;
	bottom: -10px;
	-webkit-transform: translateX(-50%);
	transform: rotate(5deg) translateX(-50%);
	background-position: right;
}

#double2
{
	z-index:1;
	bottom: 10px;
	-webkit-transform: translateX(50%);
	transform: rotate(5deg) translateX(50%);
	background-position: left;
}


/* ── FOOTER ── */
footer
{
	text-align:center;
	margin-top: 3rem;
	padding: 1.5rem 2rem;
	border-top: 0.5px solid var(--border);
	font-size: 14px;
	color:#000;
	/*
	color: var(--text-muted);
	display: flex;
	justify-content: space-between;
	align-items: center;
	*/
	background: var(--bg-hero);
}

footer li
{
	list-style:none;
	display:inline-block;
}

footer a
{
	color: #000;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px)
{
	.grid
	{ padding: 0 1rem; }
	
	header, .hero, .section-label, footer
	{ padding-left: 1rem; padding-right: 1rem; }
	
	.hero h1
	{ font-size: 26px; }
	
	nav ul
	{ gap: 14px; }
}