:root.theme-paper,
.theme-paper {
  --bg-dark: #ece7df;
  --bg-mid: #f5f2eb;
  --bg-light: #f7f5ef;
  --card-bg: #ffffff;
  --card-border: #ded8ce;
  --card-border-strong: #ddd6c9;
  --text-primary: #1b1b1b;
  --text-muted: #6b6f76;
  --text-subtle: #6b6f76;
  --button-bg: #ffffff;
  --button-border: #ded8ce;
  --button-hover-bg: #f5f2eb;
  --button-active-bg: #ece7df;
  --shadow-soft: rgba(15, 10, 5, 0.08);
  --shadow-strong: rgba(15, 10, 5, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --accent-ink: #245c96;
  --accent-soft: #e6f0fb;
  --divider-paper: rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

.theme-paper body {
  background-color: var(--bg-light);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 40%, rgba(255, 255, 255, 0) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.012) 0px,
      rgba(0, 0, 0, 0.012) 1px,
      transparent 1px,
      transparent 8px
    );
  background-attachment: fixed;
}

.theme-paper .sb-card-shell {
  border-radius: 2px;
  filter: drop-shadow(0 10px 28px rgba(15, 10, 5, 0.13)) drop-shadow(0 2px 4px rgba(15, 10, 5, 0.065));
}

.theme-paper .sb-card {
  position: relative;
  border-radius: 2px;
  padding: 36px 28px 28px;
  background: var(--card-bg);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 1px);
  border: 1px solid var(--card-border);
  overflow: visible;
}

/* Folded corner ON: clip the card corner */
.theme-paper .sb-card.paper-folded {
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.theme-paper .sb-avatar {
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-paper .sb-name {
  font-weight: 700;
  line-height: 1.05;
}

.theme-paper .sb-bio {
  line-height: 1.6;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.theme-paper .sb-links {
  gap: 14px;
}

.theme-paper .sb-button {
  background: var(--button-bg);
  border: 1px solid var(--button-border);
  box-shadow: none;
  border-radius: 4px;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-bottom 0.18s ease, transform 0.15s ease;
}

.theme-paper .sb-button:hover {
  background: var(--button-hover-bg);
  box-shadow: 0 2px 6px rgba(15, 10, 5, 0.06);
  border-bottom: 1px solid var(--accent-ink);
}

.theme-paper .sb-button:active {
  background: var(--button-active-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  transform: translateY(1px);
}

.theme-paper .sb-button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

.theme-paper .sb-footer {
  border-top: 1px solid var(--divider-paper);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.theme-paper .sb-footer a {
  color: var(--accent-ink) !important;
  text-decoration: none !important;
  border-bottom: 1px dotted var(--accent-ink);
}

.theme-paper .sb-footer a:hover {
  border-bottom-style: solid;
}

/* Fold triangle */
.theme-paper .sb-card.paper-folded::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent #ffffff var(--card-border) transparent;
  filter: drop-shadow(-1px 1px 0 var(--card-border)) drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.08));
  pointer-events: none;
  z-index: 1;
}