:root {
  --ink: #0d0d0c;
  --paper: #f4f2ec;
  --line: #cfccc0;
  --accent: #ff3d1a;
  --gray: #7a7870;
}

/* ---------- REAL TYPEFACES ----------
   Drop your font files into /fonts/ using these exact filenames
   (or edit the src paths below to match what you have), and the
   specimen text on type.html will render in the real typefaces
   instead of the Space Grotesk placeholder. */
@font-face {
  font-family: 'Jazz Ball';
  src: url('fonts/JazzBall.woff2') format('woff2'),
       url('fonts/JazzBall.woff') format('woff'),
       url('fonts/JazzBall.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Fakedes Outline';
  src: url('fonts/FakedesOutline.woff2') format('woff2'),
       url('fonts/FakedesOutline.woff') format('woff'),
       url('fonts/FakedesOutline.otf') format('opentype');
  font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: 'RF Dewi', sans-serif; -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'RF Dewi', monospace; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; gap: 24px; }
.mark { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.mark .dot { color: var(--accent); }
.header-tagline { font-family: 'RF Dewi', monospace; font-size: 10.5px; line-height: 1.5; color: var(--gray); border-left: 1px solid var(--line); padding-left: 20px; }
nav.main { display: flex; gap: 30px; font-family: 'RF Dewi', monospace; font-size: 12.5px; margin-left: auto; }
nav.main a { color: var(--gray); position: relative; padding-bottom: 8px; }
nav.main a.active { color: var(--ink); }
nav.main a.active::after { content:''; position:absolute; left:50%; bottom:0; width:4px; height:4px; background:var(--accent); border-radius:50%; transform:translateX(-50%); }
.header-meta { font-family: 'RF Dewi', monospace; font-size: 11px; color: var(--gray); text-align: right; display:flex; align-items:center; gap:8px; }
.header-meta .status-dot { width:6px; height:6px; border-radius:50%; background: var(--ink); display:inline-block; }

.page-body { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.sidebar { font-family: 'RF Dewi', monospace; font-size: 12.5px; }
.sidebar h3 { font-size: 11px; color: var(--gray); margin-bottom: 16px; text-transform: none; }
.filter-list { list-style: none; display:flex; flex-direction:column; gap: 10px; margin-bottom: 32px; }
.filter-list li { display:flex; justify-content: space-between; color: var(--gray); cursor:default; }
.filter-list li.active { color: var(--ink); }
.filter-list li.active::before { content:'●'; color: var(--accent); font-size:7px; margin-right:6px; }
.sidebar-note { font-family:'RF Dewi',sans-serif; font-size: 13px; color: #3a3934; line-height:1.6; margin-top: 40px; max-width: 200px; }
.sidebar-foot { margin-top: 60px; font-size: 11px; color: var(--gray); }

footer { border-top: 1px solid var(--line); padding: 20px 0; font-family:'RF Dewi', monospace; font-size: 11px; color: var(--gray); }
footer .wrap { display:grid; grid-template-columns: 1fr auto 1fr auto; gap: 28px; align-items:center; }
/* Braun-style keys (Dieter Rams): three round keys light up in turn */
footer .f-img { position:relative; width:64px; height:14px; }
footer .f-img::after { content:''; position:absolute; right:0; top:0; width:14px; height:14px; border-radius:50%;
  background:#f26b1d; box-shadow: -25px 0 0 #f4c430, -50px 0 0 #3f9b5a; animation: braunKeys 4.5s ease-in-out infinite; }
@keyframes braunKeys {
  0%,28%   { background:#f26b1d; box-shadow:-25px 0 0 #d8d5ca, -50px 0 0 #d8d5ca; }
  33%,61%  { background:#d8d5ca; box-shadow:-25px 0 0 #f4c430, -50px 0 0 #d8d5ca; }
  66%,94%  { background:#d8d5ca; box-shadow:-25px 0 0 #d8d5ca, -50px 0 0 #3f9b5a; }
  100%     { background:#f26b1d; box-shadow:-25px 0 0 #d8d5ca, -50px 0 0 #d8d5ca; } }
@media (prefers-reduced-motion: reduce) { footer .f-img::after { animation:none; } }
footer .f-right { text-align:right; }
@media (max-width: 620px) { footer .wrap { grid-template-columns: 1fr; text-align:left; } footer .f-img { display:none; } footer .f-right { text-align:left; } }

@media (max-width: 820px) {
  .page-body { grid-template-columns: 1fr; }
  nav.main { display:none; }
  .header-tagline { display: none; }
  .sidebar-note { margin-top: 20px; }
  .sidebar-foot { display: none; }
}

/* ---------- HAMBURGER + OFF-CANVAS MENU ---------- */
.burger {
  display:flex; flex-direction:column; gap: 5px; justify-content:center;
  width: 26px; height: 18px; cursor: pointer; background:none; border:none; padding:0;
}
.burger span { display:block; width:100%; height:1px; background: var(--ink); }

.menu-overlay {
  position: fixed; inset: 0; background: rgba(13,13,12,0.35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 40;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-panel {
  position: fixed; top:0; right:0; bottom:0; width: min(380px, 86vw);
  background: var(--paper); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s ease; z-index: 50;
  display:flex; flex-direction:column; padding: 22px 32px;
}
.menu-panel.open { transform: translateX(0); }
.menu-panel-top { display:flex; justify-content:space-between; align-items:center; margin-bottom: 56px; }
.menu-close { background:none; border:none; font-family:'RF Dewi',monospace; font-size: 13px; color: var(--gray); cursor:pointer; }
.menu-links { list-style:none; display:flex; flex-direction:column; gap: 4px; margin-bottom: auto; }
.menu-links a {
  font-size: 34px; font-weight: 600; letter-spacing:-0.02em; padding: 10px 0;
  border-top: 1px solid var(--line); display:flex; justify-content:space-between; align-items:center;
}
.menu-links li:last-child a { border-bottom: 1px solid var(--line); }
.menu-links a .n { font-family:'RF Dewi',monospace; font-size: 11px; color: var(--gray); }
.menu-foot { font-family:'RF Dewi',monospace; font-size: 11px; color: var(--gray); line-height: 1.8; padding-top: 28px; }
