.layout { min-height: 100vh; background: var(--surface-0); } .header { background: color-mix(in srgb, var(--surface-0) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; } .header-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.25rem; height: 54px; } .logo { font-size: 0.92rem; font-weight: 680; color: var(--text-primary); text-decoration: none; white-space: nowrap; } .nav { display: flex; gap: 0.15rem; flex: 1; } .nav-link { padding: 0.38rem 0.7rem; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 0.86rem; white-space: nowrap; transition: background 0.15s var(--ease), color 0.15s var(--ease); } .nav-link:hover { background: var(--surface-1); color: var(--text-primary); } .nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; } .header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; } /* Icon shortcuts only appear once the text nav collapses. */ .header-secondary { display: none; gap: 0.1rem; } .icon-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--text-secondary); text-decoration: none; font-size: 1rem; transition: background 0.15s var(--ease), color 0.15s var(--ease); } .icon-link:hover, .icon-link.active { background: var(--accent-soft); color: var(--accent); } .theme-toggle { background: none; border: 1px solid var(--border); color: var(--text-secondary); border-radius: 8px; padding: 0.3rem 0.6rem; font-size: 0.74rem; cursor: pointer; font-family: inherit; white-space: nowrap; transition: border-color 0.15s var(--ease), color 0.15s var(--ease); } .theme-toggle:hover { border-color: var(--border-strong); color: var(--text-primary); } .content { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; } /* Bottom tab bar ----------------------------------------------------------- */ .tabbar { display: none; position: fixed; left: 50%; transform: translateX(-50%); /* Clears the iOS home indicator rather than sitting under it. */ bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); z-index: 30; gap: 0.15rem; padding: 0.3rem; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--border); box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28); } .tab { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; /* Comfortably past the 44px touch-target minimum. */ min-width: 60px; padding: 0.42rem 0.5rem; border-radius: 999px; text-decoration: none; color: var(--text-muted); transition: color 0.18s var(--ease), background 0.18s var(--ease); } .tab-icon { font-size: 1.05rem; line-height: 1; } .tab-label { font-size: 0.66rem; font-weight: 550; } .tab.active { background: var(--accent-soft); color: var(--accent); } .tab:active { transform: scale(0.94); } @media (max-width: 860px) { .nav { display: none; } .header-secondary { display: flex; } .tabbar { display: flex; } .header-inner { padding: 0 0.9rem; gap: 0.5rem; } .logo { font-size: 0.85rem; } /* Room for the floating bar so the last card is never trapped under it. */ .content { padding: 1.1rem 0.9rem calc(5.5rem + env(safe-area-inset-bottom, 0px)); } } @media (prefers-reduced-motion: reduce) { .nav-link, .icon-link, .tab, .theme-toggle { transition: none; } .tab:active { transform: none; } }