:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --border: #2a2a2a;
  --accent: #fd9b12;
  --accent-dim: #7a4d09;
  --text: #e8e8e8;
  --muted: #888;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* ── index ── */

header {
  margin-bottom: 72px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.profile {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.profile-text .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 span { color: var(--accent); }

.site-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
}

.bio {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.bio-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.bio-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 40px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

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

section {
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ext-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.ext-card:hover { border-color: var(--accent-dim); }

.ext-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.ext-icon img { width: 100%; height: 100%; display: block; }

.ext-info h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ext-info p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.ext-link:hover { opacity: 0.7; }

.kofi-desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

/* ── extension details ── */

.ext-card--hero {
  flex-direction: column;
  gap: 0;
}

.ext-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ext-details {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ext-detail-section {
  margin-bottom: 28px;
}

.ext-detail-section:last-child {
  margin-bottom: 0;
}

.ext-detail-section h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

.changelog {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.changelog-entry {
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.changelog-version {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.changelog-date {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.changelog-entry ul {
  list-style: none;
  padding: 0;
}

.changelog-entry li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.changelog-entry li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

/* ── common ── */

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .profile { flex-direction: column; align-items: flex-start; }
  .ext-card { flex-direction: column; }
}