:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e7eb;
  --radius: 8px;
  --max-w: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ── NAV ──────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--accent);
}

/* ── CONTAINER ────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SECTIONS ─────────────────────────────────── */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--surface);
}

/* ── BIO ──────────────────────────────────────── */
#bio {
  text-align: center;
  padding: 7rem 0 6rem;
}

#bio h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.bio-text {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.bio-text a {
  color: var(--accent);
  text-decoration: none;
}

.bio-text a:hover {
  text-decoration: underline;
}

.links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.link-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── SECTION HEADINGS ─────────────────────────── */
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.25rem;
}

/* ── TOOL CARDS ───────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  font-size: 0.975rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent);
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

/* ── BLOG POSTS ───────────────────────────────── */
.post-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-date {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.post-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.post-read-more:hover {
  text-decoration: underline;
}

/* ── THE WALL ─────────────────────────────────── */
#wall {
  background: #eef2ff;
}

#wall-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

#wall-form input,
#wall-form textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

#wall-form input:focus,
#wall-form textarea:focus {
  border-color: var(--accent);
}

#wall-form textarea {
  resize: vertical;
  min-height: 80px;
}

.sticker-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

#sticker-options {
  display: flex;
  gap: 0.25rem;
}

.sticker-btn {
  font-size: 1.2rem;
  line-height: 1;
  background: var(--surface);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  transition: border-color 0.15s, transform 0.1s;
}

.sticker-btn:hover {
  border-color: var(--accent);
  transform: scale(1.2);
}

#wall-form button[type="submit"] {
  align-self: flex-start;
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

#wall-form button[type="submit"]:hover {
  background: var(--accent-hover);
}

#wall-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.75rem;
}

.wall-card {
  padding: 1rem 1rem 0.75rem;
  border-radius: var(--radius);
  word-break: break-word;
}

.wall-content {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.wall-meta {
  font-size: 0.7rem;
  opacity: 0.55;
}

.wall-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.825rem;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 600px) {
  #bio h1 {
    font-size: 2rem;
  }

  nav {
    padding: 0 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  #wall-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  #wall-form {
    max-width: 100%;
  }
}
