:root {
  --honey: #f5b301;
  --ink: #1a1a1a;
  --bg: #fffdf5;
  --card: #ffffff;
  --line: #eadfae;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.bar {
  background: var(--honey);
  border-bottom: 3px solid var(--ink);
  padding: 12px 20px;
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; }

main { max-width: 960px; margin: 0 auto; padding: 24px 20px 64px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 8px; }
.hero p { font-size: 1.15rem; opacity: 0.8; margin: 0 auto; max-width: 38ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.card img { aspect-ratio: 1.4 / 1; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.card-title { padding: 10px 12px; font-weight: 700; }

.meme-page h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 8px 0 4px; }
.meme-page .desc { opacity: 0.8; margin: 0 0 18px; }
.meme-page figure {
  margin: 0 0 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}
.ph-note { font-style: italic; opacity: 0.6; margin: -8px 0 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.btn {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.fb { background: #1877f2; color: #fff; }
.btn.copy.ok { background: #4caf50; color: #fff; }
.back { margin-top: 8px; }
