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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3e;
  --text: #e2e4ef;
  --muted: #7f84a8;
  --accent: #5b8dee;
  --accent2: #9b77e8;
  --green: #4caf7d;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 4rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Social icons strip */
.socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 4px;
  padding-bottom: 2px;
}

.socials::-webkit-scrollbar { display: none; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}

.social-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: var(--muted);
  transition: fill 0.15s;
}

.social-link:hover svg {
  fill: var(--text);
}

/* Sections */
.section {
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.6rem;
  padding-left: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color 0.15s;
}
.section-title::-webkit-details-marker { display: none; }
.section-title:hover { color: var(--text); }
.chevron { flex-shrink: 0; transition: transform 0.2s ease; }
details.section[open] > .section-title .chevron { transform: rotate(180deg); }
details.section > .section-title { margin-bottom: 0; }
details.section[open] > .section-title { margin-bottom: 0.6rem; }

/* Cards */
.card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: border-color 0.15s, transform 0.1s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.card-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg);
}

.card-logo-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-logo-si {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
  vertical-align: -2px;
  margin-right: 4px;
  flex-shrink: 0;
}

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
  font-family: "SF Mono", "Fira Code", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Fingerprint display */
.fingerprint-card {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.fingerprint-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.fingerprint {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  color: var(--accent2);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  line-height: 1.6;
}
.fingerprint::-webkit-scrollbar { display: none; }

.fingerprint-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.btn-small {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  transition: border-color 0.15s;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .fingerprint { font-size: 0.65rem; }
}

@media (max-width: 400px) {
  body { padding-left: 0.5rem; padding-right: 0.5rem; }
  .card-title { font-size: 0.82rem; }
  .card-sub   { font-size: 0.68rem; }
  .fingerprint-card { padding: 0.7rem 0.75rem; }
  .card { gap: 0.65rem; padding: 0.75rem 0.85rem; }
  .section { max-width: 100%; }
}

@media (max-width: 340px) {
  .fingerprint { font-size: 0.58rem; }
}

main { display: contents; }

footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Previously inline styles */
.tag-wkd {
  color: var(--green);
  font-weight: 600;
}

.card-logo-si svg {
  color: var(--muted);
}

.card-logo-si .icon-fill {
  fill: var(--muted);
  width: 18px;
  height: 18px;
}

.fingerprint + .fingerprint {
  margin-top: 0.3rem;
}

#wcag-badge {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
