:root {
  --orange: #FF6B35;
  --charcoal: #1A1A1A;
  --gray: #6B6B6B;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --border: #E5E5E5;
  --gray-on-dark: #8B8B8B; /* muted label on charcoal — only used in dark contexts */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--white); color: var(--charcoal); font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.mono { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.label { font-size: 10px; letter-spacing: 2px; color: var(--gray); font-weight: 600; text-transform: uppercase; }

.topnav { display: flex; align-items: center; justify-content: space-between; padding: 22px 48px 18px; border-bottom: 1px solid var(--border); background: var(--white); }
.brand-mark { display: flex; flex-direction: column; }
.brand { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 3px; line-height: 1; }
.brand-tag { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 3px; color: var(--gray); font-weight: 600; padding-top: 4px; margin-top: 4px; border-top: 2px solid var(--orange); width: fit-content; padding-right: 60px; }
.nav-items { display: flex; gap: 36px; }
.nav-items a { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 1.5px; color: var(--gray); padding-bottom: 4px; }
.nav-items a.active { color: var(--charcoal); border-bottom: 2px solid var(--orange); }

.timer-bar { display: flex; align-items: center; justify-content: space-between; padding: 24px 48px; background: var(--charcoal); color: var(--white); }
.timer-bar .left { display: flex; align-items: center; gap: 32px; }
.timer-bar .pulse { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,53,0.6); } 70% { box-shadow: 0 0 0 14px rgba(255,107,53,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); } }
.timer-bar .label-row { display: flex; flex-direction: column; gap: 4px; }
.timer-bar .label { color: var(--gray-on-dark); }
.timer-bar .project { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1.5px; }
.timer-bar .elapsed { font-family: 'JetBrains Mono', monospace; font-size: 48px; font-weight: 700; letter-spacing: 1px; }
.timer-bar button.stop-btn { background: var(--orange); color: var(--white); border: none; padding: 14px 28px; font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 2px; border-radius: 0; }
.timer-bar button.start-btn { background: var(--orange); color: var(--white); border: none; padding: 14px 28px; font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 2px; border-radius: 0; }

.page { padding: 40px 48px 60px; }
.page h1 { font-family: 'Bebas Neue', sans-serif; font-size: 52px; letter-spacing: 2px; line-height: 1; margin: 0; }

.btn { background: var(--white); color: var(--charcoal); border: 1px solid var(--border); padding: 12px 20px; font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 1.5px; border-radius: 0; }
.btn.primary { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn.danger { background: var(--orange); color: var(--white); border-color: var(--orange); }

.card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--orange); padding: 32px; }

.tabbar { display: none; }

@media (max-width: 768px) {
  .topnav { padding: 16px 20px 12px; }
  .nav-items { display: none; }
  .page { padding: 24px 20px 100px; }
  .page h1 { font-size: 36px; }
  .timer-bar { padding: 18px 20px; flex-wrap: wrap; gap: 12px; }
  .timer-bar .elapsed { font-size: 36px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 8px 0 14px; z-index: 100; }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--gray); font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-decoration: none; }
  .tab.active { color: var(--charcoal); }
  .tab.active::after { content: ""; display: block; width: 24px; height: 2px; background: var(--orange); margin: 2px auto 0; }
}
