:root {
  --bg-soft: #f8f6ff;
  --bg-pink: #ffeef8;
  --bg-purple: #efe7ff;
  --ink: #2f2842;
  --ink-soft: #5f5576;
  --card: rgba(255, 255, 255, 0.92);
  --line: #e6d9f5;
  --accent: #ac5ddf;
  --accent-strong: #8d46c2;
  --pink: #f57db4;
  --mint: #8dd9cc;
  --shadow: 0 8px 22px rgba(93, 55, 120, 0.13);
  --radius: 14px;
  --theme-bg-a: #fff8fc;
  --theme-bg-b: #efe7ff;
}

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

body {
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 14px;
  background:
    radial-gradient(circle at 12% 12%, #fff8fc 0, #fff8fc 20%, transparent 21%),
    radial-gradient(circle at 88% 15%, #f3ebff 0, #f3ebff 20%, transparent 21%),
    linear-gradient(145deg, var(--bg-soft), var(--bg-pink), var(--bg-purple));
  min-height: 100vh;
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  border: 0; padding: 0; white-space: nowrap;
  clip-path: inset(50%); clip: rect(0 0 0 0); overflow: hidden;
}

/* ── Shared buttons ── */
.pill-btn {
  border: none; border-radius: 999px; padding: 0.6rem 1rem;
  background: linear-gradient(140deg, var(--pink), var(--accent));
  color: #fff; cursor: pointer; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 0.4rem;
}
.pill-btn:hover { transform: translateY(-1px); }
.pill-btn.secondary {
  background: #fff; color: var(--accent-strong); border: 1px solid var(--line);
}

/* Small toolbar button */
.tb, .icon-btn, .tab {
  border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.6rem;
  background: #fff; color: var(--ink-soft); cursor: pointer;
  font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.tb:hover, .icon-btn:hover, .tab:hover { background: #f8f0ff; }
.tb.active, .tab.active {
  background: linear-gradient(140deg, var(--pink), var(--accent));
  color: #fff; border-color: transparent;
}
.tb.danger { color: #c44; border-color: #e8b8b8; }
.icon-btn { font-size: 1rem; padding: 0.3rem 0.5rem; }
.file-label { position: relative; overflow: hidden; }
.file-label input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

/* ── Home page ── */
.home-page {
  background: #f5f3f0;
  color: #1c1c1c;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.home-container {
  width: min(1060px, calc(100vw - 4rem));
  margin: 0 auto;
}

/* Nav */
.home-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #e8e4de;
  margin-bottom: 4rem;
}
.home-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home-brand {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #1c1c1c;
}
.home-nav-links {
  display: flex;
  gap: 2rem;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.home-nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}
.home-nav-links a:hover { color: #1c1c1c; }

/* Intro */
.h-intro {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.h-photo {
  flex-shrink: 0;
}
.h-photo img,
.h-photo-placeholder {
  width: 150px;
  height: auto;
  display: block;
}
.h-photo-placeholder {
  background: #f6f4f0;
}
.h-text h1 {
  font-style: normal;
  font-weight: 500;
  margin: 0 0 1.4rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.h-tagline {
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: #666;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.h-text p {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1c1c1c;
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}
.h-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.h-link:hover { text-decoration: underline; }

/* Work section */
.h-section {
  margin-bottom: 3rem;
}
.h-section-title {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 0.3rem;
}
.h-work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.h-work-item {
  padding: 1.0rem 0;
  border-top: 1px solid #e8e4de;
}
.h-work-item:last-child { border-bottom: 1px solid #e8e4de; }
.h-work-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.05rem;
}
.h-work-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1c1c1c;
  text-decoration: none;
}
a.h-work-name:hover { color: var(--accent); }
.h-work-year {
  font-size: 0.82rem;
  color: #999;
  white-space: nowrap;
}
.h-work-role {
  font-size: 0.82rem;
  color: #999;
  margin: 0 0 0.35rem;
}
.h-work-desc {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}
.h-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

/* Contact */
.h-contact-text {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* Footer */
.home-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid #e8e4de;
  margin-top: 2rem;
  color: #999;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 600px) {
  .h-intro { flex-direction: column; gap: 2rem; }
  .h-photo img, .h-photo-placeholder { width: 100%; height: 220px; }
  .home-header { margin-bottom: 2.5rem; }
}

