/* ==========================================================================
   MINIMALIST PORTFOLIO THEME
   - Intentionally human, quiet, and timeless.
   - No glowing gradients, no 3D effects, no AI template cliches.
   - Crisp typography, warm paper tones, and comfortable whitespace.
   ========================================================================== */

:root {
  /* Light theme (warm paper palette) */
  --bg-page: #fbfbf9;
  --bg-card: #ffffff;
  --bg-subtle: #f3f3f0;
  --text-primary: #191919;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9c9c99;
  --border-color: #e5e5e1;
  --border-hover: #c4c4be;
  --accent: #111111;
  --link-color: #191919;
  --link-hover: #000000;
  --status-dot: #10b981;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", "Charter", "Georgia", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --container-width: 580px;
}

[data-theme="dark"] {
  /* Dark theme (soft dark charcoal, not harsh pure black) */
  --bg-page: #121212;
  --bg-card: #1a1a1a;
  --bg-subtle: #222222;
  --text-primary: #ededed;
  --text-secondary: #9a9a9a;
  --text-tertiary: #666666;
  --border-color: #2c2c2c;
  --border-hover: #484848;
  --accent: #f5f5f5;
  --link-color: #ededed;
  --link-hover: #ffffff;
  --status-dot: #34d399;
  --shadow-subtle: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  padding: 3rem 1.5rem 2.5rem;
}

/* Page container */
.site-wrapper {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text-secondary);
}

/* Navigation - scaffolded & hidden by default */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Helper to hide elements (Used for scaffolded nav & future sections) */
.is-hidden {
  display: none !important;
}

/* Theme toggle button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-card);
}

/* Main content */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 1rem 0 2rem;
}

/* Profile / Intro block */
.profile-intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-intro .name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.profile-intro .tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* The small text box card */
.text-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-box:hover {
  border-color: var(--border-hover);
}

.text-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--status-dot);
  border-radius: 50%;
  display: inline-block;
}

.text-box-content {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.text-box-content p + p {
  margin-top: 0.75rem;
}

/* Social links section */
.socials-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  border-bottom: 1px dotted var(--border-hover);
  padding-bottom: 1px;
  transition: all 0.15s ease;
}

.social-link .arrow {
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.social-link:hover {
  color: var(--link-hover);
  border-bottom-style: solid;
  border-bottom-color: var(--text-primary);
}

.social-link:hover .arrow {
  transform: translate(1px, -1px);
}

/* Scaffolded sections styling (ready for when unhidden) */
.scaffold-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.scaffold-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.scaffold-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.scaffold-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.scaffold-item:hover .item-title {
  color: var(--text-primary);
  text-decoration: underline;
}

.item-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

.item-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.item-meta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  white-space: nowrap;
  margin-left: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  body {
    padding: 2rem 1.25rem 2rem;
  }

  .site-header {
    margin-bottom: 2rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
