html, body {
  height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #404040;
    margin: 0;
    display: flex;
    flex-direction: column;
}


/* header */
.site-heading {
    padding: 6rem 0;
    text-align: center;
    background: #f8f9fa;
}

.site-heading h1 {
    font-size: 3rem;
    margin: 0;
}

#subtitle {
    font-family: 'Roboto', sans-serif;
}

.logo-icon {
    width: 128px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-icon {
        width: 80px;
    }

    .only-desktop {
        display: none;
    }
    .post-preview {
        flex-direction: column;     /* stack */
    }

    .post-img {
        width: 100%;                /* full width */
        height: auto;
    }
}


/* navbar */
.navbar-nav a:hover {
    color: #7c2023;
    transform: translateY(-1px) scale(1.3);
}

.navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-family: "Pixelify Sans", sans-serif;
}

.navbar-nav .nav-link.active {
    color: #0a0a0a;
    transform: translateY(-1px) scale(1.1);
}

.dropdown-menu {
    min-width: auto;
    width: auto;
}


/* content on index */
.main-wrapper {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    flex: 1;
}

.main-content {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.post-preview {
    margin-bottom: 2rem;
}

.post-preview a {
    text-decoration: none;
    color: #7c2023;
}

.post-preview a:hover {
    color: #000;
    text-shadow: 0 4px 12px rgba(123, 30, 38, 0.504);
}

.post-subtitle {
    color: #000;
    font-size: 1.3rem;
}

.post-meta {
    font-family: "Pixelify Sans", sans-serif;
    color:#828282;
    font-size: 1rem;
}

.post-img {
    width: 120px;
    height: 120px;
    object-fit: cover;     /* prevents stretching */
    border-radius: 6px;    /* optional */
    flex-shrink: 0;        /* prevents image shrinking */
}

.article-title {
    color: #000;
    font-size: 2rem;
    text-align: center;
}

.article-subtitle {
    color: #7c2023;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.article-meta {
    font-family: "Pixelify Sans", sans-serif;
    color:#828282;
    font-size: 1rem;
    text-align: right;
    margin-bottom: 4rem;
}

.article-content h3 {
    font-family: "Pixelify Sans", sans-serif;
    color:#7c2023;
    font-size: 2rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.article-link {
    color: #7c2023;
    font-family: 'Roboto', serif;
    font-size: 1.2rem;
}

.polaroid {
    margin: 0 auto 1rem;   /* auto left/right centers it; 1rem bottom margin */
    display: block;           /* shrink to image width */
    background: white;               /* white Polaroid base */
    padding: 10px;                   /* border around image */
    padding-bottom: 40px;            /* extra space for caption */
    box-shadow: 0 8px 15px rgba(0,0,0,0.3); /* shadow */
    border-radius: 4px;
    text-align: center;              /* center caption text */
    position: relative;              /* for positioning caption */
    max-width: 500px;                /* optional max width */
    margin-top: 4rem;
}

.tilt-left {
    transform: rotate(-2deg);
}

.tilt-right {
    transform: rotate(2deg);
}

.polaroid img {
    width: 100%;
    height: auto;
    display: block;
}

.polaroid-caption {
    position: absolute;
    bottom: 10px;                    /* inside the extra bottom padding */
    width: 100%;
    font-size: 0.9rem;
    color: #404040;
    font-weight: 600;
    font-family: "Pixelify Sans", sans-serif;
}


/* map */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 10%; 
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.map-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.map-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.map-content.show {
    max-height: 500px; 
}

.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;

    background: white;
    color: #222;

    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px; /* pill shape */

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;

    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.map-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.map-toggle:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* extra */

.divider {
    height: 0.2rem;
    background: #e0dfdf;
    margin: 20px 0;
}

.btn-older-posts {
    font-family: "Pixelify Sans", sans-serif;
    background-color: #7c2023; /* burgundy */
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px; /* pill shape */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    transition: all 0.25s ease;
}

.btn-older-posts:hover {
    background-color: #5e162c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 30, 58, 0.25);
}

/* about me */
.about-section {
    max-width: 80%;
    margin: 0 auto;
    gap: 2rem;
}

.about-card {
    flex: 1;
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image {
    max-width: 100%;
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-card h2 {
  color: #7c2023;
}

/* footer */
footer {
    padding: 2rem 0;
    text-align: center;
    background: #f8f9fa;
}

.site-footer {
    margin-top: 4rem;
    padding: 3rem 20px;
    background: #f8f9fa;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 80px;
    object-fit: contain;
}

.footer-text {
    font-family: 'Roboto', serif;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #999;
}

.footer-social a {
    color: #7c2023;
    font-size: 20px; 
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 1rem;
}

.footer-social a:hover {
    color: #5e162c;
    transform: scale(1.1); /* subtle zoom effect */
}

.about-link {
    color: #5e162c;
}

/* ledger */
.index-title {
  text-align: center;
  margin-bottom: 2rem;
}

.alphabet-nav {
  text-align: center;
  margin-bottom: 3rem;
}

.alphabet-nav a {
  margin: 0 8px;
  font-weight: 600;
  text-decoration: none;
  color: #7b1e3a;
}

.alphabet-nav a:hover {
  text-decoration: underline;
}

.index-section {
  margin-bottom: 3rem;
}

.index-letter {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3rem;
}

.index-item {
  border-bottom: 1px solid #eee;
}

.index-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.index-item-content h3 {
  margin: 0;
  font-size: 1.1rem;
}

.index-item-content p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #666;
}

.index-arrow {
  font-size: 1.2rem;
  color: #aaa;
  transition: transform 0.2s ease, color 0.2s ease;
}

.index-item a:hover {
    color: #7b1e3a;
    background: #fafafa;
    border-left: 3px solid #7b1e3a;
    padding-left: 10px;
}

.index-item a:hover .index-arrow {
  transform: translateX(4px);
  color: #7b1e3a;
}