body {
max-width: 900px;
margin: auto;
padding: 1rem;
font-family: system-ui, sans-serif;
line-height: 1.5;
}

header {
margin-bottom: 1rem;
}

h1 {
margin-bottom: 0;
}

#today {
opacity: .7;
}

:root {
  --bg-color: white;
    --accent: #2e7d32;     /* your green */
    --link: #2563eb;   
}

a {
    color: var(--link);
}

a:hover {
    text-decoration: underline;
}



#menu-button {
    display: none;
}

@media (min-width: 769px) {

    #nav {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {

    #menu-button {
        position: fixed;
        display: block;
        bottom: 2rem;
        right: 1rem;
        font-size: 1.5em;

        z-index: 1000;

        background: Canvas;
        border: 1px solid #6663;
        border-radius: .5rem;
        padding: .5rem;
    }

    #menu-button::before {
        content: "☰";
    }

    #menu-button.open::before {
        content: "✕";
    }

    #nav {
        display: none;
    }

    #nav.open {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: 100vh;
        z-index: 100;
    }

    section h2 {
        margin-top: 1vh;
        position: sticky;
        top: 1vh;
        max-width: max-content;
        background: var(--bg-color);
        padding: .5em;
        border-radius: 8px;
        box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
        z-index: 10;
    }
}

@media (prefers-color-scheme: dark) {
  :root, body {
    --bg-color: #121212;
    background: #121212;
  }
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1em 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #6663;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 1rem;

  background-color: var(--bg-color);
}

nav a {
margin-right: 1rem;
text-decoration: none;
/* transition: color .2s ease, border-color .2s ease; */
}

#nav a {
    color: inherit;
    text-decoration: none;
    transition: all .2s ease;
}

#nav a.active {
    color: var(--accent);
    font-weight: bold;
    /* border-bottom: 2px solid var(--accent); */
}

section {
margin-bottom: 3rem;
}


.article-card {
/* padding: 1rem 0; */
border-bottom: 1px solid #6663;
}

.article-card p {
    overflow-wrap: anywhere;
}

.article-card h3 {
margin-bottom: .25rem;
}

.meta {
font-size: .85rem;
opacity: .7;
margin-bottom: .5rem;
}

p {
margin-top: .5rem;
}
