
/* Style.css */
.icon {
    --internal-icon-color: var(--color-contrast-2);
    --internal-icon-size: 2rem;
    fill: var(--icon-color, var(--internal-icon-color));
    width: var(--icon-size-w, var(--icon-size, var(--internal-icon-size)));
    height: var(--icon-size-h, var(--icon-size, var(--internal-icon-size)));
    display: inline-block;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.6rem;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #93c5fd;
}

.profile-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}


h1 {
  margin-bottom: 0.5rem;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #93c5fd;
}

main {
  flex: 1;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,0.15), transparent 40%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e5e7eb;
}

footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  text-align: center;
  color: #94a3b8;
}

footer a {
  color: #93c5fd;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}


main > div,
header > div,
footer > div {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

p {
  margin: 0.75rem 0;
}

/* ---------- Index Page ---------- */

.intro {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
}

.posts {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.131);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147,197,253,0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.post-title a {
  text-decoration: none;
  color: #ffffff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
}

.post-title a:hover {
  color: #93c5fd;
}

.post-meta {
  color: #94a3b8;
}

.read-more {
  color: #93c5fd;
}

.post-description {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.read-more:hover {
  text-decoration: underline;
}

.no-posts {
  margin-top: 2rem;
  font-style: italic;
  color: #777;
}

main section.page {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  line-height: 1.75;
  backdrop-filter: blur(4px);
}

section.page p {
  color: #e5e7eb;
  font-size: 1.05rem;
}

section.page h1,
section.page h2,
section.page h3 {
  color: #ffffff;
}

section.page ul,
section.page ol {
  padding-left: 1.5rem;
}

main h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

main time {
  display: block;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* ---------- Code Styling ---------- */

code {
  font-family: "Fira Code", "JetBrains Mono", monospace;
  background: rgba(255,255,255,0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #facc15;
}

pre {
  background: #0b1220;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
}

/* Reset.css */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    min-width: 0;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    
}

html, body {
    height: 100%;
}

body {
    font-size: 1.0rem;
    font-weight: 400;
    line-height: 1.2;
    min-height: 100vh;
    min-height: 100dvh;
}

p, img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
}