/* Site chrome: reset, header, nav, rule, footer.
   One definition, loaded by the homepage, the generated post and archive
   pages, and the editor, so the header cannot drift between them. */

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: min(1200px, 90%);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }

/* Header */
.header { padding: 1rem 0 0.5rem 0; }

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 3vw, 1rem);
}

.header-link { text-decoration: none; transition: opacity 0.3s ease; }
.header-link:hover { opacity: 0.95; }

.header-image img {
    width: clamp(42px, 12vw, 60px);
    height: clamp(42px, 12vw, 60px);
    object-fit: cover;
}

.header-text { text-align: left; }

.header-title {
    font-size: clamp(1.35rem, 6vw, 2rem);
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.header-subtitle {
    font-size: clamp(0.8rem, 3.2vw, 1rem);
    font-weight: 400;
    color: #000000;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding: 0 1rem;
}
@media (min-width: 700px) {
    .nav { gap: 1.5rem; }
}

.nav a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}
.nav a:hover { text-decoration: underline; }

.nav a.nav-post { color: #0d9488; font-weight: 600; }

.nav-icon {
    width: 1rem;
    height: 1rem;
    fill: #000000;
    vertical-align: middle;
}

/* Rule */
hr {
    border: 0;
    border-top: 0.5px solid #d3d3d3;
    margin: 0.5rem 0;
}

/* Content and footer */
.content { width: 100%; flex-grow: 1; }

.footer { padding: 2rem 0; }
.footer p { font-size: 0.875rem; }
