@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
	--ink: #18201d;
	--muted: #68736d;
	--line: #d8dfda;
	--paper: #f5f6f1;
	--white: #ffffff;
	--accent: #d7f26b;
	--accent-dark: #657818;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	background: var(--paper);
	font-family: 'Manrope', sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px clamp(24px, 7vw, 100px);
	border-bottom: 1px solid var(--line);
}

.brand { display: block; width: 92px; }
.brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.page-kicker, .eyebrow { margin: 0; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.projects-page { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 76px 0 100px; }
.intro { max-width: 650px; }
.intro h1 { min-height: 1.2em; margin: 12px 0 16px; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1.03; letter-spacing: -.04em; }
.intro h1::after { content: '|'; color: var(--accent-dark); animation: blink .75s step-end infinite; }
.intro-copy { margin: 0; color: var(--muted); font-size: 1.05rem; }

.project-tools { display: grid; grid-template-columns: minmax(180px, 1fr) 190px auto; gap: 12px; margin: 64px 0 38px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); padding: 13px 15px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px #d7f26b66; }
.primary-button, .secondary-button { border: 0; border-radius: 4px; padding: 0 20px; font-weight: 700; }
.primary-button { background: var(--ink); color: var(--white); }
.primary-button:hover { background: #34423b; }
.secondary-button { border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 1.2rem; }
#project-count { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .75rem; }
.project-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 18px; }
.project-card { display: flex; min-height: 190px; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); animation: rise .35s ease both; cursor: pointer; }
.project-card:hover, .project-card:focus-visible { border-color: var(--accent-dark); outline: none; box-shadow: 0 5px 0 var(--accent); }
.project-card h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.project-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.card-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .7rem; }
.status { color: var(--accent-dark); }
.delete-button { border: 0; background: transparent; color: var(--muted); font-size: .75rem; }
.delete-button:hover { color: #a13b32; }
.empty-state { padding: 42px 0; color: var(--muted); text-align: center; }

dialog { width: min(460px, calc(100% - 32px)); border: 0; border-radius: 6px; padding: 0; color: var(--ink); box-shadow: 0 20px 70px #18201d33; }
dialog::backdrop { background: #18201d88; }
#project-form { padding: 30px; }
.dialog-heading { display: flex; justify-content: space-between; margin-bottom: 28px; }
.dialog-heading h2 { margin: 8px 0 0; font-size: 1.5rem; }
.icon-button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; }
#project-form label { display: block; margin: 16px 0 7px; font-size: .8rem; font-weight: 700; }
#project-form label span { color: var(--muted); font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.dialog-actions button { min-height: 42px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
	.projects-page { padding-top: 48px; }
	.project-tools { grid-template-columns: 1fr 1fr; margin-top: 42px; }
	.project-tools .primary-button { min-height: 46px; grid-column: 1 / -1; }
	.project-list { grid-template-columns: 1fr; }
}
