/* static/css/aesthetic.css */

/* ────────────────────────────────────────────────────────────────────────────
   1) Override PaperMod’s palette via CSS variables
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  /* page background → very light warm gray */
  --theme: #f7f6f3;
  /* entry background (cards, code blocks) → pure white */
  --entry: #ffffff;
  /* main text → dark charcoal (not black) */
  --content: #333333;
  /* secondary text (time stamps, subtitles) → cool gray */
  --secondary: #555555;
  /* muted text (meta, captions) → medium gray */
  --muted: #6b7280;
  /* borders, separators → light gray */
  --border: #e5e7eb;
  /* code block backgrounds */
  --code-block-bg: #f3f4f6;
  --code-bg: #f9fafb;
}

/* ────────────────────────────────────────────────────────────────────────────
   2) Base improvements
   ──────────────────────────────────────────────────────────────────────────── */
body {
  background-color: var(--theme);
  color: var(--content);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ────────────────────────────────────────────────────────────────────────────
   3) Headings
   ──────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: #111827; /* almost-black for headings */
  line-height: 1.25;
}

/* ────────────────────────────────────────────────────────────────────────────
   4) Links
   ──────────────────────────────────────────────────────────────────────────── */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #324a75;
  text-decoration: underline;
}

/* ────────────────────────────────────────────────────────────────────────────
   5) Project cards
   ──────────────────────────────────────────────────────────────────────────── */
.project-card {
  background: var(--entry);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
.project-card h3 a {
  color: #1f2937; /* dark slate for project titles */
}
.project-summary {
  color: var(--secondary);
}

/* ────────────────────────────────────────────────────────────────────────────
   6) Latest posts list
   ──────────────────────────────────────────────────────────────────────────── */
.post-item h3 a {
  color: #1f2937;
}
.post-item time {
  color: var(--muted);
}
.post-summary {
  color: #3f3f46;
}

/* ────────────────────────────────────────────────────────────────────────────
   7) “View more” links
   ──────────────────────────────────────────────────────────────────────────── */
.more-link a {
  font-weight: 600;
  color: var(--primary);
}

/* ────────────────────────────────────────────────────────────────────────────
   8) Container & spacing tweak
   ──────────────────────────────────────────────────────────────────────────── */
.site-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ────────────────────────────────────────────────────────────────────────────
   Contact Form Styles
──────────────────────────────────────────────────────────────────────────── */

/* 1) Layout & spacing */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--entry);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

/* 2) Labels */
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--content);
}

/* 3) Inputs & textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--theme);
  font-size: 1rem;
  color: var(--content);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 4) Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 87, 0.2); /* your navy with 20% alpha */
}

/* 5) Button */
.contact-form button {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.contact-form button:hover {
  opacity: 0.9;
}
.contact-form button:active {
  opacity: 0.8;
}

/* 6) Fieldset styling (if you ever group fields) */
.contact-form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

/* 7) Responsive tweak */
@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem;
    gap: 0.75rem;
  }
}

/* Make every .list page use the theme background (not the code-bg) */
body.list {
  background: var(--theme) !important;
}


.dark {
  /* base */
  --theme: #1e1f26;          /* slightly deeper black-purple */
  --entry: #2a2c37;          /* card/form background */
  --content: #e0e0e0;        /* main text — softer white */
  --secondary: #b0b0b0;      /* subtitles, summaries */
  --muted: #7a7c8b;          /* meta, captions */
  --border: #3a3c4a;         /* dividers */

  /* code blocks */
  --code-block-bg: #2f313c;
  --code-bg: #232531;

  /* accents */
  --primary: #8be9fd;        /* bright cyan for links/buttons */
  --link-color: var(--primary);
  --link-hover-color: #50b3c6;
  --primary-foreground: #1e1f26; /* text on primary */

  /* headings */
  --heading: #f8f8f2;
}

/* apply heading variable */
.dark h1, .dark h2, .dark h3, .dark h4 {
  color: var(--heading);
}

/* Project-cards tweaks */
.dark .project-card {
  background: var(--entry);
  border-color: var(--border);
}
.dark .project-card h3 a {
  color: var(--content);
}
.dark .project-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

/* “View more” link */
.dark .more-link a {
  color: var(--primary);
}

/* Hero subtitle */
.dark .subtitle {
  color: var(--secondary);
}

/* Footer & small text */
.dark .footer, .dark .top-link {
  color: var(--secondary);
}
/* make post titles glow cyan in dark mode */
.dark .post-title,
.dark .post-header .post-title,
.dark .post-item h3 a {
  color: var(--primary) !important;
}
