

/* ================== CSS ================== */
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================== Variables ================== */
:root {
  --bg: #ffffff;
  --text: #000000;
  --link: #000000;
  --accent: #000000;
  --emoji-bg: #ffffff;
}

[data-theme="dark"] {
  --bg: #191919;       /* softer dark background */
  --text: #f5f5f5;     /* off-white text for comfort */
  --link: #ffffff;     /* light links */
  --accent: #ffffff;
  --emoji-bg: #ffffff; /* white emoji background */
}

/* ================== Body ================== */
body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
    margin: 2rem;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* ================== Header ================== */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header h2 {
    font-size: 1.2rem;
    color: #555;
}

header hr {
    width: 100%;
    max-width: 800px;  /* matches your main content width */
    margin: 2rem auto; /* centers it */
    border: none;
    border-top: 1px solid var(--text); /* subtle line using current text color */

}

/* ================== Site Nav ================== */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* spacing between items */
    flex-wrap: wrap;
}

.site-nav a,
#theme-toggle {
    all: unset;               /* remove default button styles */
    cursor: pointer;
    color: var(--link);
    font-weight: 500;
    transition: color 0.3s, opacity 0.3s;
}

.site-nav a:hover,
#theme-toggle:hover {
    opacity: 0.7;
}

/* ================== Main ================== */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0rem 1rem;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}




/* Align lists with content */
main ul,
main ol {
    padding-left: 1.2rem;           /* indent for bullets/numbers */
    margin: 1rem 0;                 /* vertical spacing */
    list-style-position: inside;    /* bullets/numbers align with text */
}

/* Optional: nicer bullet style for ul */
main ul {
    list-style-type: disc;          /* default: disc, you can change */
}

/* Optional: nicer number style for ol */
main ol {
    list-style-type: decimal;
}

/* ================== Links ================== */
a {
    color: var(--link);
    text-decoration: none;
}

a:visited {
    color: var(--link); /* prevents the default purple color */
}

a:hover,
a:active {
    opacity: 0.7;
    color: var(--accent); /* optional: slight highlight on hover */
}



/* ================== Footer ================== */
footer {
    margin-top: 4rem;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

footer a {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.6s ease;
}

footer a:hover {
    transform: rotate(360deg);
}

footer svg {
    width: 50%;
    height: 100%;
    fill: var(--link);
    transition: fill 0.3s;
}



/* ========== Intro container ========== */
.intro {
  text-align: center;
  margin-bottom: 1rem;
}

.intro p {
  color: #777;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ========== Section Grid ========== */
.sections h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.section-card {
  display: block;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.section-card p {
  font-size: 0.95rem;
  color: #666;
}



/* ================== Latest Posts (Home Section) ================== */
.content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  border-radius: 1.2rem;
  background: var(--bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .content {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.05);
}

/* Section Title */
.content h3 {
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Post List */
.content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}

[data-theme="dark"] .content li {
  border-color: rgba(255,255,255,0.1);
}

.content a {
  text-decoration: none;
  color: var(--link);
  font-size: 1.1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
  position: relative;
}

/* Underline animation */
.content a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.content a:hover::after {
  width: 100%;
}

.content a:hover {
  opacity: 0.7;
}

/* "Browse the full library" link */
.content p {
  text-align: right;
  margin-top: 1.5rem;
}

.content p a {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--link);
  transition: opacity 0.3s ease;
  text-decoration: none;      /* remove default underline */
  display: inline-block;      /* ensures ::after underline is only under text */
  position: relative;
}

/* Only underline text, not full block */
.content p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;                /* spacing below text */
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.content p a:hover::after {
  width: 100%;
}

.content p a:hover {
  opacity: 0.8;
}


/* ================== Support Section (matches style) ================== */
.support {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  border-radius: 1.2rem;
  background: var(--bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
/* Support buttons layout */
.support-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px; /* optional: control width */
  margin: 0 auto;
  gap: 1rem;
}

.left-button,
.right-button {
  display: flex;
  align-items: center;
}

[data-theme="dark"] .support {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.05);
}

.support h3 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.support p {
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

[data-theme="dark"] .support p {
  color: #aaa;
}

.support script {
  display: block;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .content,
  .support {
    padding: 1.8rem 1.3rem;
    margin: 2rem 1rem;
  }
  .support-buttons {
    flex-direction: column;
    gap: 1rem; /* space between stacked buttons */
  }

  .content h3,
  .support h3 {
    font-size: 1.4rem;
  }

  
}





.date {
  font-size: 0.9rem;
  color: #888;
  font-family: monospace;
  flex-shrink: 0;
  margin-left: 1rem;
}






/* ================== Hero Section ================== */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* centers children horizontally */
    justify-content: center; /* optional: vertically center if you want */
    padding: 3rem 5vw 4rem;
    color: var(--text);
    background: var(--bg);
    transition: background 0.3s, color 0.3s;
    text-align: center; /* fallback for text inside children */
}

.hero-container {
    max-width: none; /* let it expand as needed */
    margin: 0;
}

/* Hero H1 */
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    white-space: nowrap; /* keeps text on one line */
}
.hero h1 span {
    color: var(--accent);
}

/* Divider */
.hero-divider {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 3rem auto;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

[data-theme="dark"] .hero-divider {
    border-color: rgba(255,255,255,0.1);
}

/* Description */
.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto 3rem auto;
    color: var(--text);
}

/* Button */
.hero .btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: 2px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero .btn-primary:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

/* ================== Responsive ================== */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;   /* allow wrap on smaller screens */
    }

    .hero-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 4rem 3vw 3rem;
    }

    .hero h1 {
        font-size: 2rem;
        white-space: normal;   /* allow wrap on smaller screens */
    }

    .hero-description {
        font-size: 1rem;
    }
}






