/* David Cabatingan — site styles */

:root {
	--bg: #fdfdfc;
	--bg-alt: #f4f3f0;
	--text: #2a2a28;
	--text-muted: #6b6b66;
	--accent: #b1502f;
	--border: #e5e3dd;
	--max-width: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* Header / nav */

header.site-header {
	border-bottom: 1px solid var(--border);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 22px;
	padding-bottom: 22px;
	flex-wrap: wrap;
	gap: 12px;
}

.site-header .name {
	font-weight: 600;
	font-size: 1.05em;
	color: var(--text);
}

.site-header .name:hover { text-decoration: none; color: var(--accent); }

.site-header nav ul {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
}

.site-header nav a {
	color: var(--text-muted);
	font-size: 0.95em;
}

.site-header nav a:hover,
.site-header nav a.active {
	color: var(--accent);
	text-decoration: none;
}

/* Main content */

main {
	padding: 56px 0 64px;
}

h1 {
	font-size: 1.9em;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}

h2 {
	font-size: 1.3em;
	margin: 2.2em 0 0.6em;
}

.tagline {
	color: var(--text-muted);
	font-size: 1.1em;
	margin: 0 0 2em;
}

p { margin: 0 0 1em; }

.muted { color: var(--text-muted); }

/* Hero (home page) */

.hero { padding-bottom: 8px; }

.hero-links {
	display: flex;
	gap: 18px;
	margin-top: 1.6em;
	flex-wrap: wrap;
}

.hero-links a { font-size: 0.95em; }

/* Cards / grid (projects) */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 1.5em;
}

.card {
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 20px 22px;
	background: var(--bg-alt);
}

.card.placeholder {
	background: transparent;
	border-style: dashed;
	color: var(--text-muted);
}

.card h3 {
	margin: 0 0 6px;
	font-size: 1.08em;
}

.card p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.96em; }

.card .links { display: flex; gap: 14px; font-size: 0.92em; }

.card-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 12px;
	display: block;
	background: var(--border);
}

/* Photography grid */

.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 1.5em;
}

.photo-slot {
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	border: 1px dashed var(--border);
	background: linear-gradient(135deg, var(--bg-alt), #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 0.85em;
}

/* Contact list */

.contact-list {
	list-style: none;
	padding: 0;
	margin: 1em 0 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Skills list */

.skills {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px 28px;
	margin-top: 1.2em;
}

.skills h3 {
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	margin: 0 0 6px;
}

.skills p { margin: 0; }

/* Footer */

footer.site-footer {
	border-top: 1px solid var(--border);
	padding: 24px 0 40px;
	color: var(--text-muted);
	font-size: 0.88em;
}

/* Buttons */

.button {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--accent);
	border-radius: 6px;
	color: var(--accent);
	font-size: 0.92em;
}

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

@media (max-width: 480px) {
	body { font-size: 16px; }
	.site-header .container { flex-direction: column; align-items: flex-start; }
}
