:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1c1c1a;
  --text-muted: #63625c;
  --border: #e4e2da;
  --accent: #a3503a;
  --maxw: 960px;
}

* { box-sizing: border-box; }

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

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

header.site {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 8px;
}
header.site .wrap { display: flex; justify-content: space-between; align-items: center; }
header.site a.name { font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
header.site nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}
header.site nav a:hover { color: var(--accent); }

.hero { padding: 64px 0 40px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}
.hero h1 { font-size: 40px; margin: 0 0 14px; line-height: 1.15; }
.hero p.lede { font-size: 17px; color: var(--text-muted); max-width: 620px; margin: 0; }

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 56px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); }
.card img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.card .card-body { padding: 16px 18px 20px; }
.card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; }
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; font-size: 14px; color: var(--text-muted); }

.card.placeholder { opacity: 0.55; border-style: dashed; }
.card.placeholder .card-body { padding: 20px; }

.case-hero { padding: 48px 0 8px; }
.case-hero .eyebrow { color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.case-hero h1 { font-size: 32px; margin: 0 0 16px; }
.case-hero .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.case-hero .live-link { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--accent); text-decoration: none; border: 1px solid var(--accent); padding: 8px 16px; border-radius: 6px; }
.case-hero .live-link:hover { background: var(--accent); color: #fff; }

article.case p { font-size: 16px; color: var(--text); max-width: 680px; }
article.case h2 { font-size: 20px; margin: 40px 0 12px; }
article.case ul { padding-left: 20px; }
article.case li { margin-bottom: 8px; font-size: 15px; }
.tools { font-size: 14px; color: var(--text-muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 24px 0 8px;
}
.gallery img { width: 100%; border-radius: 6px; display: block; }

.gallery.ig-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 620px;
}
.gallery.ig-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}
@media (max-width: 500px) {
  .gallery.ig-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
}

.disclaimer { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 40px; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-muted);
}
footer.site a { color: var(--accent); }

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .case-hero h1 { font-size: 26px; }
}
