/* css/main.css */

/* Hard reset */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.4;
}

/* Layout variables */
:root{
  --max: 1080px;
  --pad: 24px;
  --bar: #000;
  --barText: #fff;
  --headerH: 84px;
  --footerH: auto;
}

/* Page shell */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Full-bleed sections that must break out of any wrapper */
.fullbleed {
  background: var(--bar);
  color: var(--barText);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Centered inner container */
.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Header */
.site-header .inner {
  height: var(--headerH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  flex: 0 0 auto;
}

.site-title {
  font-size: 18px;
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.8px;
  padding: 10px 6px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: rgba(255,255,255,0.6); }
.nav a[aria-current="page"] { border-bottom-color: #fff; }

/* Mobile button */
.menu-btn {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: 0.8px;
  cursor: pointer;
}

.menu-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Mobile panel */
.mobile-panel {
  display: none;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel .inner {
  padding-top: 8px;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-panel a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.8px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-panel a:last-child { border-bottom: none; }

/* Main content */
main {
  flex: 1 1 auto;
}

.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad);
}

/* Footer */
.site-footer .inner {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .inner { height: 68px; }
  .content { padding: 40px var(--pad); }
}