[data-theme="night"] {
  color-scheme: dark;

  --color-primary: #9ca3af;
  --color-secondary: #6b7280;
  --color-accent: #94a3b8;
  --color-neutral: #1e293b;

  --color-muted: #666;
  --color-base-1: #0f172a;
  --color-base-2: #1e293b;
  --color-base-3: #334155;
  --color-base-content: #e2e8f0;

  --color-info: #64748b;
  --color-success: #6b7280;
  --color-warning: #a1a1aa;
  --color-error: #7f1d1d;

  --radius-selector: 0.5rem;
  --radius-field: 0.375rem;
  --radius-box: 0.5rem;
}

[data-theme="lofi"] {
  color-scheme: light;

  --color-primary: #2563eb;
  --color-secondary: #4b5563;
  --color-accent: #4f46e5;
  --color-neutral: #f3f4f6;

  --color-muted: #666;
  --color-base-1: #ffffff;
  --color-base-2: #f8fafc;
  --color-base-3: #f1f5f9;
  --color-base-content: #111827;

  --color-info: #3b82f6;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  --radius-selector: 0.5rem;
  --radius-field: 0.375rem;
  --radius-box: 0.5rem;
}

body {
  background: linear-gradient(135deg, var(--color-base-1) 0%, var(--color-base-2) 100%);
  background-attachment: fixed;
}

[data-theme="night"][data-brightness="darker"] body {
    background: linear-gradient(135deg, #000000 0%, #0a0a0f 100%);
}
[data-theme="night"][data-brightness="lighter"] body {
    background: linear-gradient(135deg, #1e293b 0%, #2d3e52 100%);
}
[data-theme="lofi"][data-brightness="darker"] body {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
[data-theme="lofi"][data-brightness="lighter"] body {
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfd 100%);
}

h1 {
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

[data-theme="night"] h2::after { /* may not need? */
  background: linear-gradient(90deg, #9ca3af, #6b7280);
}

[data-theme="lofi"] h2::after {
  background: linear-gradient(90deg, #374151, #1f2937);
}

[data-theme="night"] main ul li::before {
  color: #9ca3af;
}
[data-theme="lofi"] main ul li::before {
  color: #64748b;
}

pre {
  background: linear-gradient(135deg, var(--color-base-2), 0%, var(--color-base-3) 100%);
}


[data-theme="night"] pre {
  background: linear-gradient(135deg, var(--color-base-2) 0%, #1e293b 100%);
  border: 1px solid rgba(100, 116, 139, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="lofi"] pre {
  border: 1px solid rgba(100, 116, 139, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="night"] pre::before {
  background: linear-gradient(90deg, #9ca3af, #6b7280);
}
[data-theme="lofi"] pre::before {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

/* may put this into the syntax. */
[data-theme="night"] pre code {
  color: #e5e7eb;
}
[data-theme="lofi"] pre code {
  color: #1e293b;
}



html {
  background-color: var(--color-base-1);
  scroll-padding-top: 130px;
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  color: var(--color-base-content);
  transition: background 0.4s ease, color 0.4s ease;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 2rem;
  line-height: 1.1;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  position: relative;
}

h2 {
  color: var(--color-base-content);
  line-height: 1.2;
  letter-spacing: -0.025em;
  position: relative;
}

p {
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
}

main a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

pre {
  word-break: break-all;
  white-space: pre;
  position: relative;
}

blockquote {
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: var(--color-primary);
  position: relative;
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--color-secondary);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

/* Classes */

.blur {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.text-muted {
  color: var(--color-secondary);
  font-size: 0.95rem;
}

/* Site header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(156, 163, 175, 0.1);
  background-color: transparent;
}

/* Nav bar */
.navbar-container {
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Space between image and text */
  font-weight: 700;
  color: var(--color-base-content);
}

/* Make sure the text and icons align in the nav */
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav button {
  background: var(--color-base-3);
  border: none;
  color: var(--color-base-content);
  padding: 0.4rem 0.35rem;
  border-radius: var(--radius-field);
  cursor: pointer;
  font-family: monospace;
  transition: opacity 0.2s;
}

.site-nav button:hover {
  opacity: 0.8;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 0px solid var(--color-base-3);
}


/* Social Link Hover Effect */
.social-link {
  display: flex;
  align-items: center;
  color: var(--color-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}
.social-link:hover {
  color: var(--color-primary);
  transform: translateY(-1px); /* Subtle lift on hover */
}

/* Apply this to anything you want to animate */
.site-nav a, 
.site-nav button, 
.social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block; /* Required for transform/scale to work properly */
}

/* 2. Scale + Color Change (Best for Buttons & Icons) */
.site-nav button:hover,
.social-link:hover,
.avatar:hover {
  transform: scale(1.1); /* Increases size by 10% */
  background-color: var(--color-base-3);
  color: var(--color-primary);
}

/* This makes the button shrink slightly when you actually press it */
.site-nav button:active,
.social-link:active {
  transform: scale(0.95);
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social-link:hover .nav-icon {
  transform: scale(1.2); /* overwriting the one I just set for social ik, idgaf. */
}


/* footer */

.site-footer {
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(156, 163, 175, 0.1);
  font-size: 0.85rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.footer-wrap {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  padding: 2rem 0;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 100px;
}

.footer-title {
  color: var(--color-base-content);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--color-base-content);
}

.footer-bottom {
  margin: 1rem auto 0;
  border-top: 1px solid rgba(175, 165, 156, 0.05);
  text-align: center;
  opacity: 0.6;
}


/* Fixed bullshi */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}


main {
  padding-top: 6rem; 
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  flex: 1 0 auto;
}