:root {
  --bg: #FCFAF5;
  --paper: #FFFFFF;
  --fg: #433221;
  --muted: #8E7C69;
  --rule: #F1E3D2;
  --accent: #D49A15; /* Honey Gold */
  --accent-soft: #FFF4DD;
  --accent-red: #C62828; /* Lucky Red */
  --accent-red-soft: #FFEBEE;
  --shadow: 0 6px 12px rgba(67, 50, 33, 0.04), 0 16px 40px rgba(67, 50, 33, 0.06);
  --sans: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

/* Dark mode. Auto-switches via system appearance unless pinned via
   `color_scheme: light|dark` in config.yml. */
@media (prefers-color-scheme: dark) {
  :root:not(.scheme-light) {
    --bg: #1B1611;
    --paper: #272018;
    --fg: #F4EADF;
    --muted: #BFAFA0;
    --rule: #3E3225;
    --accent: #F2AF29; /* Honey Gold in dark mode */
    --accent-soft: #3D2E1C;
    --accent-red: #EF5350;
    --accent-red-soft: #3D1B1B;
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}
:root.scheme-dark {
  --bg: #1B1611;
  --paper: #272018;
  --fg: #F4EADF;
  --muted: #BFAFA0;
  --rule: #3E3225;
  --accent: #F2AF29; /* Honey Gold in dark mode */
  --accent-soft: #3D2E1C;
  --accent-red: #EF5350;
  --accent-red-soft: #3D1B1B;
  --shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 16px 40px rgba(0, 0, 0, 0.35);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 460px; }

.profile-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.profile-pic-wrap {
  display: inline-block;
  padding: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
  margin-bottom: 16px;
  position: relative;
}

.profile-pic-wrap::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  top: 6px;
  right: 0;
  border: 3px solid var(--paper);
}

.profile-pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.name::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2px;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 4px;
  z-index: -1;
}

.description {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  text-wrap: pretty;
  max-width: 32ch;
  margin: 8px auto 0;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 4px 0 rgba(45, 36, 25, 0.04), 0 14px 32px rgba(45, 36, 25, 0.10);
  background: var(--accent-soft);
  outline: none;
}

.link-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.link-icon i { font-size: 15px; }

.link-button:hover .link-icon,
.link-button:focus-visible .link-icon {
  background: var(--accent);
  color: var(--paper);
}

.link-text { flex: 1; }
.link-button-text { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }

.button-container {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
}

.button-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.icon-button i { font-size: 17px; }

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-2px) rotate(-4deg);
  outline: none;
}

.footer {
  margin-top: 28px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.footer a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px dotted var(--accent);
}

.copyright { margin-top: 8px; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* "Latest" link variant — soft pill on warm background */
.link-button.link-latest {
  align-items: flex-start;
  background: var(--accent-soft);
}
.link-latest-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  vertical-align: 1px;
}
.link-latest .link-text {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* Custom Link Section Headers */
.link-section-header {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  padding: 24px 8px 8px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px dashed var(--rule);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-section-header .section-icon {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}

/* Custom Red Link Button Accent (e.g. for 165 Anti-Fraud) */
.link-button.link-red {
  border: 2px solid var(--accent-red-soft);
}

.link-button.link-red .link-icon {
  background: var(--accent-red-soft);
  color: var(--accent-red);
}

.link-button.link-red:hover,
.link-button.link-red:focus-visible {
  background: var(--accent-red-soft);
  border-color: var(--accent-red);
}

.link-button.link-red:hover .link-icon,
.link-button.link-red:focus-visible .link-icon {
  background: var(--accent-red);
  color: var(--paper);
}

/* Honey Gold themed avatar border & title line */
.profile-pic-wrap {
  border: 3px solid var(--accent);
  padding: 4px;
}

.profile-pic-wrap::after {
  background: var(--accent-red);
}

