/* Containers, header, mobile menu, footer, inner pages. */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }

/* Header: sticky and solid on inner pages; fixed and transparent over the hero on the front page. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 13, 18, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--overlay.is-solid { background: rgba(10, 13, 18, 0.94); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding: 0 var(--gutter-wide); }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav__link { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav__link:hover { color: #FFFFFF; text-decoration: underline; }
.site-nav__icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; }
.site-nav__icon svg { width: 20px; height: 20px; }

.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; }
.menu-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

.site-header.is-menu-open, .site-header--overlay.is-solid.is-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 899px) {
	.menu-toggle { display: inline-flex; position: relative; z-index: 2; }
	.site-nav { display: none; }
	.site-header.is-menu-open .site-nav { display: flex; position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: var(--bg); font-family: var(--font-display); font-size: 40px; font-weight: 600; text-transform: uppercase; overflow-y: auto; }
	.site-header.is-menu-open .site-nav .btn { margin-top: 16px; font-family: var(--font-body); font-size: 17px; text-transform: none; }
	.site-header.is-menu-open .site-logo { position: relative; z-index: 2; }
	body.menu-open { overflow: hidden; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); color: var(--text-dim); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.site-footer__brand img { height: 52px; width: auto; margin-bottom: 16px; }
.site-footer h2 { margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--text-dim); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer address { font-style: normal; display: grid; gap: 6px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 14px; }

/* Inner pages */
.page-hero { padding-top: clamp(64px, 8vw, 104px); padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.page-hero .kicker { margin-bottom: 16px; }
.page-content { padding-top: 56px; padding-bottom: var(--section-space); }
.entry-content { max-width: 760px; color: var(--text-muted); }
.entry-content h2, .entry-content h3 { color: var(--text); margin: 1.6em 0 0.6em; }
.entry-content a { color: var(--text); }
.post-list { display: grid; gap: 32px; }
.post-list article { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.error-404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.error-404 p { max-width: 560px; color: var(--text-muted); }
