:root {
  --ink: #17181c;
  --paper: #faf9f6;
  --accent: #d6572f;
  --muted: #6b6b6f;
  --line: #e6e4de;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.main-nav a {
  margin-left: 28px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); }

/* Hero */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 760px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Section titles */
.section {
  padding: 72px 0;
}
.section-title {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 600px;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: block;
}
.project-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ece9e2, #d9d4c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.project-body { padding: 20px; }
.project-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.project-title {
  font-size: 1.15rem;
  margin: 8px 0 6px;
}
.project-summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Forms */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.alert-success { background: #e7f4ea; color: #1e6b34; }
.alert-error { background: #fbe7e5; color: #a3311c; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Admin */
.admin-body { background: #f2f1ec; }
.admin-shell { max-width: 960px; margin: 60px auto; padding: 0 24px; }
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--line); font-size: 0.75rem; }

@media (max-width: 640px) {
  .main-nav a { margin-left: 16px; font-size: 0.85rem; }
  .hero { padding: 60px 0 50px; }
}
