/* Al-folio inspired skin for static HTML site (no Jekyll required) */

/* CSS Variables */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", "Courier New", monospace;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #212529;
  --color-muted: #6c757d;
  --color-border: #e9ecef;
  --color-primary: #0076df;
  --color-primary-dark: #00369f;
  --color-code-bg: rgba(181, 9, 172, 0.05);

  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

  --container-max: 1080px;

  --h1: 2.25rem;
  --h2: 1.75rem;
  --h3: 1.25rem;

  /* Thought bubble positional tokens */
  --bubble-top: -14px;
  --bubble-right: clamp(0px, 4vw, 30px);
}

.dark {
  --color-bg: #1c1c1d;
  --color-surface: #232324;
  --color-text: #e6e6e6;
  --color-muted: #b0b0b0;
  --color-border: #2c3237;
  --color-primary: #66aaff;
  --color-primary-dark: #aaccff;
  --color-code-bg: #2c3237;
}

/* Base */
html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

h1 { font-size: var(--h1); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: var(--h2); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: var(--h3); font-weight: 600; }

p { color: var(--color-text); line-height: 1.7; }

/* Links */
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* Header/Nav */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

header nav ul {
  display: flex;
  gap: 16px;
}

header nav a {
  color: var(--color-text);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
}

header nav a:hover {
  background: rgba(0,0,0,0.03);
}

.dark header nav a:hover {
  background: rgba(255,255,255,0.06);
}

/* Sections */
section h2 {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

/* Cards and blocks (map site-specific classes to al-folio-like cards) */
.contact-card,
.experience-item,
.publication-item,
.interest-card,
.skills-container,
.research-summary,
.research-interests,
.research-history {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.interest-card a { color: inherit; }
.interest-card a:hover { text-decoration: none; }

/* Lists */
ul { padding-left: 20px; }
ul li { margin: 6px 0; }

/* Tags/Pills */
.interest-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  background: rgba(0, 118, 223, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  margin-right: 8px;
}

.dark .interest-tag {
  color: var(--color-primary-dark);
  background: rgba(102, 170, 255, 0.12);
}

/* Images */
img {
  border-radius: var(--radius-sm);
}

/* Code blocks */
code, pre {
  font-family: var(--font-mono);
}

pre {
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow: auto;
}

/* Footer */
footer {
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Theme toggle minimal refinement */
.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

/* Thought-bubble refinement to blend with skin without layout changes */
.thought-bubble {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  /* Nudge position responsively */
  top: var(--bubble-top) !important;
  right: var(--bubble-right) !important;
  /* Ensure size token is used so tail bubbles can scale consistently */
  --bubble-size: clamp(160px, 38vw, 320px);
  width: var(--bubble-size) !important;
  height: var(--bubble-size) !important;
}

/* Scale and reposition the smaller tail bubbles relative to main bubble */
.thought-bubble::before {
  /* medium bubble */
  width: calc(var(--bubble-size) * 0.18) !important;
  height: calc(var(--bubble-size) * 0.18) !important;
  left: calc(var(--bubble-size) * -0.22) !important;
  bottom: calc(var(--bubble-size) * 0.16) !important;
}

.thought-bubble::after {
  /* small bubble */
  width: calc(var(--bubble-size) * 0.10) !important;
  height: calc(var(--bubble-size) * 0.10) !important;
  left: calc(var(--bubble-size) * -0.30) !important;
  bottom: calc(var(--bubble-size) * 0.03) !important;
}

/* Responsive tuning for thought bubble offsets */
@media (max-width: 600px) {
  :root {
    --bubble-top: -10px;
    --bubble-right: clamp(0px, 3vw, 20px);
  }
}

@media (min-width: 1200px) {
  :root {
    --bubble-top: -22px;
    --bubble-right: clamp(0px, 2vw, 24px);
  }
}


