
/* Apple‑inspired minimalistic styling */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #1d1d1f;
    line-height: 1.6;
}

/* Top navigation bar */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
}

nav a {
    color: #f5f5f7;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: #ffffff;
}

/* Page header acting as hero section */
header {
    background-color: #fff;
    text-align: center;
    padding: 8rem 1rem 6rem;
    border-bottom: 1px solid #d2d2d7;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.25rem;
    max-width: 620px;
    margin: 0 auto;
    color: #6e6e73;
}

/* Content layout */
main {
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

section + section {
    margin-top: 4rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
}

ul {
    list-style: disc;
    padding-left: 1.25rem;
}

ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Blog meta */
.meta {
    font-size: 0.875rem;
    color: #6e6e73;
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #0071e3; /* Apple blue */
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #f5f5f7;
    color: #6e6e73;
    text-align: center;
    font-size: 0.75rem;
    padding: 2rem 1rem;
    border-top: 1px solid #d2d2d7;
}


/* Top centered logo */
.top-logo {
    background: #000000;
    text-align: center;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.top-logo img {
    height: 70px;
    width: auto;
    filter: invert(100%);
}

/* Shift the nav bar below the logo */
nav {
    top: 48px; /* Reserve space for top logo */
}

/* Blog filter buttons */
#filter-bar{
    display:flex;
    justify-content:center;
    gap:1rem;
    flex-wrap:wrap;
    margin:2rem 0;
}
#filter-bar button{
    background:#0071e3;
    border:none;
    color:#fff;
    padding:0.5rem 1rem;
    font-size:0.875rem;
    border-radius:20px;
    cursor:pointer;
    transition:background 0.2s ease;
}
#filter-bar button:hover, #filter-bar button.active{
    background:#1d1d1f;
}
.blog-post{
    margin:3rem auto;
    max-width:800px;
    padding:0 1rem;
}
.blog-post h2{
    margin-bottom:0.5rem;
}
